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