Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct {
TenantID string
Source string // "jira", "youtrack", "confluence", ...
ProjectKey string
DocKey string // PROJ-123, page-id, etc.
Title string
Status string
Author string
Content string
Embedding []float32
UpdatedAt time.Time
}
Document — единица знания для индексации. Tracker-agnostic.
type Filter ¶
type Filter struct {
TenantID string
ProjectKey string
Source string // опционально: "jira", "confluence", "" = все
}
Filter ограничивает поиск.
type Hit ¶
type Hit struct {
DocKey string `json:"doc_key"`
Title string `json:"title"`
Status string `json:"status"`
Score float32 `json:"score"`
Excerpt string `json:"excerpt"`
}
Hit — результат поиска.
type Reader ¶
type Reader interface {
Search(ctx context.Context, queryEmbedding []float32, f Filter, topK int) ([]Hit, error)
}
Reader — read path: поиск по базе знаний.
Click to show internal directories.
Click to hide internal directories.