Nov. 1, 2023, 6:09 p.m. | David Mezzetti

DEV Community dev.to


The txtai API is a web-based service backed by FastAPI. Semantic search, LLM orchestration and Language Model Workflows can all run through the API.


While the API is extremely flexible and complex logic can be executed through YAML-driven workflows, some may prefer to create an endpoint in Python.


This article introduces API extensions and shows how they can be used to define custom Python endpoints that interact with txtai applications.





Install dependencies


Install txtai and all dependencies.



# Install …

api article endpoints extensions fastapi language language model llm logic machinelearning nlp orchestration python search semantic service shows through web workflows yaml

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Data Scientist

@ Publicis Groupe | New York City, United States

Bigdata Cloud Developer - Spark - Assistant Manager

@ State Street | Hyderabad, India