xavierbarbier commited on
Commit
f94eae8
·
verified ·
1 Parent(s): 280af06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -61,7 +61,10 @@ print("Finish the model init process")
61
 
62
  def qa(question: str) -> str:
63
 
64
-
 
 
 
65
  docs = vectordb.max_marginal_relevance_search(question,k=3)
66
 
67
 
 
61
 
62
  def qa(question: str) -> str:
63
 
64
+ vectordb = Chroma(
65
+ persist_directory="./resource/chroma/",
66
+ embedding_function=embeddings
67
+ )
68
  docs = vectordb.max_marginal_relevance_search(question,k=3)
69
 
70