mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
fix: Use FastEmbed for text embeddings
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -66,8 +66,8 @@ class FAISSSearchTool(BaseTool):
|
||||
|
||||
def _initialize_embedder(self):
|
||||
"""Initialize the embedder using the provided configuration."""
|
||||
configurator = EmbeddingConfigurator()
|
||||
self.embedder = configurator.configure_embedder(self.embedder_config)
|
||||
from crewai.knowledge.embedder.fastembed import FastEmbed
|
||||
self.embedder = FastEmbed()
|
||||
|
||||
def _sanitize_query(self, query: str) -> str:
|
||||
"""Remove potentially harmful characters from query.
|
||||
|
||||
Reference in New Issue
Block a user