In response to the issue raised in # 281, I have added a dependency of
'nbconvert' to the Python dependency list of the avaent rag server,
hoping to fix the problem
* Exclude file patterns from git-crypt in pathspec
git-crypt could be used to encrypt files in a repository.
These files should be excluded from the pathspec to avoid
sending them to the RAG service.
git-crypt relies on a filter attribute in the .gitattributes so we can
use ls-files to get the files that are encrypted.
* Add some logging about ignored file
The logging is quite verbose, given it logs every ignored file but I
think it useful for the end user to have an explicit feedback about
sensitive files that are being ignored.
* Fix lint errors
* Avoid Shell=true for subprocess.run() (S604)
Removing S604 "Avoid Shell=true for subprocess.run()" we get S603 "subprocess call: check for execution of untrusted input"
I dit not found a way to fix this issue, so I'm putting it in the ignore list.
I also used shutil to retrieve the absolute git path to run the subprocess commands.
* feat: add nix as option for RAG runner
* fix: remove default embedding model
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* stylua format
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix: openai env
* feat: add support for multiple RAG providers
- Added provider, model and endpoint configuration options for RAG service
- Updated RAG service to support both OpenAI and Ollama providers
- Added Ollama embedding support and dependencies
- Improved environment variable handling for RAG service configuration
Signed-off-by: wfhtqp@gmail.com <wfhtqp@gmail.com>
* fix: update docker env
* feat: rag server add ollama llm
* fix: pre-commit
* feat: check embed model and clean
* docs: add rag server config docs
* fix: pyright ignore
---------
Signed-off-by: wfhtqp@gmail.com <wfhtqp@gmail.com>