- Crawler to scrap data
- FastAPI
- LangChain
- OpenAI
- Database vector: ChromaDB
- Embedchain
- Deploy: Modal
Check out how the fronted was made
Environments isolate libraries used in one context from those used in another context.
For example, we can use them to isolate the libraries used in this project from those used in other projects.
Done naively, this would result in an explosion of space taken up by duplicated libraries.
Virtual environments allow the sharing of Python libraries across environments if they happen to be using the same version.
We create one for this project with:
pyenv virtualenv 3.10 chat-backend
To start using it, we need to "activate" it:
pyenv activate chat-backend
We've set it as the default environment for this directory with:
pyenv local chat-backend
which generates a .python-version
file in the current directory.main.py
poetry install
To activate the virtual env, remember to paste the code below in your terminal
poetry shell
Using modal to run the container
modal serve main.py
modal deploy main.py
sudo chmod -R 755 tasks/pretty_log.sh
Update secret in modal account
modal secret create openai-api-key OPENAI_API_KEY="$OPENAI_API_KEY"
If you want to say thank you and/or support the active development this project:
- Add a GitHub Star to the project.
- Write a review or tutorial on Medium, Dev.to or personal blog.
- Support the project by donating a cup of coffee.
If you want to support this project, you can ☕ buy a coffee here
Code and documentation copyright 2023-2030 the Authors and Code released under the MIT License. Docs released under Creative Commons.