Spaces:
Build error
Build error
Update app.py
Browse files
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 |
|