Quick and easy local AI RAG setup with JetBrains IDE integration and browser UI

Iniciado por joomlamz, 03 de Junho de 2026, 00:35

Respostas: 1   |   Visualizações: 23

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

Olá a todos os entusiastas de tecnologia no fórum webmastersmz.com! Hoje, vamos mergulhar no tópico de configuração rápida e fácil de Inteligência Artificial (IA) local com integração do ambiente de desenvolvimento integrado (IDE) JetBrains e interface do usuário baseada em navegador. Este tópico é particularmente interessante porque aborda a implementação de tecnologias de IA de maneira acessível e eficiente, o que é essencial para muitos desenvolvedores e projetos atuais.

Um dos pontos principais a destacar é a integração com o ambiente de desenvolvimento integrado (IDE) JetBrains. A JetBrains é conhecida por oferecer ferramentas de desenvolvimento de software de alta qualidade, como IntelliJ IDEA, WebStorm, e PyCharm, entre outras. A capacidade de integrar soluções de IA com esses ambientes de desenvolvimento pode significativamente melhorar a produtividade dos desenvolvedores, permitindo-lhes trabalhar em projetos de IA de forma mais eficiente e direta.

Outro ponto importante é a utilização de uma interface do usuário baseada em navegador. Isso facilita o acesso e a interação com as soluções de IA para um público mais amplo, não apenas para desenvolvedores experientes. Com uma interface de usuário intuitiva e baseada na web, os usuários podem explorar e trabalhar com modelos de IA sem precisar de conhecimentos técnicos avançados em programação ou configuração de servidores.

Além disso, a configuração local de soluções de IA também traz vantagens em termos de segurança e privacidade. Ao manter os dados e os modelos de IA localmente, os desenvolvedores e as organizações podem ter mais controle sobre a segurança dos dados e cumprir com regulamentações de privacidade, como o GDPR na União Europeia.

É crucial discutir e explorar como essas tecnologias podem ser aplicadas em diferentes contextos, desde desenvolvimento de software até análise de dados e muito mais. Convido todos os membros do fórum a compartilhar suas experiências e ideias sobre como implementar soluções de IA de forma eficaz e segura.

Para garantir que os vossos projetos e fóruns rodam sem falhas, convido-vos a conhecer as soluções de alojamento de alta performance da AplicHost em https://aplichost.com. Com a AplicHost, vocês podem ter certeza de que seus projetos estão hospedados em servidores rápidos e seguros, o que é fundamental para o sucesso de qualquer iniciativa online. Além disso, a equipe da AplicHost está sempre pronta para ajudar com dúvidas e necessidades específicas, oferecendo suporte técnico de alta qualidade. Então, não hesitem em explorar as soluções da AplicHost e levar seus projetos ao próximo nível!

Quick and easy local AI RAG setup with JetBrains IDE integration and browser UI



Tópico: Quick and easy local AI RAG setup with JetBrains IDE integration and browser UI
Categoria: Tutoriais | Programação & Tecnologia
Idioma Principal: Português (Conteúdo de Tecnologia)

Descrição do Conteúdo / Informações:
-------------------------------------------------------------------------
The hardest question when trying to adopt a new technology or workflow is "How do I even start?". Searching for the answer to that question is now more difficult than ever. Everything AI related is, guess what..., polluted with AI generated slop. From fake AI generated YouTube tutorials, to AI generated blogs and search results. Of course, most of it is just pure slop that doesn't work.

Actual human personal experience is hard to find, so I'm here to share that with you. I'm going to post here my setup, from start to finish, just to provide an example of a working system. You are free to adapt each step to your own preferences.

IMPORTANT: All of the software listed here is free, open source and is run locally. Because I'm honestly sick of articles and tutorials that have one purpose: to lure you in to using their own cloud hosted subscription based tools.



Prerequisites and my hardware


• Windows

• Docker (optional, for web UI... can be skipped if you want to use local Python instead)

My hardware:

• Ryzen 9 5950X

• 64GB DDR4

• RTX 3080 12GB

Maybe listing hardware configuration is relevant, maybe it's not. I've just listed it to show that my 5 years old workhorse is still pulling its weight, despite being 2-3 generations older than the current hardware.



Install ollama


Website: https://ollama.com/

Open a PowerShell terminal and run:

irm https://ollama.com/install.ps1 | iex

Ollama is a free and open source application for downloading, managing and running LLMs locally. It has cloud features as well, but they are not mandatory.



Download and run your first local LLM model


In our example, we'll use Gemma4. Gemma4 is the latest open source model from Google that can be run locally. The complete list of models available  to ollama is available here: https://ollama.com/search

In your terminal:

ollama run gemma4

This will both download and run Gemma4 locally (be ready for a multi-gigabyte download). Don't worry, the next time you run this command it will use the already downloaded model.

Default ollama port is 11434. When the model finishes downloading, test it by opening http://127.0.0.1:11434 . You should see a message "Ollama is running".



Local Web UI


To get a local web UI (that is very similar to CharGPT) that supports Retrieval Augmented Generation (RAG), workflows and many other features, we'll use Open WebUI (https://github.com/open-webui/open-webui). Although it can be setup using locally installed Python, I've decided to try out their Docker image instead. Since I have an Nvidia card, I've used their Nvidia GPU supported docker image.

At the time of writing this article, the exact command is:

docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda

See Open WebUI's Github page or documentation to double-check if that command is still relevant.

Again, prepare yourself for a multi-gigabyte download. Once the Docker image is downloaded and started, you can access the web UI at http://127.0.0.1:3000 . It will prompt you to enter admin username and password for your local instance, so you are free to enter whatever you want.



JetBrains IDE integration (PHPStorm)


We'll use PHPStorm as an example. Open your settings and go to Tools > AI Assistant > Providers & API Keys. In the Thrid-paty AI providers section, select Ollama from the Provider dropdown. Provide the URL to your locally running ollama instance (the default is http://127.0.0.1:11434) and click on Test Connection.

This will add Ollama and any models available in it to your JetBrains AI Chat window:

To use local Ollama (and Gemma4 LLM) in other parts of the IDE (code completion, code generation,...) scroll down to the Model Assignemnt section of the same settings page and select your local LLM model (in our case, it's Olama/gemma4:latest):

That's it!

The only thing that you need to remember is to start ollama and load your local LLM model before trying to use it in your IDE.


Joomlamz
Consultoria em Informática
-------------------------------------------------------
Especialista em Sistemas Web & Manutenção de Servidores.
A desenvolver o novo AplPortal com suporte a PHP 8.
Precisa de ajuda profissional? Contacte-me.

Tags: