Skip to content

How to create a global flow #310

Answered by drazvan
megh-khaire asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @megh-khaire! This should work with a small tweak. The user ... matches all user canonical forms. But in your case you don't have any defined. So, if you go ahead and define at least one, it should start working, e.g.

define user says something
  "hi"

Now, if you do just that, you will see that it will make an LLM call to determine the canonical form, which you don't need in your case. To overcome this, you can set the following flag:

rails:
  dialog:
    user_messages:
      embeddings_only: True

With this setting, for every user message, the canonical form will be determined purely based on the embedding, and it will only be the same, i.e., user says something.

Let me know if this …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@megh-khaire
Comment options

Answer selected by megh-khaire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants