{"id":22929943,"url":"https://github.com/genocs/langchain-integration","last_synced_at":"2025-04-01T16:44:29.887Z","repository":{"id":210513241,"uuid":"726744346","full_name":"Genocs/langchain-integration","owner":"Genocs","description":"This is a walkthrough on using langchain, langlit, integration with Masstransit RabbitMQ and a lot of other stuff.","archived":false,"fork":false,"pushed_at":"2023-12-03T09:28:28.000Z","size":184,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T10:52:35.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genocs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"open_collective":"genocs","custom":["https://www.buymeacoffee.com/genocs"]}},"created_at":"2023-12-03T09:08:52.000Z","updated_at":"2024-01-24T11:55:29.000Z","dependencies_parsed_at":"2023-12-03T10:24:38.689Z","dependency_job_id":"4fe16ea6-3728-4c4a-a2fb-0906b89942e9","html_url":"https://github.com/Genocs/langchain-integration","commit_stats":null,"previous_names":["genocs/langchain-integration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genocs%2Flangchain-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genocs%2Flangchain-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genocs%2Flangchain-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genocs%2Flangchain-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genocs","download_url":"https://codeload.github.com/Genocs/langchain-integration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246672959,"owners_count":20815484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T10:19:46.537Z","updated_at":"2025-04-01T16:44:29.867Z","avatar_url":"https://github.com/Genocs.png","language":"Python","funding_links":["https://opencollective.com/genocs","https://www.buymeacoffee.com/genocs","https://www.buymeacoffee.com/genocs)!","https://opencollective.com/genocs/contribute"],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT SHIELDS --\u003e\n[![License][license-shield]][license-url]\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![Discord][discord-shield]][discord-url]\n[![Gitter][gitter-shield]][gitter-url]\n[![Twitter][twitter-shield]][twitter-url]\n[![Twitterx][twitterx-shield]][twitterx-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n[license-shield]: https://img.shields.io/github/license/Genocs/langchain-integration?color=2da44e\u0026style=flat-square\n[license-url]: https://github.com/Genocs/langchain-integration/blob/main/LICENSE\n[contributors-shield]: https://img.shields.io/github/contributors/Genocs/langchain-integration.svg?style=flat-square\n[contributors-url]: https://github.com/Genocs/langchain-integration/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/Genocs/langchain-integration?style=flat-square\n[forks-url]: https://github.com/Genocs/langchain-integration/network/members\n[stars-shield]: https://img.shields.io/github/stars/Genocs/langchain-integration.svg?style=flat-square\n[stars-url]: https://img.shields.io/github/stars/Genocs/langchain-integration?style=flat-square\n[issues-shield]: https://img.shields.io/github/issues/Genocs/langchain-integration?style=flat-square\n[issues-url]: https://github.com/Genocs/langchain-integration/issues\n[discord-shield]: https://img.shields.io/discord/1106846706512953385?color=%237289da\u0026label=Discord\u0026logo=discord\u0026logoColor=%237289da\u0026style=flat-square\n[discord-url]: https://discord.com/invite/fWwArnkV\n[gitter-shield]: https://img.shields.io/badge/chat-on%20gitter-blue.svg\n[gitter-url]: https://gitter.im/genocs/\n[twitter-shield]: https://img.shields.io/twitter/follow/genocs?color=1DA1F2\u0026label=Twitter\u0026logo=Twitter\u0026style=flat-square\n[twitter-url]: https://twitter.com/genocs\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/giovanni-emanuele-nocco-b31a5169/\n[twitterx-shield]: https://img.shields.io/twitter/url/https/twitter.com/genocs.svg?style=social\n[twitterx-url]: https://twitter.com/genocs\n\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./assets/genocs-library-logo.png\" alt=\"icon\"\u003e\n\u003c/p\u003e\n\n\n# Langchain Integration\n\nBefore run any python files install the packages\n\n```bash\npip install -r ./src/requirements.txt\n```\n\nThen set the environment variables\n\n```bash\nset OPENAI_API_KEY=\u003cyour_api_key\u003e\nset AMQP_URL=\u003cyour_rabbitmq_connection_string\u003e\n```\nAlternativly you can use .env file.\n\n.env file example:\n\n``` bash\n# Open AI configuration\nOPENAI_API_KEY=\u003c\u003cYOUR_API_KEY\u003e\u003e\n\n# MongoDB configuration\nMONGODB_CONNECTION_STRING=mongodb://localhost:27017\n\n# RabbitMQ configuration\nRABBITMQ_CONNECTION_NAME=my_connection\nRABBITMQ_HOST=localhost\nRABBITMQ_PORT=5672\nRABBITMQ_USERNAME=guest\nRABBITMQ_PASSWORD=guest\nRABBITMQ_VHOST=/\nRABBITMQ_QUEUE_NAME=my_queue\n\n# Fiscanner configuration\nFISCANNER_URL=https://fiscanner-platform.azurewebsites.net\n``` \n\n## Run with python\n\n```bash\npython.exe ./src/main.py\n```\n\n## Run with chainlit\n\nInstall chainlit\n\n```bash\npip install chainlit\n```\n\nIf you are using conda, you can install it with\n\n```bash\nconda install -c conda-forge chainlit\n```\n\nOr you can install chainlit with pip\n\n```bash\npip install chainlit\n```\n\nTo test if chanlit is installed correctly run:\n\n```bash\nchainlit hello\n```\n\nThen run chainlit application\n\n```bash\nchainlit run ./src/07_langchain_chainlit.py\n```\n\n\n## License\n\nThis project is licensed with the [MIT license](LICENSE).\n\n## Changelogs\n\nView Complete [Changelogs](https://github.com/Genocs/microservice-template/blob/main/CHANGELOGS.md).\n\n## Community\n\n- Discord [@genocs](https://discord.com/invite/fWwArnkV)\n- Facebook Page [@genocs](https://facebook.com/Genocs)\n- Youtube Channel [@genocs](https://youtube.com/c/genocs)\n\n\n## Support\n\nHas this Project helped you learn something New? or Helped you at work?\nHere are a few ways by which you can support.\n\n- ⭐ Leave a star! \n- 🥇 Recommend this project to your colleagues.\n- 🦸 Do consider endorsing me on LinkedIn for ASP.NET Core - [Connect via LinkedIn](https://www.linkedin.com/in/giovanni-emanuele-nocco-b31a5169/) \n- ☕ If you want to support this project in the long run, [consider buying me a coffee](https://www.buymeacoffee.com/genocs)!\n  \n\n[![buy-me-a-coffee](https://raw.githubusercontent.com/Genocs/blazor-template/main/assets/buy-me-a-coffee.png \"buy-me-a-coffee\")](https://www.buymeacoffee.com/genocs)\n\n## Code Contributors\n\nThis project exists thanks to all the people who contribute. [Submit your PR and join the team!](CONTRIBUTING.md)\n\n[![genocs contributors](https://contrib.rocks/image?repo=Genocs/blazor-template \"genocs contributors\")](https://github.com/genocs/blazor-template/graphs/contributors)\n\n## Financial Contributors\n\nBecome a financial contributor and help me sustain the project. [Support the Project!](https://opencollective.com/genocs/contribute)\n\n\u003ca href=\"https://opencollective.com/genocs\"\u003e\u003cimg src=\"https://opencollective.com/genocs/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n\n## Acknowledgements\n- [Chainlit](https://github.com/Chainlit/chainlit)\n- [Masstransit](https://github.com/MassTransit/MassTransit)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenocs%2Flangchain-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenocs%2Flangchain-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenocs%2Flangchain-integration/lists"}