Skip to content

rag initialization failure #4364

Description

@k33g

Description

If I define a "rag" section in the configuration file, the first time at launch that I do a search, I would get this error message.

Some toolsets failed to initialize for agent 'cookbook'.

Details:

- toolset rag failed: failed to create RAG manager: failed to build strategy configs for RAG "rag_knowledge": failed to build strategy "chunked-embeddings" for RAG "rag_knowledge": failed to create database: failed to create schema: attempt to write a readonly database (1032)

If I quit the Docker agent and restart it, it works.

I use Docker Agent v1.141.0

Expected Behavior

No response

Actual Behavior

No response

Steps to Reproduce

the rag section:

rag:
  rag_knowledge:
    tool:
      description: >
        Search the Go and htmx cookbook.
        Every topic comes with its common mistakes and how to avoid them.
    docs:
      - ./knowledge

    strategies:
      - type: chunked-embeddings
        embedding_model: embedder
        database: ./knowledge-embeddings.db
        vector_dimensions: 768
        similarity_metric: cosine_similarity
        threshold: 0.3
        limit: 6
        chunking:
          size: 1200
          overlap: 100
          respect_word_boundaries: true

models:
  embedder:
    provider: dmr
    model: huggingface.co/unsloth/embeddinggemma-300m-gguf:Q8_0
    base_url: http://host.docker.internal:12434/engines/v1
    max_tokens: 2048

Docker Agent version

1.141.0

OS & terminal

Linux inside SBX

Model used

Local model

Error output

Some toolsets failed to initialize for agent 'cookbook'.

Details:

- toolset rag failed: failed to create RAG manager: failed to build strategy configs for RAG "rag_knowledge": failed to build strategy "chunked-embeddings" for RAG "rag_knowledge": failed to create database: failed to create schema: attempt to write a readonly database (1032)

Screenshots

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ragFor work/issues that have to do with the RAG features

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions