Skip to content

Releases: vasilecampeanu/obsidian-weaver

1.0.0

25 Oct 12:48
Compare
Choose a tag to compare
1.0.0 Pre-release
Pre-release
Screenshot 2024-10-25 at 14 05 04

Hello everyone!

Last year, I started working on Weaver, a plugin for Obsidian.md that integrates a ChatGPT-like interface directly into the editor. Unfortunately, life got in the way, and I couldn't continue the project as planned. During that time, the plugin gained almost 200 stars on GitHub, which was really surprising!

I'm excited to announce that I'm back to working on the project. Please note that this is a complete rewrite of the plugin, and some of the previous features are currently missing. I've just released a prerelease version that you can install using Brat. You can find the plugin repository on GitHub where you'll be able to download it and stay updated with the latest developments.

I plan to apply for a public release in the Obsidian plugin library by the end of the month. In the meantime, I'd love to hear your feedback! Please submit any feedback or report issues through the GitHub Issues section of the repository. I'll be actively addressing any problems and incorporating your suggestions to improve the plugin.

Additionally, I'm planning to expand Weaver to include more features beyond just a chat interface in the future, making it a more comprehensive tool within Obsidian.

A few important notes:

  • Theme Compatibility: Weaver is currently developed using the minimal theme, which means there may be compatibility issues with other themes. I'm working on resolving these to ensure Weaver works seamlessly with a variety of themes.
  • Mobile Support: The mobile version of Weaver is not supported yet. However, I have plans to develop and optimize Weaver for mobile devices in upcoming updates.
  • Customization Caution: Please avoid customizing the chat interface using the CSS classes at this time, as some classes may change before the public release.

0.5.3

29 May 09:46
1fa4200
Compare
Choose a tag to compare
0.5.3 Pre-release
Pre-release

Quick fix

It seems I have introduced some breaking changes, as older conversations do not have a "model" and "mode" field in them. I have added a quick fix to ensure that the older conversations are not affected, and I will further investigate this issue in a future update.

0.5.2

29 May 09:05
59d7575
Compare
Choose a tag to compare
0.5.2 Pre-release
Pre-release
Screenshot 2023-05-29 at 11 31 15

New Features

  • Added conversation styles. You can modify the system prompt for each mode in the settings.
  • Implemented info message at the start of each conversation, indicating the model currently in use.
  • Added a new feature allowing users to load the most recent conversation when reloading Obsidian.
  • Added a button to toggle visibility of the information panel pertaining to the model in use.
  • Added a button to toggle the search box in Thread View.
  • Added a button in Thread View, providing easier access to the import functionality.
  • Renamed 'Base Thread' to 'Thread View' for greater clarity.
  • Conversations now use the model with which they were created. Changing the model globally from the settings will no longer affect them. More customizability will be added in the future for individual conversations.

Bug Fixes

  • Fixed an issue with the import algorithm, which was broken due to the recent ChatGPT plugins update.
  • Fixed a bug with the stop button. Previously, pressing the stop button prevented users from sending new messages until the conversation was reloaded.

Installation

You can install Weaver using the community plugin obsidian42-brat.

0.5.0

21 May 22:52
1777b64
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release
Screen.Recording.2023-05-22.at.01.07.06.mov

New features

  • Messages now render in real-time.
  • Settings:
    • Added an option to hide indentation guides.
    • Introduced a new compact mode option that displays only the conversation titles in thread view.

Shoutout to Logan Yang and obsidian-copilot for giving me a great example of how to implement real-time rendering of messages.

Installation

You can install Weaver using the community plugin obsidian42-brat.

0.4.0

19 May 01:52
3892861
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Hello everyone,

I am happy to announce that Obsidian Weaver 0.4.0 is now ready for use. I apologize for the delay, but this version required a complete rewrite of the code. Now, the conversations you have with the AI assistant won't be saved in just one file, instead, they will be distributed across multiple files. I have also incorporated support for importing conversations directly from ChatGPT into Obsidian. This necessitated changes to the way messages are rendered, as ChatGPT supports nested messages.

Thread view:

Screenshot 2023-05-19 at 04 29 17

Conversation view:

Screenshot 2023-05-19 at 04 08 51

New features

  • Added a new command to import conversations from ChatGPT.
  • Initial support for threads. The homepage, where the conversations are listed, is now referred to as the 'Base Thread'.
  • For improved performance, only the conversations on screen are currently rendered.
  • Incorporated sections for conversations, like the behavior of ChatGPT. Conversations are grouped into sections based on their latest modification: Today, Tomorrow, Previous 7 Days, and Older.
  • Implemented a search feature, enabling users to search for conversations by title.
  • Added a new button that allows users to regenerate the assistant's last response.
  • Created a context button for situations where you wish to avoid a literal conversation or token waste. This enables toggling between sending the entire conversation to the API or only the user's current message.
  • The renderer now supports nested messages, a necessity for supporting imports from ChatGPT.
  • You can now switch between GPT-3.5 and GPT-4 directly from the interface.
  • Included an information box detailing the capabilities of each model.
  • Better error handling.

