Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

erithmetic/seqai

Open more actions menu

Repository files navigation

Seqai

Seqai is a tool that makes your logseq journal searchable with AI tools.

Setup

uv sync

Running

This defaults to using claude haiku for the agent, so be sure to export ANTHROPIC_API_KEY. this can be placed in a .env file.

To run SeqAI, use the following commands with the path to your Logseq journal directory:

  • Start the MCP server: python main.py -p /path/to/your/logseq/journal server
  • Run CLI: python main.py -p /path/to/your/logseq/journal cli
  • Reindex notes: python main.py -p /path/to/your/logseq/journal reindex
  • Semantic search CLI: python main.py -p /path/to/your/logseq/journal semantic-search

The -p or --path parameter specifies the path to your Logseq journal directory. The default path is $HOME/notes if not specified.

Accessing from Claude Desktop

There is no MCP bundle for this yet, so you can clone this repo and copy/paste the config from the claude-mcp.json file that runs a shell script.

How it works

This MCP server indexes your journal into a local ChromaDB vector database and provides MCP tools for searching and conversing with your journal. You can connect your AI/chatbot to this MCP server.

Instead of indexing raw markdown, this agent uses logseq's Datomic graph database.

So far, you are required to manually re-index on updates.

Future Improvements

  • Better block indexing and chunking (so far it only indexes individual blocks)
  • Search relevance by date
  • Block attribute indexing

About

An AI agent for querying logseq using semantic search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.