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

[BUG] Compressing a compressed conversation generates error #456

Open
1 task done
james777b opened this issue Mar 14, 2024 · 1 comment
Open
1 task done

[BUG] Compressing a compressed conversation generates error #456

james777b opened this issue Mar 14, 2024 · 1 comment
Labels
type: bug Something isn't working

Comments

@james777b
Copy link

Description

After an ongoing conversation (more than 4K tokens) with multiple models (llama2, codellama, tinyllama) via ollama, I compressed the conversation to the 'detailed' level. It worked fine afaict. Then I compressed again to 'brief.'

The text it rendered was:
"""
\begin{code}
df = pd.read_csv('C:/Users/Administrator/Desktop/test.csv', skiprows=range(0, 4500))
\end{code}
\end{code}
"""

That is four lines verbatim, even the duplicated end.

When I accepted that change to replace text, it did in fact replace the conversation text with message.

Also, that directory... isn't mine. I am running the app via a similar location; it's was in my username. And, I'm on Windows.

Device and browser

Windows 10; Firefox.

Screenshots and more

No response

Willingness to Contribute

  • 🙋‍♂️ Yes, I would like to contribute a fix.
@james777b james777b added the type: bug Something isn't working label Mar 14, 2024
@enricoros
Copy link
Owner

Thanks for the report @james777b. The compression prompts are probably not "strong" enough to work well with smaller models, and should be revised.

It's impressive how the model hallucinated that code and also the username. Definitely it's not in the prompting, I wonder how they made it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants