Echomine offers a powerful Python library and CLI tool designed for parsing and exporting AI conversation data. With features like advanced search capabilities, memory-efficient parsing, and multi-provider support, users can easily navigate and extract meaningful insights from extensive conversation exports.
Echomine is a powerful Python library and command-line interface (CLI) tool designed for parsing, searching, and exporting AI conversation exports. With its innovative multi-provider adapter pattern, Echomine currently supports exports from major AI platforms such as OpenAI ChatGPT and Anthropic Claude, while allowing for future extensions to other platforms like Gemini.
Echomine is crafted with a focus on the following principles:
Any types are present in the public API through rigorous typing practices.Library API Usage:
from echomine import OpenAIAdapter, SearchQuery
from pathlib import Path
# Initialize the OpenAI adapter and specify the export file
adapter = OpenAIAdapter()
export_file = Path("conversations.json")
# List all conversations
for conversation in adapter.stream_conversations(export_file):
print(f"[{conversation.created_at.date()}] {conversation.title}")
# Execute a search with keywords
query = SearchQuery(keywords=["algorithm", "design"], limit=10)
for result in adapter.search(export_file, query):
print(f"{result.conversation.title} (score: {result.score:.2f})")
CLI Usage Example:
# Automatically detect provider and list conversations
echomine list export.json
# Search conversations by keyword
echomine search export.json --keywords "algorithm,design" --limit 10
Echomine is engineered for optimal memory efficiency and speed, capable of handling large data sets while maintaining performance. For instance, it can process 1.6GB files with 10,000 conversations and 50,000 messages in under 30 seconds.
Full documentation, including comprehensive guides, API references, and examples, can be found at the Echomine Documentation. This resource serves as an invaluable tool for developers looking to integrate or utilize Echomine in their projects.
No comments yet.
Sign in to be the first to comment.