Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
c059db6
1
Parent(s):
54c8cc7
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,12 @@ async def create_upload_file(text_field: str, file: UploadFile = File(...)):
|
|
99 |
@app.get("/search")
|
100 |
def search(prompt: str):
|
101 |
import time
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
103 |
start_time = time.time()
|
104 |
|
105 |
# Querying
|
|
|
99 |
@app.get("/search")
|
100 |
def search(prompt: str):
|
101 |
import time
|
102 |
+
from haystack import Document, Pipeline
|
103 |
+
from haystack_integrations.components.retrievers.qdrant import QdrantHybridRetriever
|
104 |
+
from haystack_integrations.components.embedders.fastembed import (
|
105 |
+
FastembedTextEmbedder,
|
106 |
+
FastembedSparseTextEmbedder
|
107 |
+
)
|
108 |
start_time = time.time()
|
109 |
|
110 |
# Querying
|