brianpetro / obsidian-smart-connections

Chat with your notes & see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
https://smartconnections.app
GNU General Public License v3.0
2.8k stars 183 forks source link

Support additional files together with md and canvas #269

Open jsifalda opened 1 year ago

jsifalda commented 1 year ago

Hello, what would mean to add support for other file types like .js,ts,json? :) any ideas?

it would be very beneficial for my use case. Thanks in advance.

brianpetro commented 1 year ago

Hello @jsifalda

I already have support for the .canvas files in my personal experimental version of Smart Connections, but I still need to port that over to this Obsidian plugin. Basically, the .canvas is converted into a markdown representation of the content.

Adding support for other file types like .js, .ts, and .json would definitely be beneficial. It would allow you to work with different types of files and leverage the functionality of the plugin across a wider range of file formats. I've had some thoughts on this, but no immediate plans for supporting these specific file types at this time.

As for ideas on how to implement additional file types, one approach could be to create separate parsers for each file type. These parsers would extract and format the relevant information from the files for use as embedding inputs. These embeddings would then need to be formatted in the embeddings.json format that's used by Smart Connections.

I hope you find that insightful. Please let me know if you have any other feedback or questions.

Thanks for your suggestion! Brian 🌴

jsifalda commented 1 year ago

that would be awesome feature Brian :))

brianpetro commented 4 months ago

video response

support for additional file types with markdown and canvas, is being addressed by creating adapters in the Smart Chunks project within JS Brains. The JavaScript adapter is currently a work in progress, and the video demonstrates the process and expected outcomes for the adapters. This ongoing effort will enable support for various file types.

jsifalda commented 4 months ago

Amazing! Cannot wait @brianpetro 🙏