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 documentation

davidmezzetti61dbd7f4b8db
diff --git a/README.md b/README.md
index bb2a1b0a..e197ca8f 100644
--- a/README.md
+++ b/README.md
@@ -71,11 +71,10 @@ In addition to traditional search systems, a growing number of semantic search s
# Get started in a couple lines
from txtai.embeddings import Embeddings
-embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2",
- "content": True})
+embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2"})
embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])
embeddings.search("positive", 1)
-# [{'id': '0', 'text': 'Correct', 'score': 0.2986203730106354}]
+#[(0, 0.2986203730106354)]
```
- Works well with both small and big data - scale up as needed
- Rich data processing framework (pipelines and workflows) to pre and post process data
diff --git a/docs/why.md b/docs/why.md
index cd091cb4..0e026a30 100644
--- a/docs/why.md
+++ b/docs/why.md
@@ -10,11 +10,10 @@ In addition to traditional search systems, a growing number of semantic search s
# Get started in a couple lines
from txtai.embeddings import Embeddings
-embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2",
- "content": True})
+embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2"})
embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])
embeddings.search("positive", 1)
-# [{'id': '0', 'text': 'Correct', 'score': 0.2986203730106354}]
+#[(0, 0.2986203730106354)]
```
- Works well with both small and big data - scale up as needed
- Rich data processing framework (pipelines and workflows) to pre and post process data