<i>TL;DR</i>: chat with AI, code with AI, speak to AI (voice-to-text + vice versa), have AI search huge corpora or websites for you, all via an interface of collaborating on a text doc together in the editor you use now.<p><i>Motivation</i><p>I find the last year of AI incredibly heartening. Researchers are still regularly releasing SoTA models in disparate domains. Meta is releasing powerful Llama under generous provisions (As is the UAE with Falcon?!). And the Open Source community has shown a tidal wave of interest and effort into building things out of these tools (112k repos on GH mentioning ML!).<p>Facing this deluge of valuable things that communities are shepherding into the world, I wanted to incorporate them into my workflows, which as a software engineer, means my text editor.<p><i>UniteAI</i><p>So I started <i>UniteAI</i> <a href="https://github.com/freckletonj/uniteai">https://github.com/freckletonj/uniteai</a>, an Apache-2.0 licensed tool.<p>Check out the screencasts: <a href="https://github.com/freckletonj/uniteai#some-core-features">https://github.com/freckletonj/uniteai#some-core-features</a><p>This project:<p>* Ties in to <i>any editor</i> via Language Server Protocol. Like collaborating in G-Docs, you collab with whatever AI directly in the document, all of you <i>writing alongside each other</i> concurrently.<p>* Like Copilot / Cursor, it can write code/text right in your doc.<p>* It supports <i>any Locally runnable model</i> (Llama family, Falcon, Finetunes, the 21k available models on HF, etc.)<p>* It supports <i>OpenAI/ChatGPT</i> via API key.<p>* <i>Speech-to-Text</i>, useful for writing prompts to your LLM<p>* You can do <i>Semantic Search</i> (Retrieval Augmented Generation) on many sources: local files, Arxiv, youtube transcripts, Project Gutenberg books, any online HTML, basically if you give it a URI, it can probably use it.<p>* You can trigger features easily via [key combos](<a href="https://github.com/freckletonj/uniteai#keycombos">https://github.com/freckletonj/uniteai#keycombos</a>).<p>* Written in Python, so, much more generic than writing a bespoke `some_specific_editor` plugin.<p><i>Caveat</i><p>Since it always comes up, <i>AI is not perfect</i>. AI is a tool to augment your time, not replace it. It hallucinates, it lies, it bullshits, it writes bad code, it gives dangerous advice.<p>But can still do many useful things, and for me it is a <i>huge force multiplier.</i><p><i>You need a Human In The Loop</i>, which is why it's nice to work together iteratively on a text document, per, this project. <i>You</i> keep it on track.<p><i>Why is this interesting</i><p>These tools play well when used together:<p>* <i>Code example:</i> I can Voice-to-Text a function comment then send that to an LLM to write the function.<p>* <i>Code example 2:</i> I can chit chat about project architecture plans, and strategies, and libraries I should consider.<p>* <i>Documentation example:</i> I can retrieve relevant sections of my city's building code with a natural language query, then send that to an LLM to expound upon.<p>* <i>Authorship example</i>: I can have my story arcs and character dossiers in some markdown file, and use that guidance to contextualize an AI as it works with me for writing a story.<p>* <i>Entertainment example</i>: I told my AI it was a Dungeon Master, then over breakfast with friends, used Voice-to-Text and Text-to-Wizened-Wizard-Voice, and played a hillarious game. I still had to drive all this via a text doc, and handy key combos.<p><i>RFC</i><p>Installation instructions are on the repo: <a href="https://github.com/freckletonj/uniteai#quickstart-installing-everything">https://github.com/freckletonj/uniteai#quickstart-installing...</a><p>This is still nascent, and I welcome all feedback, positive or critical.<p>We have a community linked on the repo which you're invited to join.<p>I'd love love to chat with people who like this idea, use it, want to see other features, want to contribute their effort, want to file bug reports, etc.<p>A big part of my motivation in this is to socialize with like-minds, and build something cool.<p><i>Thanks for checking this out!</i>