Medium Article Generator Built with Langchain and LLM's (ChatGPT, GPT-4, etc)
conda create --prefix ./env jupyter
pip install -r requirements.txt
pip install python-dotenv streamlit langchain openai wikipedia chromadb tiktoken pipreqs
# use `conda info --envs` to list all your envs
conda activate /PATH_TO_PROJ/env
jupyter notebook
Open the Jupyter Notebook file and make sure that the correct kernel is selected.
streamlit run app.py
conda deactivate
Make sure you've selected the correct environment to run on.
e.g. python <python-version> (conda) .\env\python.exe
If you received an error ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects
check HERE.
# ~/.bashrc or ~/.zshrc
export PATH=$PATH:~/.local/bin
The export PATH=$PATH:~/.local/bin
command adds the ~/.local/bin
directory to the list of places your system looks for executable programs. This allows you to run programs installed in ~/.local/bin
directly from the terminal.
python agent.py
# When did the titanic sank? how many years has it been since then? how many people who survived? multiply these two values together.