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:
2026-01-06 17:20:31 +01:00
parent 3c30923e5b
commit 6df8787c6e
15 changed files with 306 additions and 155 deletions

View File

@@ -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