Comments (4)
Are you referring to the createPromptSurrounds
values?
Afaik the pre
and post
should always be in the final prompt. If it isn't, that's a bug.
from agnai.
I don't know exactly what part it is, i think preamble in prompt.ts, this cut off at some point till only chat is left.
The part with the persona and scenario.
I guess that preamble size is not taken into account, I am not sure. It is a bug for sure.
from agnai.
The prompt creation is intended to:
- build the
preamble
: The persona, greeting, scenario and sample chat. - build the
postamble
: Generally just"BOT_NAME:"
- fetches the message history by
createdAt
descending - iterates over the messages, appending them to the context until the
pre + history + post
context themaxContext
token size is reached. - combines the 3 and returns them
This is working in my debugger at the moment for guests and users.
from agnai.
I will test on the client side, I was now looking at what comes in at KoboldAI, this output might be capped.
Will let you know if it wasn't my oversight..
from agnai.
Related Issues (20)
- Google Gemini integration.
- Chat Settings Buttons Unresponsive HOT 1
- [enhancement]: basic markdown functionality in input fields
- Character generation with novelai fails on selfhosted with silent error HOT 1
- [bug]: event triggering in multi-bot chat causes error if auto-reply is set to None
- [bug]: scenario events don't display a response from bot in guest mode HOT 1
- Character's Memory Book Entries Being Ignored
- Request: implementation of Claude 3 models HOT 4
- Group Chat Displaying Main Character's Author Note for Other Characters
- Top right menu not usable on iOS HOT 1
- "Unexpected end of JSON input" when generating a reply.
- Chat history being lost and cut
- Implement "Style Exaggeration" slider for use with ElevenLabs voices.
- Animated Avatar Images HOT 1
- Dynamic temperature on Agnai models - take 2 HOT 1
- Quadratic sampling for Agnai models HOT 1
- The "Generate more" button does not work properly
- Claude Messages API prefill functionality
- Scenario: "Copy Event" Button
- Scenario: Repeatable Events. Limited (1<) and Infinite repetition. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agnai.