Why txtai?

why why

In addition to traditional search systems, a growing number of semantic search 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)]
  • Build applications in your programming language of choice via the API

    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"
  • Connect machine learning models together to build intelligent data processing workflows

  • Works with both small and big data - scale when needed
  • Supports micromodels all the way up to large language models (LLMs)
  • Low footprint - install additional dependencies when you need them
  • Learn by example - notebooks cover all available functionality