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

Assistant feature: Send user query as part of template variable GET request #1302

Open
ethayu opened this issue Jun 24, 2024 · 2 comments
Open

Comments

@ethayu
Copy link

ethayu commented Jun 24, 2024

Trying to integrate RAG as an assistant. Thinking of using a template variable that makes a GET request (with the prompt as the request body), to get the relevant documents as context. Is this possible (i.e. there is a special variable in the system prompt page for the user query), or is there a better way of doing this?

@ethayu
Copy link
Author

ethayu commented Jun 25, 2024

Found this: #949, but seems to only support time and date. Would be great if something like {{ query }} was supported, and secondly we could query {{url=123.123.123.12:8000/{{ query }}}}, or something like that.

Alternatively, maybe {{url=123.123.123.12:8000/}} could pass the query as part of the request body (as mentioned already)

@ethayu
Copy link
Author

ethayu commented Jun 25, 2024

#611 would also make it doable.

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

No branches or pull requests

1 participant