tomascufaro commited on
Commit
23f69ee
·
1 Parent(s): c60a1ba

openai_apikey

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="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"))
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()