Spaces:
Sleeping
Sleeping
Commit
·
23f69ee
1
Parent(s):
c60a1ba
openai_apikey
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ from langchain_community.document_loaders import UnstructuredPDFLoader
|
|
| 25 |
|
| 26 |
# The vectorstore to use to index the child chunks
|
| 27 |
vectorstore = Chroma(
|
| 28 |
-
collection_name="rag_app",embedding_function=OpenAIEmbeddings(api_key=
|
| 29 |
|
| 30 |
# The storage layer for the parent documents
|
| 31 |
store = InMemoryStore()
|
|
|
|
| 25 |
|
| 26 |
# The vectorstore to use to index the child chunks
|
| 27 |
vectorstore = Chroma(
|
| 28 |
+
collection_name="rag_app",embedding_function=OpenAIEmbeddings(api_key=os.environ['OpenAI_APIKEY']))
|
| 29 |
|
| 30 |
# The storage layer for the parent documents
|
| 31 |
store = InMemoryStore()
|