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

davidmezzetti667ed023f6a0
diff --git a/src/python/txtai/ann/base.py b/src/python/txtai/ann/base.py
index 3456fd50..8f5e49c0 100644
--- a/src/python/txtai/ann/base.py
+++ b/src/python/txtai/ann/base.py
@@ -30,6 +30,9 @@ class ANN:
def load(self, path):
"""
Loads an ANN model at path.
+
+ Args:
+ path: path to load ann index
"""
raise NotImplementedError
@@ -91,6 +94,9 @@ class ANN:
def save(self, path):
"""
Saves an ANN model at path.
+
+ Args:
+ path: path to save ann index
"""
raise NotImplementedError
diff --git a/src/python/txtai/ann/faiss.py b/src/python/txtai/ann/faiss.py
index 5f9b9f6b..1189fa83 100644
--- a/src/python/txtai/ann/faiss.py
+++ b/src/python/txtai/ann/faiss.py
@@ -114,7 +114,10 @@ class Faiss(ANN):
def nprobe(self):
"""
- Gets or derives the nprobe search parameter
+ Gets or derives the nprobe search parameter.
+
+ Returns:
+ nprobe setting
"""
# Get size of embeddings index