This is my code for the Damien Benveniste Langchain Udemy course.
This code is here as great reference in case something does not work, but it worked for me, or was fixed by me while doing the course.
- Create
virtualenv
for [email protected] and activate it
# For MacOS
virtualenv -p /opt/homebrew/bin/python3.10 venv
source ./venv/bin/activate
- Install deps
pip install -r requirements.txt
- Rename
example.env
to.env
and fill API key details
- FAISS is failing to install
Lower python version to 3.10. Or creat venv that is 3.10.
- Failing to install "python-poppler" on MacOS?
Install system dependencies:
brew install pkg-config poppler
- GitLSF is missing (MacOS)
brew install git-lfs
- Missing tesseract
brew install tesseract
- Pygraphviz is failing to install
And this: pygraphviz/pygraphviz#11 (comment)
brew install graphviz
pip install graphviz
pip install --no-cache-dir \
--config-settings="--global-option=build_ext" \
--config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \
--config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \
pygraphviz
- [MacOS] PyAudio fails to install
brew install portaudio
pip3 install pyaudio
- In S10
recognize_whisper_api
is erroring withopenai.lib._old_api.APIRemovedInV1:
speech_recognition
package is using old OpenAI API that needs updating. See PR Uberi/speech_recognition#729
If you still have this issue, you can simply copy the change from the PR to your package.
- FFMpeg not found
brew install ffmpeg