1MR commited on
Commit
96dfeae
·
verified ·
1 Parent(s): e0a584d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -96,7 +96,8 @@ def rag_chatbot():
96
  llm_model = load_llm(api_key=api[:-2])
97
 
98
  # Create retriever using Chroma
99
- retriever = Chroma.from_documents(documents, embedding=embedding_model, persist_directory=None).as_retriever()
 
100
 
101
  # Ask a question
102
  question = st.text_input("Ask a question about your dataset:")
 
96
  llm_model = load_llm(api_key=api[:-2])
97
 
98
  # Create retriever using Chroma
99
+ # FAISS.from_documents(documents, embedding)
100
+ retriever = FAISS.from_documents(documents, embedding=embedding_model).as_retriever()
101
 
102
  # Ask a question
103
  question = st.text_input("Ask a question about your dataset:")