AI integration Hub
approvedby Hishmat Salehi
Integrate with AI models (currently Google's Gemini only) to quickly generate and refine notes.
★ 4 stars↓ 1,189 downloadsUpdated 1y agoMIT
AI integration Hub Plugin
AI integration Hub is a plugin for Obsidian that integrates with AI services like Google Gemini, allowing you to generate AI content directly within your Obsidian notes.
Features
- Generate AI Content: Select text in your note as the prompt, and generate AI-powered content to replace it.
- Ribbon Button for Quick Access: Use the ribbon button to quickly generate content with AI.
- Customizable Settings: Configure your API key and select the AI model in the plugin settings.
Installation
- Go to Obsidian Settings.
- Click on
Community plugins. - Click on
Browse. - Search "ai hub" and select
AI integration Hub.
Configuration
Set Your API Key
- Navigate to Settings > AI Hub.
- Enter your Google AI Studio API key.
- Choose your desired AI model (e.g.,
gemini-1.5-flash).
Usage
-
Generate AI Content
- Open a markdown note.
- Select the text you want to use as a prompt.
- Click the "Generate content" ribbon icon on the left sidebar.
- Alternatively, open the command palette (
Ctrl+PorCmd+P) and run "Generate content".
-
View the Result
- The selected text will be sent to the AI service.
- The AI-generated content will replace the selected text in your note.
Development
Prerequisites
- Node.js v18+ installed on your machine.
Setup
-
Clone the Repository
git clone <repository-url> -
Install Dependencies
npm install -
Build the Plugin
-
For a one-time build:
npm run build -
For development with watch mode:
npm run watch
-
Future Enhancements
- Plan to integrate with OpenRouter, and other AI services.
- Options for inserting content without replacing text.
- Custom prompt templates, and more.
Contributing
- Contributions are welcome! Please feel free to submit issues and pull requests.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.