From 1ced451c2723c36b7e0cb70e6c0755cdbad457c3 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 27 Jun 2024 07:51:30 +0800 Subject: refactor: agent rag use `documents` field other than `embeddings` dir (#658) --- src/config/mod.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index 7ca1972..f82f36a 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -47,8 +47,6 @@ const FUNCTIONS_DIR_NAME: &str = "functions"; const FUNCTIONS_FILE_NAME: &str = "functions.json"; const FUNCTIONS_BIN_DIR_NAME: &str = "bin"; const AGENTS_DIR_NAME: &str = "agents"; -const AGENT_DEFINITION_FILE_NAME: &str = "index.yaml"; -const AGENT_EMBEDDINGS_DIR: &str = "embeddings"; const AGENT_RAG_FILE_NAME: &str = "rag.bin"; pub const TEMP_ROLE_NAME: &str = "%%"; @@ -352,18 +350,6 @@ impl Config { Ok(Self::agents_functions_dir()?.join(name)) } - pub fn agent_functions_file(name: &str) -> Result { - Ok(Self::agent_functions_dir(name)?.join(FUNCTIONS_FILE_NAME)) - } - - pub fn agent_definition_file(name: &str) -> Result { - Ok(Self::agent_functions_dir(name)?.join(AGENT_DEFINITION_FILE_NAME)) - } - - pub fn agent_embeddings_dir(name: &str) -> Result { - Ok(Self::agent_functions_dir(name)?.join(AGENT_EMBEDDINGS_DIR)) - } - pub fn state(&self) -> StateFlags { let mut flags = StateFlags::empty(); if let Some(session) = &self.session { -- cgit v1.2.3