Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BM25 ¶
type BM25 struct {
TF []map[string]int
DocLengths []int
DocCount int
AvgDocLength float64
IDF map[string]float64
// contains filtered or unexported fields
}
func (*BM25) Search ¶
func (bm *BM25) Search(query string) []SearchResult
type PageChunk ¶
type PageChunk struct {
engines.SearchEngineData
Content string
}
type SearchResult ¶
type WebPageDataExport ¶
type WebPageDataExport struct {
engines.SearchEngineData
ContentChunks []string
Err error
}
type WebSearchResult ¶
type WebSearchResult struct {
Data string `json:"data"`
Link string `json:"link"`
Score float64 `json:"score"`
}
func PrepareContextFromWebSearch ¶
func PrepareContextFromWebSearch(ctx context.Context, query string) ([]WebSearchResult, error)
Click to show internal directories.
Click to hide internal directories.