Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -94,7 +94,7 @@ mcp = FastMCP("OnBase", port=port)
|
|
| 94 |
@mcp.resource(
|
| 95 |
uri="info://available_retrievers",
|
| 96 |
name="AvailableRetrievers",
|
| 97 |
-
description="Lista
|
| 98 |
mime_type="application/json"
|
| 99 |
)
|
| 100 |
def get_available_retrievers() -> dict:
|
|
@@ -135,7 +135,7 @@ def retrieve_docs(
|
|
| 135 |
Ejemplo:
|
| 136 |
retrieve_docs(
|
| 137 |
query="estándares farmacéuticos",
|
| 138 |
-
retrievers=["
|
| 139 |
top_k=2
|
| 140 |
)
|
| 141 |
"""
|
|
@@ -188,7 +188,6 @@ def retrieve_docs(
|
|
| 188 |
"query": query,
|
| 189 |
"results": results,
|
| 190 |
"top_k": top_k,
|
| 191 |
-
"timestamp": datetime.datetime.now().isoformat()
|
| 192 |
}
|
| 193 |
|
| 194 |
if invalid:
|
|
|
|
| 94 |
@mcp.resource(
|
| 95 |
uri="info://available_retrievers",
|
| 96 |
name="AvailableRetrievers",
|
| 97 |
+
description="Lista completa de retrievers disponibles",
|
| 98 |
mime_type="application/json"
|
| 99 |
)
|
| 100 |
def get_available_retrievers() -> dict:
|
|
|
|
| 135 |
Ejemplo:
|
| 136 |
retrieve_docs(
|
| 137 |
query="estándares farmacéuticos",
|
| 138 |
+
retrievers=["vec_1", "vec_2"],
|
| 139 |
top_k=2
|
| 140 |
)
|
| 141 |
"""
|
|
|
|
| 188 |
"query": query,
|
| 189 |
"results": results,
|
| 190 |
"top_k": top_k,
|
|
|
|
| 191 |
}
|
| 192 |
|
| 193 |
if invalid:
|