retrieval

package
v1.833.367 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package retrieval states when a model call asks this module to search the org's document index into its prompt (controllers/chat_retrieval.go), and which store it names.

A LEAF, on purpose: the host in front reads the same answer to refuse retrieval to a credential that may not read the org's documents (hanzo-inc/cloud refuses a delegated token one), and a host that kept its own copy of these spellings would silently disagree the day one changed here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asked

func Asked(header func(string) string, body []byte) bool

Asked reports whether a request asks for retrieval: X-Retrieval when it is present decides ("1" or "true"), then X-Retrieval-Store, then the body's `retrieval` or `retrieval_store`. header reads one request header by name.

func Store

func Store(header func(string) string, body []byte) string

Store names the store a request searches: the header if present, else the body, else empty — which the search resolves to the org's default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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