quivr
quivr copied to clipboard
[Bug]: One of the accordion's answer is incomplete.
What happened?
In the home page's accordion for security issues, the answer of question 4 "Do you send my data to third-parties?" seems incomplete at the end.
Answer: "We use OpenAI's GPT-3.5 and GPT-4 language models. This means that text content within your uploads may, in unmarked chunks, be submitted to OpenAI as context when generating a response. We will never send your documents in its complete original form to a".
But, I expect ".... form to anyone (or anything you are supposed to write)."
Relevant log output
No response
Twitter / LinkedIn details
No response
🤖
Hey there @soham2k06! :wave:
I'm Dosu, a friendly bot here to help out while we wait for a human maintainer to chime in. I can assist with bugs, answer questions, and guide you towards becoming a contributor. Don't hesitate to reach out if you need anything!
Let's tackle these tech challenges together! :rocket:
Thank you for bringing this to our attention. It seems like the text for the answer to the question "Do you send my data to third-parties?" in the security section of the home page is indeed incomplete.
The text for the home page's accordion for security issues in the Quivr codebase is located in the SecuritySection.tsx
file. Specifically, it is retrieved from the securityQuestions
data, which is fetched using the useQuery
hook from @tanstack/react-query
and the getSecurityQuestions
function from useCmsApi
. The securityQuestions
data object is an array of objects, where each object has at least two properties: question
and answer
.
Here is the relevant code block:
<Accordion type="multiple">
{securityQuestions.map((question) => {
return (
<AccordionItem
value={question.question}
key={question.question}
>
<AccordionTrigger>{question.question}</AccordionTrigger>
<AccordionContent>{question.answer}</AccordionContent>
</AccordionItem>
);
})}
</Accordion>
In this block, securityQuestions
is an array of objects, each containing a question
and answer
property. These properties are used to populate the text for each accordion item.
The issue you're experiencing is likely due to an incomplete answer
property for the relevant question in the securityQuestions
data. This data is likely fetched from a backend service or a static file in the project.
Unfortunately, as a technical support rep, I don't have the ability to directly modify the codebase or the data it uses. However, I recommend reaching out to the maintainers of the Quivr repository with this information. They should be able to locate the source of the securityQuestions
data and correct the incomplete answer.
You can reference the SecuritySection.tsx file and the securityQuestions
data object in your communication for clarity.
I hope this helps, and please let me know if you have any other questions.
Best, Dosu
Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
@dosu-bot I explored the code written for the component but noticed that those data is coming from database.
🤖
Based on the context you've provided, it seems you want to update the answer to the security question "Do you send my data to third-parties?" in the Quivr home page's accordion component's database.
To do this, you would need to update the 'answer' attribute of the specific 'security-question' in the 'security_questions' collection. Here's a general example of how you might do this using a hypothetical API endpoint:
const axios = require('axios');
axios.put('https://your-quivr-api-endpoint.com/security-questions/{id}', {
answer: 'Your updated answer here.'
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
In this example, replace {id}
with the id of the specific security question you want to update, and replace 'Your updated answer here.'
with the complete answer you want to provide.
Please note that this is a hypothetical example and the actual implementation may vary depending on the specifics of your API and database setup. You may need to authenticate your request, handle errors, and so on.
As for the structure of the 'security_questions' collection in the database, it has the following structure:
- It is a collection type with the name "security_questions".
- It has singular name "security-question" and plural name "security-questions".
- It supports the draft and publish feature.
- It supports internationalization (i18n) and is localized.
- It has two attributes: 'question' and 'answer'.
- Both 'question' and 'answer' support internationalization (i18n) and are localized.
- 'question' is of type 'string'.
- 'answer' is of type 'text'.
You can find more details about this in the schema.json file in the Quivr repository.
I hope this helps! If you have any more questions or need further clarification, feel free to ask.
Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.