Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a ContextChat provider #2271

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

feat: Add a ContextChat provider #2271

wants to merge 10 commits into from

Conversation

marcelklehr
Copy link
Member

No description provided.

Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr
Copy link
Member Author

marcelklehr commented Feb 22, 2025

Mmh, I'm getting hundreds of

"PUT /loadSources HTTP/1.1" 200 OK

but context_chat:stats still shows:

Indexed documents: array (
  'bookmarks__bookmarks' => 1,

Perhaps because initially those bookmarks are all empty, after import and the crawl job still needs to fill them with content... 🤔

Copy link

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works nicely for addition and deletions of bookmarks!

* The ID of the provider
*
* @return string
* @since 1.1.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

15.x.x here and other places

Comment on lines +125 to +128
if (count($items) < 25) {
continue;
}
$this->contentManager->submitContent($this->getAppId(), $items);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the 25 item limit?

also, the submitContent should be outside the loop.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah sorry I misread it. The items array should still be cleared up when submitContent is called and checked once outside the loop.

@kyteinsky
Copy link

Mmh, I'm getting hundreds of

submit content has a separate bg job that has a batch size of 20 so might be due to sheer no. of bookmarks?
what does ccb.log say?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants