docker / docker/docker-agent

<short description>

Open
#4,364 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/rag
Dominant language
Go
Stars
3.3k
Forks
462
Avg merge
1d 10h
Merged PRs (30d)
273

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from RAG initialization for the chunked-embeddings strategy and the configured ./knowledge-embeddings.db path. Reproduce the first search with the provided configuration in Docker Agent v1.141.0, then compare it with a restarted agent; done means the initial launch and search succeed without the readonly-database error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.