ragkb

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnowledgeEntry

type KnowledgeEntry struct {
	ID      string `json:"id"`
	Agent   string `json:"agent"`
	Content string `json:"content"`
	Tag     string `json:"tag"`
}

type OTelCollector

type OTelCollector struct {
	// contains filtered or unexported fields
}

func NewOTelCollector

func NewOTelCollector() *OTelCollector

func (*OTelCollector) Export

func (c *OTelCollector) Export() string

func (*OTelCollector) GetMetrics

func (c *OTelCollector) GetMetrics() []OTelMetric

func (*OTelCollector) Record

func (c *OTelCollector) Record(name string, value float64, labels map[string]string)

func (*OTelCollector) Trace

func (c *OTelCollector) Trace(name string) string

type OTelMetric

type OTelMetric struct {
	Name   string            `json:"name"`
	Value  float64           `json:"value"`
	Labels map[string]string `json:"labels"`
}

type RAGKnowledgeBase

type RAGKnowledgeBase struct {
	// contains filtered or unexported fields
}

func NewRAGKnowledgeBase

func NewRAGKnowledgeBase() *RAGKnowledgeBase

func (*RAGKnowledgeBase) Add

func (kb *RAGKnowledgeBase) Add(agent string, entry *KnowledgeEntry)

func (*RAGKnowledgeBase) Count

func (kb *RAGKnowledgeBase) Count(agent string) int

func (*RAGKnowledgeBase) GetAll

func (kb *RAGKnowledgeBase) GetAll(agent string) []*KnowledgeEntry

func (*RAGKnowledgeBase) Query

func (kb *RAGKnowledgeBase) Query(agent, query string) []*KnowledgeEntry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL