Documentation
¶
Index ¶
- Constants
- Variables
- func BuildVectorIndexForSearcher[T searchtools.AISearchable](db *gorm.DB, collectionName string, tools []T) (*rag.RAGSystem, error)
- func NewComprehensiveSearcher[T searchtools.AISearchable](name string, chatToAiFunc func(string) (io.Reader, error)) searchtools.AISearcher[T]
- func NewMergeSearchr[T searchtools.AISearchable](searchs ...searchtools.AISearcher[T]) searchtools.AISearcher[T]
- func NewRAGSearcher[T searchtools.AISearchable](name string) (searchtools.AISearcher[T], error)
Constants ¶
View Source
const AIToolVectorIndexName = "AI_TOOL_VECTOR_INDEX"
View Source
const ForgeVectorIndexName = "FORGE_VECTOR_INDEX"
Variables ¶
View Source
var SimpleLiteForge contracts.LiteForge
Functions ¶
func BuildVectorIndexForSearcher ¶
func BuildVectorIndexForSearcher[T searchtools.AISearchable](db *gorm.DB, collectionName string, tools []T) (*rag.RAGSystem, error)
BuildVectorIndexForSearcher 构建向量索引
func NewComprehensiveSearcher ¶
func NewComprehensiveSearcher[T searchtools.AISearchable](name string, chatToAiFunc func(string) (io.Reader, error)) searchtools.AISearcher[T]
NewComprehensiveSearcher 综合 RAG 和 关键词 查询工具
func NewMergeSearchr ¶
func NewMergeSearchr[T searchtools.AISearchable](searchs ...searchtools.AISearcher[T]) searchtools.AISearcher[T]
func NewRAGSearcher ¶
func NewRAGSearcher[T searchtools.AISearchable](name string) (searchtools.AISearcher[T], error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.