Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

fix(clinical_rag_with_ade): remove unresolved merge conflict markers

Rudy Celekli58d58efb8736
diff --git a/rag_apps/clinical_rag_with_ade/.env.example b/rag_apps/clinical_rag_with_ade/.env.example
index 99cd7df..84dfe4f 100644
--- a/rag_apps/clinical_rag_with_ade/.env.example
+++ b/rag_apps/clinical_rag_with_ade/.env.example
@@ -1,11 +1,7 @@
-<<<<<<< HEAD
-VISION_AGENT_API_KEY=your_landingai_key_here
-=======
# LandingAI API key used for Agentic Document Extraction (ADE) parsing.
# Get one at https://va.landing.ai/my/settings/api-key
VISION_AGENT_API_KEY=your_landingai_key_here
# Mistral AI API key used for embeddings (mistral-embed) and reasoning (mistral-large-latest).
# Get one at https://console.mistral.ai/
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
MISTRAL_API_KEY=your_mistral_key_here
\ No newline at end of file
diff --git a/rag_apps/clinical_rag_with_ade/app.py b/rag_apps/clinical_rag_with_ade/app.py
index 9c86b57..7289f00 100644
--- a/rag_apps/clinical_rag_with_ade/app.py
+++ b/rag_apps/clinical_rag_with_ade/app.py
@@ -1,7 +1,4 @@
-<<<<<<< HEAD
-=======
"""Streamlit dashboard for uploading clinical PDFs and querying them with visually grounded RAG."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
import streamlit as st
import os
from processor import ClinicalRAGProcessor
diff --git a/rag_apps/clinical_rag_with_ade/main.py b/rag_apps/clinical_rag_with_ade/main.py
index 736a8a3..07171fa 100644
--- a/rag_apps/clinical_rag_with_ade/main.py
+++ b/rag_apps/clinical_rag_with_ade/main.py
@@ -1,9 +1,6 @@
-<<<<<<< HEAD
-=======
"""Placeholder entry point generated by the uv project scaffold; the app runs via app.py."""
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
def main():
print("Hello from clinical-rag-with-ade!")
diff --git a/rag_apps/clinical_rag_with_ade/processor.py b/rag_apps/clinical_rag_with_ade/processor.py
index 539a43a..a05c49a 100644
--- a/rag_apps/clinical_rag_with_ade/processor.py
+++ b/rag_apps/clinical_rag_with_ade/processor.py
@@ -1,7 +1,4 @@
-<<<<<<< HEAD
-=======
import logging
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
import os
import shutil
from pathlib import Path
@@ -18,11 +15,8 @@ from langchain_core.documents import Document
load_dotenv()
-<<<<<<< HEAD
-=======
logger = logging.getLogger(__name__)
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
class ClinicalRAGProcessor:
def __init__(self, db_path="./chroma_db"):
"""
@@ -42,11 +36,7 @@ class ClinicalRAGProcessor:
Parses a PDF using ADE and indexes structured chunks into ChromaDB.
Returns the number of chunks indexed.
"""
-<<<<<<< HEAD
- print(f"--- ADE Parsing Started: {file_path} ---")
-=======
logger.info("ADE parsing started: %s", file_path)
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a
# ADE expects a pathlib.Path object for local file parsing
response = self.ade_client.parse(
@@ -133,8 +123,4 @@ class ClinicalRAGProcessor:
if os.path.exists(self.db_path):
shutil.rmtree(self.db_path)
self.vector_store = None
-<<<<<<< HEAD
- print(f"Database at {self.db_path} has been wiped.")
-=======
logger.info("Database at %s has been wiped.", self.db_path)
->>>>>>> 1d1e9f137cfd1123edbae5d8e955ce0b9c7fcf4a