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

Blt 758 task use knowledge base on flow builder plugin #2847

Merged

Conversation

Iru89
Copy link
Contributor

@Iru89 Iru89 commented Jun 10, 2024

Description

Add the logic for knowledge-base-node.
With version 0.27.0 of the knowledge bases plugin the id will not be used when doing the inference but you will have to indicate which sources you want to use.

Context

In a knowledge base node we have stored the names of the files (sources of the main knowledge base) that we want to use to solve the user's question.
In the knowledge base flow we can have conditionals, texts and follow ups that end up connecting to a knowledge base node

Approach taken / Explain the design

If the knowledge base response hasKnowledge or isFaithful set to false we will display the contents of fallback.
It may happen that in the knowledge base flow when solving a conditional we do not use any knowledge base, in which case the nodes are solved without using the knowledge base.

To document / Usage example

Captura de pantalla 2024-06-10 a las 16 32 17

Testing

Add tests for knowledge base flows
Change createFlowBuilderPlugin function to pass a object with params, add createFlowBuilderPluginAndGetContents to encapsulate in one function all logic for most of the tests

@Iru89 Iru89 force-pushed the BLT-758-task-use-knowledge-base-on-flow-builder-plugin branch 4 times, most recently from 5df2f08 to e9718b4 Compare June 10, 2024 13:32
@Iru89 Iru89 marked this pull request as ready for review June 10, 2024 13:32
Base automatically changed from plugin-hubtype-analytics/feedback-event to master-lts June 11, 2024 10:30
Iru89 and others added 15 commits June 11, 2024 12:58
…ent (#2834)

Review commit by commit
Add events to plugin flow builder:
- fallback event
- keyword event
- intent
- intent smart
Refactor custom event to have only one custom event and to always go
through the public API
* Removing data field from events

---------

Co-authored-by: Oriol Raventos <[email protected]>
…eturn fallback contents if hasKnowledge or isFaithuful is false
@Iru89 Iru89 force-pushed the BLT-758-task-use-knowledge-base-on-flow-builder-plugin branch from e9718b4 to f792966 Compare June 11, 2024 11:45
@Iru89 Iru89 merged commit 21fc646 into master-lts Jun 11, 2024
7 checks passed
@Iru89 Iru89 deleted the BLT-758-task-use-knowledge-base-on-flow-builder-plugin branch June 11, 2024 11:53
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.

2 participants