Replies: 1 comment
-
OK, so what we did is to just put the entire Orama Client in an onSubmit handler in a React component and it seems to work fine. Not sure if this is the correct way to do it or not. pseudo code is below. curious if this is basically the way to do it.
|
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I was reading your docs on Creating an Answering Session, but this does not seem to be a part of the React SDK: https://docs.orama.com/cloud/integrating-orama-cloud/react-sdk
So how do you create an Answer Session in React? The reason we need to do this is because the Chat Box Component doesn't allow any customization of results or more importantly doesn't allow passing of search parameter, so we can filter and sort to influence the inference. This is critical, when you are using a large dataset. So we thought about using the Create Answer Session in JS to allow us to better fine tune the AI Chat. But, it doesn't seem like you can use in React, or the SDK doesn't include it (only regular search and vector search, seem to be included)
Beta Was this translation helpful? Give feedback.
All reactions