nextcloud / nextcloud/context_chat

Expose max retrieved document chunks in the UI/task processing provider

Open
#134 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
29
Forks
12
Avg merge
4d 4h
Merged PRs (30d)
5

Description

Describe the feature you'd like to request

Add a field ctxLimit in the main ContextChat task processing task type to allow adjusting the no. of document chunks that are retrieved and packed into the query.
This change also needs to be done in the Assistant app.

Describe the solution you'd like
Describe alternatives you've considered

Increasing the default ctxLimit and context length of the queries in context_chat_backend.

Contributor guide

Open the contributing guide

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 by locating the main ContextChat task processing task type and the corresponding Assistant app implementation. Trace how document chunks are retrieved and packed into queries, then expose an adjustable ctxLimit in both locations and verify that the configured limit is respected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend-api-design, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.