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

    1. # Get started in a couple lines
    2. from txtai.embeddings import Embeddings
    3. embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2"})
    4. embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])
    5. embeddings.search("positive", 1)
    6. #[(0, 0.2986203730106354)]
  • Built-in API makes it easy to develop applications using your programming language of choice

    1. # app.yml
    2. embeddings:
    3. path: sentence-transformers/all-MiniLM-L6-v2
    1. CONFIG=app.yml uvicorn "txtai.api:app"
    2. 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