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

plugin-knowledge-bases: update api endpoint to use source ids #BLT-983 #2880

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

Iru89
Copy link
Contributor

@Iru89 Iru89 commented Aug 1, 2024

Description

Update endpoint to /knowledge_base/inference/
This endpoint use source ids instead of source names

Context

Approach taken / Explain the design

To document / Usage example

Testing

The pull request...

  • has unit tests
  • has integration tests
  • doesn't need tests because... [provide a description]

@Iru89 Iru89 marked this pull request as ready for review August 1, 2024 16:20
Comment on lines -34 to -41
const responseSources = response.data.sources.map(source => {
return {
knowledgeBaseId: source.knowledge_base_id,
knowledgeSourceId: source.knowledge_source_id,
knowledgeChunkId: source.knowledge_chunk_id,
}
})

Copy link
Contributor

Choose a reason for hiding this comment

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

should the changes in this PR go in a 0.29.0 release? this is a breaking change. Maybe we can update just this plugin to 0.29.0 to maintain compatibility if needed

@Iru89 Iru89 changed the title refactor(plugin-knowledge-bases): change api endpoint and response plugin-knowledge-bases: new api for knowledge base Aug 2, 2024
@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 13, 2024
@vanbasten17 vanbasten17 force-pushed the BLT-983-update-knowledge-base-plugin branch from 67323ad to dbd3be5 Compare August 13, 2024 08:28
@vanbasten17 vanbasten17 changed the title plugin-knowledge-bases: new api for knowledge base plugin-knowledge-bases: update api endpoint to use source ids #BLT-983 Aug 13, 2024
@vanbasten17 vanbasten17 force-pushed the BLT-983-update-knowledge-base-plugin branch from dbd3be5 to cd5d5b7 Compare August 13, 2024 08:30
@vanbasten17 vanbasten17 merged commit 36aea4c into master-lts Aug 13, 2024
1 check passed
@vanbasten17 vanbasten17 deleted the BLT-983-update-knowledge-base-plugin branch August 13, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants