Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Fix issue with Application autosequencing, closes #367

davidmezzetti5938b76e305d
diff --git a/src/python/txtai/app/base.py b/src/python/txtai/app/base.py
index 188503a5..d13bd9e7 100644
--- a/src/python/txtai/app/base.py
+++ b/src/python/txtai/app/base.py
@@ -329,7 +329,7 @@ class Application:
self.documents = Documents()
batch = []
- index = self.count() + len(self.documents)
+ index = self.embeddings.config.get("offset", 0) + len(self.documents)
for document in documents:
if isinstance(document, dict):
# Create (id, data, tags) tuple from dictionary