Replies: 2 comments
-
@LouiFi, Here's what I've found. This applies to using the OpenAI API. YMMV with other APIs. Both options are used to maintain conversation continuity. ContextReference
https://github.com/danielmiessler/fabric/blob/main/patterns/suggest_pattern/user.md
SessionReference Session Management: Utilize the session feature provided by the API. Each session can maintain a context for a certain period, allowing the model to remember previous interactions within that session. @eugeis, it looks like sessions are broken in Format FWIW, HTH. |
Beta Was this translation helpful? Give feedback.
-
I have been wondering this myself for a long time. I assumed it would be documented eventually, but I've finally decided to experiment, and I find that context does what I thought it would do: sends the contents of a file (that you add yourself) from the Here I echo my query and pipe it to fabric along with a context file. I believe the context file is sent first and unaltered, based on this small experiment (newl is just an alias to add two new lines before and after each line for readability):
The contents of
My experiment focused on user contextual information that could swapped out for another, but you could include a context file for anything such as:
The world is your oyster, but the real value here is flexibility through modulating all existing and custom patterns on the fly by adding context. |
Beta Was this translation helpful? Give feedback.
-
Hi mates,
Is there any documentation about how to use
contexts
andsessions
? I did not find anything but would love to use this feature.Thank you for your answers.
Beta Was this translation helpful? Give feedback.
All reactions