GithubHelp home page GithubHelp logo

Comments (6)

Bin-Huang avatar Bin-Huang commented on June 11, 2024 1

I'm sorry for only understanding what you've meant till now. I think you are right, and perhaps we should add a toggle option for this feature.

from chatbox.

Bin-Huang avatar Bin-Huang commented on June 11, 2024

That's pretty much how it works. The system message always comes first in the context.

from chatbox.

nullstreak avatar nullstreak commented on June 11, 2024

@Bin-Huang This is clearly not the case in version 1.2.6.
image

from chatbox.

nullstreak avatar nullstreak commented on June 11, 2024

@Bin-Huang Same in the version 1.3.0.

image

from chatbox.

Bin-Huang avatar Bin-Huang commented on June 11, 2024

This confuses me. Isn't the example you provided proving that everything is normal? The first entry in the content field is a system prompt, and it remains the first entry as the context grows.

from chatbox.

nullstreak avatar nullstreak commented on June 11, 2024

@Bin-Huang That's right. But entries that are closer to the end have a higher priority, so it should be something like this:

  • User message 1
  • Assistant message 1
  • User message 2
  • Assistant message 2
  • System message
  • User message 3

In this case, the latest user message has the highest priority. After that, the system message has the second-highest priority, and then comes the rest of the context.

On the contrary, the instruction that remains at the beginning slowly loses its power as the context grows. And it doesn't take that long. After 3-4 messages, the system prompt wouldn't be followed as closely as when it started.

from chatbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.