Remove deprecated studio package and refactor agent integration - Deleted the studio package, which is no longer in use, to streamline the codebase. - Updated references in the agent and chat modules to utilize the new agent package instead of the deprecated neo package. - Ensured that all related middleware and routing functionalities are now aligned with the agent architecture, enhancing overall system coherence.
29 lines
995 B
Go
29 lines
995 B
Go
package rag
|
|
|
|
// Setting RAG settings
|
|
type Setting struct {
|
|
Engine Engine `json:"engine" yaml:"engine"`
|
|
Vectorizer Vectorizer `json:"vectorizer" yaml:"vectorizer"`
|
|
Upload Upload `json:"upload" yaml:"upload"`
|
|
IndexPrefix string `json:"index_prefix" yaml:"index_prefix"`
|
|
}
|
|
|
|
// Engine the vector database engine settings
|
|
type Engine struct {
|
|
Driver string `json:"driver" yaml:"driver"`
|
|
Options map[string]interface{} `json:"options" yaml:"options"`
|
|
}
|
|
|
|
// Vectorizer the text vectorizer settings
|
|
type Vectorizer struct {
|
|
Driver string `json:"driver" yaml:"driver"`
|
|
Options map[string]interface{} `json:"options" yaml:"options"`
|
|
}
|
|
|
|
// Upload the file upload settings
|
|
type Upload struct {
|
|
Async bool `json:"async" yaml:"async"`
|
|
AllowedTypes []string `json:"allowed_types" yaml:"allowed_types"`
|
|
ChunkSize int `json:"chunk_size" yaml:"chunk_size"`
|
|
ChunkOverlap int `json:"chunk_overlap" yaml:"chunk_overlap"`
|
|
}
|