mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 23:54:14 +00:00
parent
3c4338470e
commit
9e067b8cc9
@ -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.
|
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
|
```python
|
||||||
from langchain.document_loaders import WebBaseLoader
|
from langchain.document_loaders import WebBaseLoader
|
||||||
from langchain.indexes import VectorstoreIndexCreator
|
from langchain.indexes import VectorstoreIndexCreator
|
||||||
|
Loading…
Reference in New Issue
Block a user