1MR commited on
Commit
d94f30d
·
verified ·
1 Parent(s): 2651453

Update app.py

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