Add env setup (#7550)

Include setup
This commit is contained in:
Lance Martin 2023-07-11 09:48:40 -07:00 committed by GitHub
parent 3c4338470e
commit 9e067b8cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,14 @@ Let's load this [blog post](https://lilianweng.github.io/posts/2023-06-23-agent/
We have a QA app in a few lines of code.
Set enviorment varaibles and get packages:
```python
pip install openai
pip install chromadb
export OPENAI_API_KEY="..."
```
Run:
```python
from langchain.document_loaders import WebBaseLoader
from langchain.indexes import VectorstoreIndexCreator