mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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):
|
def _initialize_embedder(self):
|
||||||
"""Initialize the embedder using the provided configuration."""
|
"""Initialize the embedder using the provided configuration."""
|
||||||
configurator = EmbeddingConfigurator()
|
from crewai.knowledge.embedder.fastembed import FastEmbed
|
||||||
self.embedder = configurator.configure_embedder(self.embedder_config)
|
self.embedder = FastEmbed()
|
||||||
|
|
||||||
def _sanitize_query(self, query: str) -> str:
|
def _sanitize_query(self, query: str) -> str:
|
||||||
"""Remove potentially harmful characters from query.
|
"""Remove potentially harmful characters from query.
|
||||||
|
|||||||
Reference in New Issue
Block a user