Enoch1359 commited on
Commit
6aadc83
·
verified ·
1 Parent(s): 82ba021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ if purs:
44
  tot=RecursiveCharacterTextSplitter.from_tiktoken_encoder(encoding_name="cl100k_base",chunk_size=512,chunk_overlap=16)
45
  doccs=tot.split_documents(docs)
46
  mp.text("Loading..VB...☑️☑️☑️")
47
- vv=FAISS.from_documents(doccs,m1)
48
  r2=vv.as_retriever(search_type="similarity",search_kwargs={"k":4})
49
  mp.text("Loading..Retri....☑️☑️☑️")
50
  ra1=RetrievalQAWithSourcesChain.from_chain_type(llm=llm,retriever=r2,chain_type="map_reduce")
 
44
  tot=RecursiveCharacterTextSplitter.from_tiktoken_encoder(encoding_name="cl100k_base",chunk_size=512,chunk_overlap=16)
45
  doccs=tot.split_documents(docs)
46
  mp.text("Loading..VB...☑️☑️☑️")
47
+ vv=Chroma.from_documents(doccs,m1)
48
  r2=vv.as_retriever(search_type="similarity",search_kwargs={"k":4})
49
  mp.text("Loading..Retri....☑️☑️☑️")
50
  ra1=RetrievalQAWithSourcesChain.from_chain_type(llm=llm,retriever=r2,chain_type="map_reduce")