xelyon

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RAGRequest

type RAGRequest struct {
	Query  string `json:"query"`
	UserID string `json:"user_id"`
	Model  string `json:"model"`
	TopK   int    `json:"top_k"`
}

type RAGResponse

type RAGResponse struct {
	Results []RAGResult `json:"results"`
	Query   string      `json:"query"`
	Count   int         `json:"count"`
}

func SearchRAG

func SearchRAG(query string, userID string, topK int) (*RAGResponse, error)

type RAGResult

type RAGResult struct {
	ID            string  `json:"id"`
	Content       string  `json:"content"`
	DocumentID    string  `json:"document_id"`
	DocumentTitle string  `json:"document_title"`
	DocumentType  string  `json:"document_type"`
	Similarity    float64 `json:"similarity"`
}

Jump to

Keyboard shortcuts

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