ThomasVitale/modular-rag
关于
Samples showing architectural patterns for Modular RAG using Spring AI and Ollama.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Modular RAG
Samples showing architectural patterns for Modular RAG using Spring AI and Ollama.
Pre-requisites
- Java 25
- Podman/Docker
Ollama
The application consumes models from an Ollama inference server. You can either run Ollama locally on your laptop, or rely on the Arconia Dev Services to spin up an Ollama service automatically. Either way, Spring AI will take care of pulling the needed Ollama models when the application starts, if they are not available yet on your machine.
Tavily (Optional)
The application consumes the Tavily Search API.
Create an account
Visit app.tavily.com and sign up for a new account. You can choose the "Researcher" plan to get started for free.
Configure API Key
In the Tavily AI console, navigate to Overview. Then, in the API Keys section, generate a new API key. Copy and securely store your API key on your machine as an environment variable. The application will use it to access the Tavily Search API.
export TAVILY_SEARCH_API_KEY=<YOUR-API-KEY>
Running the application
If you're using the native Ollama application, run the application as follows:
./gradlew bootRun
Alternatively, you can use the Arconia CLI:
arconia dev
Under the hood, the Arconia framework will automatically spin up a PostgreSQL database, a Grafana LGTM or Arize Phoenix observability platform, and a Docling Serve instance using Testcontainers (see Arconia Dev Services for more information).
If instead you want to rely on the Ollama Dev Service via Testcontainers, run the application as follows.
./gradlew bootRun -Darconia.dev.services.ollama.enabled=true
Either way, the application will be accessible at http://localhost:8080.
Accessing Grafana
The application logs will show you the URL where you can access the Grafana observability platform.
...o.t.grafana.LgtmStackContainer: Access to the Grafana dashboard: http://localhost:38125
By default, logs, metrics, and traces are exported via OTLP using the HTTP/Protobuf format.
In Grafana, you can query the telemetry from the "Drilldown" and "Explore" sections.
探索相关项目
加载中…