Modified Chroma variables
Browse files10 unmodified lines11121314141615161739 unmodified lines575859626061626310 unmodified linesimport streamlit as st
# Load OpenAI API key and define directory to store the data
persist_directory = "../../data/processed"
# Load the OpenAI Embeddings, LLM , PromptTemplate and LLMChainembeddings = OpenAIEmbeddings()39 unmodified lines # docs[0].page_content # Create the vector database which will be used to search for similar sentences vectordb = Chroma.from_documents( documents=docs, embedding=embeddings, persist_directory=persist_directory documents=docs, embedding=embeddings, persist_directory="./chroma_db" )
# Search for the most similar sentences to the question and concatenate top 3 vectorsapp.py+1-3