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 to rename query column #563

davidmezzetti17ab948c8477
diff --git a/docs/embeddings/query.md b/docs/embeddings/query.md
index 3f473367..c5d44a41 100644
--- a/docs/embeddings/query.md
+++ b/docs/embeddings/query.md
@@ -61,14 +61,14 @@ For example:
```python
embeddings.index([{"text": "text to index", "flag": True,
- "entry": "2022-01-01"}])
+ "actiondate": "2022-01-01"}])
```
With the above input data, queries can now have more complex filters.
```sql
-SELECT text, flag, entry FROM txtai WHERE similar('query') AND flag = 1
-AND entry >= '2022-01-01'
+SELECT text, flag, actiondate FROM txtai WHERE similar('query') AND flag = 1
+AND actiondate >= '2022-01-01'
```
txtai's query layer automatically detects columns and translates queries into a format that can be understood by the underlying database.