Storing a Prompt
The save_prompt()
method saves a prompt to the MongoDB collection.
Example Usage
How It Works
Retrieves the latest prompt version for a given user.
Increments the version and creates a new entry.
Saves the prompt to MongoDB in the
promptlake
collection.Returns the inserted ID for reference.
Last updated