Unlock the Power of LogSeq with AssistSeq: Your Smart AI Companion

My First LogSeq Plugin: AssistSeq — An Elegant AI Assistant

Galih Laras Prakoso
5 min readAug 29, 2024

As we all know, LLMs (Large Language Models) have become indispensable in our daily lives. They help us with a wide range of tasks, from brainstorming and summarizing to even coding. Personally, I rely on LLMs every day to assist with work, engage in thought-provoking discussions, and even tackle random topics that pop up. They have truly revolutionized how we approach problem-solving and productivity.

Beyond my use of LLMs, I also rely heavily on LogSeq as my “second brain.” It’s an incredible tool for organizing information, allowing me to effortlessly search through my notes and become more efficient in solving problems and learning new things. A few weeks ago, I had a simple yet powerful idea: to combine the capabilities of LLMs with LogSeq, creating a smart AI assistant that fully understands the context of my personal information in a structured way. And thus, AssistSeq was born!

LogSeq

LogSeq is a privacy-first, open-source knowledge management tool designed for lifelong learners. It functions as a powerful outliner, helping users to structure their thoughts, notes, and projects in a way that enhances productivity and learning. LogSeq’s ability to link notes and create a network of knowledge makes it an invaluable tool for anyone looking to manage information more effectively.

LLM

LLM stands for Large Language Model, a type of artificial intelligence trained on vast amounts of text data. LLMs can understand and generate human-like text, making them useful for a wide range of applications, from conversational agents to content generation and beyond. They are the backbone of many modern AI tools, enabling machines to engage in meaningful conversations and perform complex tasks based on natural language inputs.

LangChain

LangChain is a powerful framework designed to simplify the creation of applications powered by language models. It provides tools for prompt templating, model chaining, and integration with external services, making it easier to build and customize AI-driven applications. LangChain supports a variety of providers and models, allowing developers to seamlessly switch between them and extend their applications with additional functionality.

With LangChain, building a chatbot-like assistant becomes a breeze. The framework’s flexibility in handling prompts, chaining models to various tools, and parsing outputs makes it an ideal choice for developing sophisticated AI assistants like AssistSeq. Its support for multiple providers and models also simplifies the integration process, enabling me to work with the tools and models that best suit my needs.

Supported Providers

Currently, the AssistSeq plugin supports several prominent AI providers, including:

  • OpenAI: A leading provider of AI models, known for its powerful and versatile GPT series.
  • Gemini: A platform offering cutting-edge AI solutions tailored for various applications.
  • Ollama: A local provider option, perfect for users who need to work with confidential documents within their LogSeq environment.
  • Groq: A provider focused on delivering high-performance AI capabilities.

These integrations allow AssistSeq to be both flexible and secure, offering users the choice to leverage powerful cloud-based AI or maintain privacy by using local models like Ollama.

Key Features

Contextual Conversation and Smart Visualization

Contextual Conversation

Unlock deeper insights with AssistSeq. This feature automatically reads your current document and indexes all related notes, enabling the AI to engage in meaningful conversations based on comprehensive context. Whether you’re brainstorming ideas or seeking solutions to complex problems, AssistSeq provides tailored responses that are highly relevant to your current work. This contextual awareness transforms AssistSeq into a true assistant, capable of understanding your needs at a deeper level.

Smart Visualization

AssistSeq transforms complexity into clarity with its Smart Visualization feature, powered by Kroki. Kroki provides a unified API with support for a wide array of visualization tools, including BlockDiag, BPMN, GraphViz, Mermaid, and more. Whether you’re summarizing concepts, explaining ideas, or visualizing data, AssistSeq brings your documents to life with dynamic visual aids. These visualizations help you grasp intricate concepts quickly, making it easier to turn abstract ideas into actionable insights.

Search Engine

AssistSeq surfed the internet using Tavily

AssistSeq’s Search Engine feature, powered by Tavily, allows the AI to surf the internet and fetch information that isn’t readily available in your current documents. Tavily is a search engine optimized for LLMs and RAG (Retrieval-Augmented Generation), designed to deliver efficient, quick, and persistent search results. With this feature, AssistSeq can pull in external knowledge to enhance the context of your discussions, making it a powerful tool for research and information gathering.

Web Scrapping

AssistSeq scrapped the website using Cheerio

Whenever AssistSeq encounters a URL, it automatically scrapes the website for relevant information and incorporates it into the conversation context. This Web Scraping feature is powered by Cheerio, a fast and flexible web scraping tool. Cheerio enables AssistSeq to extract data from web pages in a manner similar to jQuery, making it easy to integrate fresh content from the web directly into your LogSeq workspace. This ensures that your AI assistant always has the most up-to-date information at its disposal.

Conclusion

Creating AssistSeq has been a rewarding experience, blending the power of LogSeq with the intelligence of modern LLMs to create a truly smart assistant. I invite you to try out AssistSeq and elevate your LogSeq experience with this smart AI tool!. If you enjoyed this post, be sure to follow my Medium channel and subscribe to my Substack for more personal insights and awesome blog posts. Let’s continue exploring the limitless possibilities of AI together!

--

--

Galih Laras Prakoso

"Full-time generalists. Always learning, always growing. Dive in and join my journey!". Read more stories: https://ghackdev.substack.com/