Попытки в мультипарсинг
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
{
|
||||
public class CodeChunk
|
||||
{
|
||||
public string Id { get; set; } // Уникальный идентификатор из SCIP
|
||||
public string ProjectName { get; set; }
|
||||
public string EntityName { get; set; } // Человекочитаемое имя (например, ProcessData)
|
||||
public string FilePath { get; set; }
|
||||
public string ClassName { get; set; }
|
||||
public string MethodName { get; set; }
|
||||
public string Documentation { get; set; }
|
||||
public string Content { get; set; }
|
||||
public float[] Vector { get; set; }
|
||||
public List<string> OutgoingCalls { get; set; } = new List<string>();
|
||||
public string Content { get; set; } // Вырезанный сырой исходный код
|
||||
public string Language { get; set; }
|
||||
public float[] Embedding { get; set; } // Вектор из GraphCodeBERT
|
||||
public List<string> OutgoingCalls { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
||||
16
CodeBase/Models/RetrievedContext.cs
Normal file
16
CodeBase/Models/RetrievedContext.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace CodeBase.Models
|
||||
{
|
||||
public class RetrievedContext
|
||||
{
|
||||
public string EntityName { get; set; }
|
||||
public string FilePath { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string ProjectName { get; set; }
|
||||
|
||||
// Оценка релевантности (полезно для отладки качества поиска)
|
||||
public double SimilarityScore { get; set; }
|
||||
public List<string> OutgoingDependencies { get; set; } = new();
|
||||
public List<string> IncomingDependencies { get; set; } = new();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user