Фиксация изменений
This commit is contained in:
Binary file not shown.
@@ -2,6 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from app.modules.rag.contracts import RagDocument, RagLayer, RagSource, RagSpan
|
||||
from app.modules.rag.indexing.code.code_text.chunker import CodeChunk
|
||||
from app.modules.rag.retrieval.test_filter import is_test_path
|
||||
|
||||
|
||||
class CodeTextDocumentBuilder:
|
||||
@@ -17,6 +18,7 @@ class CodeTextDocumentBuilder:
|
||||
"chunk_index": chunk_index,
|
||||
"chunk_type": chunk.chunk_type,
|
||||
"module_or_unit": source.path.replace("/", ".").removesuffix(".py"),
|
||||
"is_test": is_test_path(source.path),
|
||||
"artifact_type": "CODE",
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user