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 3f23bc3db3
commit 51404216ae
15 changed files with 306 additions and 155 deletions

View File

@@ -328,14 +328,18 @@ class CollectionManager:
"source_path": chunk.source_path or source_path,
"start_line": chunk.start_line,
"end_line": chunk.end_line,
"file_type": effective_file_type.value if (effective_file_type := chunk.file_type or file_type) else None,
"file_type": effective_file_type.value
if (effective_file_type := chunk.file_type or file_type)
else None,
}
embeddings_data.append((
chunk.content,
embedding,
chunk.chunk_type,
chunk_metadata,
))
embeddings_data.append(
(
chunk.content,
embedding,
chunk.chunk_type,
chunk_metadata,
)
)
# Atomically replace old embeddings with new ones
_, chunk_ids = await self.database.replace_source_embeddings(