fix: RAG services improvements (#1565)

* fix: rag nix runner

* feat: improve rag default models

* fix: change log levels to avoid huge log files in rag service
This commit is contained in:
Omar Crespo
2025-03-20 00:28:04 -05:00
committed by GitHub
parent a9ec013f1c
commit 968d5fbd52
4 changed files with 26 additions and 23 deletions

View File

@@ -197,12 +197,14 @@ end
function M.to_local_uri(uri)
local scheme = M.get_scheme(uri)
if scheme == "file" then
local path = uri:match("^file:///host(.*)$")
local path = uri:match("^file:///host(.*)$")
if scheme == "file" and path ~= nil then
local host_dir = Config.rag_service.host_mount
local full_path = Path:new(host_dir):joinpath(path:sub(2)):absolute()
uri = string.format("file://%s", full_path)
end
return uri
end