volcengineknowledge

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package volcengineknowledge implements Volcengine Knowledge Service rerank through its official SDK.

Index

Constants

View Source
const (
	DefaultModel  = "doubao-seed-rerank"
	DefaultRegion = "cn-beijing"
	// DefaultInstruction is the console's default instruction, verbatim: "如需对齐控制台效果,请使用
	// 相同指令" (https://docs.volcengine.com/docs/vector_database_vikingdb/Rerank).
	DefaultInstruction = "Whether the document answers the query " +
		"or matches the content retrieval intent"
)

SDK defaults follow the managed rerank service.

Variables

This section is empty.

Functions

func New

func New(config Config) (api.Reranker, error)

New creates an authenticated rerank protocol client.

Types

type Config

type Config struct {
	AccessKey, SecretKey, BaseURL, Model, Region, Instruction string
	Client                                                    *http.Client
}

Config contains resolved connection parameters for the SDK client.

Jump to

Keyboard shortcuts

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