- Docker
- AWS Cloud
- OpenAI GPT-3.5 Turbo
- OpenAI Embedding Models
bs4
chromadb
wikipedia
langchain
langchainhub
langchain-core
langchain-openai
duckduckgo-search
langchain-community
langchain-text-splitters
I used a Virtual Environment to download all the libraries listed above.
a. Create a Virtual Environment:
-
python -m venv .venv
b. Change Command Prompt permissions:
This needs to be done before you activate the environment
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
c. Activate the environment:
- .venv/Scripts/activatePS: after these instructions, you terminal should have a "(.venv)" before "PS C:\...\project_folder"
To work with the OpenAI API, we need to have an access key, which I stored in a ".env" file (The .env file isn't in this repository because it should be kept private). This way, we would need to run "source .env" before every time we wish to run our code.
a. Install dotenv:
-
pip install python-dotenv
b. Import it in file:
-
from dotenv import load_dotenv
c. Add this function as the first code line:e
This is what automatizes "source .env"
-
load_dotenv()