-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cannot create Quiz with Olama #19
Comments
Do you get the error when you try to add a note/folder or when you try to generate questions? |
When I try to generate questions |
Do you have Ollama installed and running when you try to generate questions? If so, what generation model are you using? |
Hi, do you have ollama pull nomic-embed-text installed? It is necessary for it to work, just in case if you don't have it you should open cmd or powershell and install it
Since I'm passing by it seems that just in this case a bug occurred 😁 as you can see in the video the options card to join cannot be displayed I realized that it is because for this case as you can see in the callout it is like this quiz.mp4
if I change |
This is because the actual HTML is being rendered. I'll add a generation-level fix for this in the future, but for now you should enclose HTML with backticks so that it gets treated as text.
|
Hmm, that's very strange. Is it possible for you to send a video of what happens when you try to generate a quiz? |
QuizGenerator.mp4Here's the video |
What happens if you try generating using a small note (few hundred tokens)? |
It seems to work, but not over 1000 tokens. I tried it with 349 tokens and it worked |
I believe the hardware affects the model speed, so maybe if your machine isn't powerful enough and you make a really large request, the model could timeout? That feels like the most likely scenario to me right now. You could also try asking in the Ollama discord server if anyone has encountered a similar problem when sending a large number of tokens in a single request. |
I see. I'll look into a fix. |
Hello, i am having this same issue, any ideas? |
You get the same error when using more than 1000 tokens? |
It happens even with 300 tokens. I haven't been able to generate a quiz
yet. I tried a few different notes and models and I got the same thing
…On Tue, Oct 15, 2024, 11:58 PM Edward Cui ***@***.***> wrote:
You get the same error when using more than 1000 tokens?
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLHISWKNKJDUKXQ2FJEVALZ3XW53AVCNFSM6AAAAABPQCNG6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVG4ZTEMRYGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
How many questions did you try generating? And what models did you try? |
I tried to generate 15 questions using llama 3.2:3b and 3.1, phi 3.5. I
tried both nomic text embed and mxbai. Is there some way to debug it and
maybe I can give you better information?
…On Wed, Oct 16, 2024, 6:41 PM Edward Cui ***@***.***> wrote:
How many questions did you try generating? And what models did you try?
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APLHISSO33GYDMPA5NHV6SDZ332THAVCNFSM6AAAAABPQCNG6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYGE2DMNZTHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I would try starting from a working threshold and go from there to see what breaks it. For example, generating 1 true or false question using 200 tokens. Then increasing either the number/type of questions or number of tokens. |
Is there a way we could split the input info into chunks and generate questions with multiple calls to Ollama? Something like every 800-1000 tokens since that seems to be the limit people are hitting before they get an error |
Hello,
I'm experiencing an issue when trying to create a quiz using Olama. After selecting my file, I encountered the following error: "Cannot read properties of undefined (reading 'forEach')."
My file is located in a folder, so I also tried using both the "Add note" and "Add folder" options to test if there was a bug, but the issue persists.
Could you please provide guidance on how I can successfully create a quiz?
Thanks
The text was updated successfully, but these errors were encountered: