aimemory
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This is an AI agent that can save information to its memory and retrieve it when answering questions. The agent uses SQLite for persistent storage and OpenAI's API for generating responses.
- Memory Storage: Save snippets of information with optional tags
- Memory Retrieval: When asked questions, the agent searches its memory for relevant information
- Context-Aware Responses: Incorporates found memories into its responses
- Simple Web Interface: Easy-to-use UI for interacting with the agent
- Database: Uses SQLite to store memory snippets with content, tags, and timestamps
- Memory Search: Performs simple text matching to find relevant memories
- Response Generation: Uses OpenAI to generate responses that incorporate found memories
- Web Interface: Provides a clean UI for asking questions and saving new memories
- Enter your question in the "Ask a Question" section
- Click "Ask Question"
- The agent will search its memory for relevant information and incorporate it into the response
- If memories were used, they will be displayed below the response
- Enter the information you want the agent to remember in the "Save New Memory" section
- Optionally add tags (comma-separated) to help with retrieval
- Click "Save Memory"
- Backend: TypeScript with Deno runtime
- Database: SQLite for persistent storage
- AI: OpenAI API for generating responses
- Frontend: HTML, JavaScript, and Twind (Tailwind CSS in JS)
- Implement vector embeddings for more accurate memory retrieval
- Add memory management features (edit, delete, categorize)
- Improve search with semantic similarity rather than just text matching
- Add authentication to create personal memory agents for different users