Documentation
¶
Index ¶
Constants ¶
View Source
const CHUNK_OVERLAP = 200
View Source
const COHERE_RERANK_MODEL = "rerank-english-v3.0"
Variables ¶
View Source
var TOP_N_CHUNKS int = 8
Functions ¶
Types ¶
type ReRankInterface ¶
type ReRankInterface interface {
ReRank(request ReRankRequest) (*[]ReRankResult, error)
}
func CreateCohereClientFromEnv ¶
func CreateCohereClientFromEnv() ReRankInterface
func NewCohereClient ¶
func NewCohereClient(token string) ReRankInterface
NewCohereClient creates a new cohere client.
type ReRankRequest ¶
type ReRankResult ¶
Click to show internal directories.
Click to hide internal directories.