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

davidmezzetti6e9b19457074
diff --git a/README.md b/README.md
index b314d691..bb2a1b0a 100644
--- a/README.md
+++ b/README.md
@@ -66,12 +66,22 @@ txtai is built with Python 3.7+, [Hugging Face Transformers](https://github.com/
In addition to traditional search systems, a growing number of semantic search solutions are available, so why txtai?
-- `pip install txtai` is all that is needed to get started
-- Works well with both small and big data, prototypes can be built in a couple lines of code, scale up as needed
+- `pip install txtai` is all you need
+```python
+# Get started in a couple lines
+from txtai.embeddings import Embeddings
+
+embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2",
+ "content": True})
+embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])
+embeddings.search("positive", 1)
+# [{'id': '0', 'text': 'Correct', 'score': 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
- Work in your programming language of choice via the API
-- Modular with low install footprint, most dependencies optional and only required when you need them
-- Learn by example, notebooks cover all available functionality
+- Modular with low footprint - install additional dependencies when you need them
+- [Learn by example](../examples) - notebooks cover all available functionality
## Installation
diff --git a/docs/why.md b/docs/why.md
index 600213a0..cd091cb4 100644
--- a/docs/why.md
+++ b/docs/why.md
@@ -5,9 +5,19 @@
In addition to traditional search systems, a growing number of semantic search solutions are available, so why txtai?
-- `pip install txtai` is all that is needed to get started
-- Works well with both small and big data, prototypes can be built in a couple lines of code, scale up as needed
+- `pip install txtai` is all you need
+```python
+# Get started in a couple lines
+from txtai.embeddings import Embeddings
+
+embeddings = Embeddings({"path": "sentence-transformers/all-MiniLM-L6-v2",
+ "content": True})
+embeddings.index([(0, "Correct", None), (1, "Not what we hoped", None)])
+embeddings.search("positive", 1)
+# [{'id': '0', 'text': 'Correct', 'score': 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
- Work in your programming language of choice via the API
-- Modular with low install footprint, most dependencies optional and only required when you need them
-- Learn by example, notebooks cover all available functionality
+- Modular with low footprint - install additional dependencies when you need them
+- [Learn by example](../examples) - notebooks cover all available functionality