Skip to content
프로젝트

소개

Samples showing architectural patterns for Modular RAG using Spring AI and Ollama.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

관련 프로젝트 살펴보기

불러오는 중…