eublefar
a31391edd7
Polymorphic serialization for executor state and transforms
1 year ago
eublefar
6f76d77350
Make text transform interfaces have explicit copy operation
1 year ago
eublefar
5f3803d23c
Make state editable by the user, add deepcopy to fields that require it
1 year ago
eublefar
e05d5d4e14
Remove resetting state ops and make SessionState.ExecutorState and SessionState.ContextState no nullable
1 year ago
eublefar
b2f7dbb39b
AddPromptAsync method for stateful executors, Chat session initialize from history and process system message methods for pre-processing prompts. Serializing executor state to JSON, to avoid saved states from being updated by reference.
1 year ago
eublefar
35153a77dd
Chat session Get/Load in-memory state operations, reset state ops for stateful executors and context
1 year ago
Scott W Harden
4c3077d0f0
ChatSession: improve exception message
The original message contained the word "preceeded" which should be spelled as "preceded"
1 year ago
Philipp Bauer
67e6d633fd
Rebuild ChatSession class
- Saves with serialized ChatHistory of session
- Only allows use of ChatHistory.Message (instead of raw text)
for easy post-processing with IHistoryTransform implementation
- Provides History Management methods
- Allows user to regenerate last assistant message
2 years ago
Philipp Bauer
75932afc62
Remove debug output
2 years ago
Philipp Bauer
629430a087
Correctly format followup messages in turn-based (chat) inference
2 years ago
Philipp Bauer
d2b544afb8
Improved method return description
2 years ago
Philipp Bauer
6ea40d1546
Use full history only when the ChatSession runs the first time
2 years ago
Philipp Bauer
a288e7c02b
Prevent duplication of user prompts / chat history in ChatSession.
The way ChatSession.ChatAsync was using the provided methods
from a IHistoryTransform interface implementation created unexpected
duplication of the chat history messages. It also prevented loading
previous history into the current session.
2 years ago
Martin Evans
3f80190f85
Minimal changes required to remove non-async inference.
2 years ago
Martin Evans
a911b77dec
Various minor changes, resolving about 100 ReSharper code quality warnings
2 years ago
Martin Evans
f3511e390f
WIP demonstrating changes to support multi-context. You can see this in use in `TalkToYourself`, along with notes on what still needs improving.
The biggest single change is renaming `LLamaModel` to `LLamaContext`
2 years ago
sa_ddam213
bac9cba01a
InferenceParams abstractions
2 years ago
Martin Evans
2e76b79af6
Various minor XML docs fixes
2 years ago
Yaohui Liu
6c400e64c2
docs: publiash documentation 0.4.
2 years ago
Yaohui Liu
1e061615d4
refactor: remove SessionParams.
2 years ago
Marcel
b911b2548b
move interfaces into abstractions folder
2 years ago
Yaohui Liu
a3b8186f20
feat: support save and load chat session.
2 years ago
Yaohui Liu
bdbd6aa824
feat: add transforms for chat session.
2 years ago
Yaohui Liu
3bf74ec9b9
feat: add chat session for refactored code.
2 years ago
Yaohui Liu
264fb9a706
refactor: LLamaModel and LLamaExecutor.
2 years ago
Yaohui Liu
afedd3c949
fix: errors when input is not English or too long.
2 years ago
Yaohui Liu
f5a01c346d
feat: enable history for chat session.
2 years ago
Yaohui Liu
fce10f3c4f
feat: add ChatSession.
2 years ago