Skip to content

Why txtai?

why why

In addition to traditional search systems, a growing number of language model backed solutions are available, so why txtai?

  • Up and running in minutes with pip or Docker
    # Get started in a couple lines
    from txtai.embeddings import Embeddings
    embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2"})
    embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])"positive", 1)
    #[(0, 0.2986203730106354)]
  • Built-in API makes it easy to develop applications using your programming language of choice
    # app.yml
        path: sentence-transformers/all-MiniLM-L6-v2
    CONFIG=app.yml uvicorn "txtai.api:app"
    curl -X GET "http://localhost:8000/search?query=positive"
  • Run local - no need to ship data off to disparate remote services
  • Work with micromodels all the way up to large language models (LLMs)
  • Low footprint - install additional dependencies and scale up when needed
  • Learn by example - notebooks cover all available functionality