Who it is forA developer who wants to call search from any language.
The problemWrapping a search library in your own web service takes boilerplate.
The outcomeA local API answering search queries via curl.
What you need first
- Python 3.11 or newer and pip
- A virtual environment is recommended
- Optional uvicorn for the API
Steps
- Install with
pip install txtai - Create app.yml with an
embeddings:entry whosepath:issentence-transformers/all-MiniLM-L6-v2 - Start the API with
CONFIG=app.yml uvicorn "txtai.api:app" - Query it with
curl -X GET "http://localhost:8000/search?query=positive"
Prompt for your agent
With neuml/txtai, write app.yml using sentence-transformers/all-MiniLM-L6-v2, start `CONFIG=app.yml uvicorn "txtai.api:app"` and test with `curl -X GET "http://localhost:8000/search?query=positive"`.
Caveat. The README example only configures embeddings; load documents into the index before expecting results.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for neuml/txtai and "Serve a search API from one YAML file"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer