refactor(knowledge-base mcp server): adjust formatting for consistency and readability
Improved code formatting, line breaks, and indentation across chunking logic and multiple test modules to enhance code clarity and maintain consistent style. No functional changes made.
This commit is contained in:
@@ -214,9 +214,7 @@ class EmbeddingGenerator:
|
||||
return cached
|
||||
|
||||
# Generate via LLM Gateway
|
||||
embeddings = await self._call_llm_gateway(
|
||||
[text], project_id, agent_id
|
||||
)
|
||||
embeddings = await self._call_llm_gateway([text], project_id, agent_id)
|
||||
|
||||
if not embeddings:
|
||||
raise EmbeddingGenerationError(
|
||||
@@ -277,9 +275,7 @@ class EmbeddingGenerator:
|
||||
|
||||
for i in range(0, len(texts_to_embed), batch_size):
|
||||
batch = texts_to_embed[i : i + batch_size]
|
||||
batch_embeddings = await self._call_llm_gateway(
|
||||
batch, project_id, agent_id
|
||||
)
|
||||
batch_embeddings = await self._call_llm_gateway(batch, project_id, agent_id)
|
||||
new_embeddings.extend(batch_embeddings)
|
||||
|
||||
# Validate dimensions
|
||||
|
||||
Reference in New Issue
Block a user