MCPcopy Create free account
hub / github.com/RUC-NLPIR/SmartSearch / Document

Class Document

scripts/serving/retriever_serving.py:52–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 return_score: bool = False
51
52class Document(BaseModel):
53 id: str
54 contents: str
55
56@app.post("/search", response_model=Union[Tuple[List[Document], List[float]], List[Document]])
57async def search(request: QueryRequest):

Callers 2

searchFunction · 0.85
batch_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected