Initial commit

This commit is contained in:
2025-09-25 23:39:12 +00:00
commit 3ec2687226
12 changed files with 1723 additions and 0 deletions

16
scripts/client.py Normal file
View File

@@ -0,0 +1,16 @@
import asyncio
from fastmcp import Client
from fastembed import TextEmbedding
embedding_model = TextEmbedding()
client = Client("http://localhost:8000/sse")
async def call_tool(input: str, collection: str):
embedding: list[float] = list(embedding_model.embed(input))[0].tolist()
async with client:
result = await client.call_tool("semantic_search", {"embedding": embedding, "collection": collection})
print(result)
asyncio.run(call_tool("Dime sobre las cucarachas", "dummy_collection"))