MCPcopy Create free account
hub / github.com/astercloud/aster / WithMaxResults

Function WithMaxResults

pkg/knowledge/rag.go:271–275  ·  view source on GitHub ↗

选项构造函数

(maxResults int)

Source from the content-addressed store, hash-verified

269
270// 选项构造函数
271func WithMaxResults(maxResults int) RAGOption {
272 return func(opts *RAGOptions) {
273 opts.MaxResults = maxResults
274 }
275}
276
277func WithKnowledgeType(knowledgeType KnowledgeType) RAGOption {
278 return func(opts *RAGOptions) {

Callers 2

RetrieveSimilarMethod · 0.85
RetrieveMultiHopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected