Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update method documentation, closes #860

davidmezzetti8fb3aba4251e
diff --git a/src/python/txtai/api/routers/embeddings.py b/src/python/txtai/api/routers/embeddings.py
index 2a3a0cfd..32dcff32 100644
--- a/src/python/txtai/api/routers/embeddings.py
+++ b/src/python/txtai/api/routers/embeddings.py
@@ -205,13 +205,10 @@ def reindex(config: dict = Body(...), function: str = Body(default=None)):
@router.get("/count")
def count():
"""
- Deletes from an embeddings index. Returns list of ids deleted.
-
- Args:
- ids: list of ids to delete
+ Total number of elements in this embeddings index.
Returns:
- ids deleted
+ number of elements in embeddings index
"""
return application.get().count()