Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
package types
// QAPair represents a complete QA example with question, related passages and answer
type QAPair struct {
QID int // Question ID
Question string // Question text
PIDs []int // Related passage IDs
Passages []string // Passage texts
AID int // Answer ID
Answer string // Answer text
}