mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
fix: Add index field to FAISSSearchTool model
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -20,6 +20,7 @@ class FAISSSearchTool(BaseTool):
|
|||||||
dimension: int = Field(default=384) # Default for BAAI/bge-small-en-v1.5
|
dimension: int = Field(default=384) # Default for BAAI/bge-small-en-v1.5
|
||||||
texts: List[str] = Field(default_factory=list)
|
texts: List[str] = Field(default_factory=list)
|
||||||
_index_type: str = Field(default="L2")
|
_index_type: str = Field(default="L2")
|
||||||
|
index: Any = Field(default=None) # FAISS index instance
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user