Imports

Please always make backups of your data. This plugin is still in preview and there may be unexpected bugs.

How to Import conversations from the previous version of Obsidian Weaver

I've written a function that should do this after the update. You need to have the file 'conversations.bson' under the directory 'bins/weaver/' or under the directory you set in the settings of the plugin. After a restart of the application, the conversation should be automatically imported and the old bson file should be moved to 'bins/weaver/backups'.

How to import conversations from ChatGPT

You need to go to ChatGPT and in the settings, you will find this tab:

Screenshot 2023-05-19 at 04 11 32

After you press export, you will receive an email with a download link that can be used for 24 hours. (I personally had some issues with this, which is the reason I couldn't test the export with the addition of plugins.)

After the download, you will get the following files:

Screenshot 2023-05-19 at 04 13 34

You need to take the conversations.json file and place it in your Obsidian vault. Most likely, you won't be able to see the file in the file navigator. That's because you need to go to settings and enable the detection of all file extensions (this is not a necessary step).

Screenshot 2023-05-19 at 04 20 30

After you're done with that, you need to run the following command:

Screenshot 2023-05-19 at 04 17 17 Screenshot 2023-05-19 at 04 18 27

And that's it. Now you should be able to see all your conversations imported into Obsidian Weaver. Note, there may be some errors if you had conversations with GPT-4 using plugins and the browser extension. (I wasn't able to test the import that feature on because I had trouble with the export.)

Also, you should be able to repeat this process as many times as you want without overwriting already existing conversations. The function that does the import checks if there are already conversations with the same ID existing, and is going to ignore them.

Features I'm currently working on

  • User message editing.
  • Individual Conversation Settings: A setting panel for each conversation to set individual parameters.
  • Token approximation algorithm.
  • Token Limit Handling: Currently, an error 400 will occur if you reach the maximum token limit. The user should be able to choose how many messages they want to send back to the API.
  • Better integration with Obsidian.
  • Code refactoring.

After all these are implemented, I plan to apply for community release.

Installation

You can install Weaver using the community plugin obsidian42-brat.

0.3.2

10 Apr 07:35
4475b00
Compare
Choose a tag to compare
0.3.2 Pre-release
Pre-release

Screenshot 2023-04-10 at 10 46 24

New features

  • I've made a significant change under the hood, switching from react-markdown to Obsidian's built-in renderer. This upgrade means that you can now enjoy all the rich formatting options available in Obsidian, such as LaTeX, directly inside the chat interface.
  • I've added a copy button to the chat interface, making it easy to copy any message of the conversation directly to your clipboard.

For better LaTeX support, you will need to either reinstall the plugin or update the 'System Role Prompt' with the following code:

You are a personal knowledge management assistant designed to work within Obsidian, a popular note-taking and knowledge management tool. Your purpose is to help users organize, manage, and expand their knowledge base by providing well-structured, informative, and relevant responses. Please ensure that you format your responses using Markdown syntax, which is the default formatting language used in Obsidian. This includes, but is not limited to, using appropriate headers, lists, links and code blocks. In addition to Markdown, please utilize LaTeX formatting when necessary to render mathematical symbols and equations in a clear and concise manner. This includes, but is not limited to, using symbols such as $\alpha$, $\beta$, $\gamma$, $\delta$, and $\theta$ and equations like $f(x) = x^2 + 2x + 1$ and $\int_{0}^{\infty} e^{-x^2} dx$. For formulas that are on a single line, enclose the LaTeX code between four dollar signs ($$$$)Please ensure that you follow proper LaTeX syntax and formatting guidelines to ensure the readability and coherence of your responses.

Installation

You can install Weaver using the community plugin obsidian42-brat.

0.3.0

08 Apr 19:26
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Hello everyone,

I am excited to announce the prerelease of Weaver, a new Obsidian plugin I've been working on to integrate ChatGPT/GPT-3 into your note-taking workflow. Weaver allows you to access AI-generated suggestions and insights within Obsidian, enhancing your writing and brainstorming capabilities.

Screenshot 2023-04-08 at 22 43 41

Screenshot 2023-04-08 at 22 55 09

To test Weaver and provide your feedback, please follow the instructions below.

Installation

Manual

  1. Go to the releases and download main.js, manifest.json, and styles.css of the latest version.
  2. Put the files in YourObsidianVault/.obsidian/plugins/obsidian-weaver/
  3. Reload the plugins in Obsidian settings or restart the program.
  4. The plugin can now be enabled in the plugins menu.

Brat

You can also install Weaver using the community plugin obsidian42-brat.

Feedback

You can share your feedback by opening an new issue on GitHub.