Skip to content

Commit bd1d0c4

Browse files
ahora levanta el RAG, hay que cheeaur el chunking_Service que siga funcionando (#42)
Co-authored-by: Ignacio Valle <88690091+ignaciovalle20@users.noreply.github.com>
1 parent 07fb77b commit bd1d0c4

File tree

4 files changed

+1644
-147
lines changed

4 files changed

+1644
-147
lines changed

RAGManager/app/services/chunking_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from langchain.text_splitter import RecursiveCharacterTextSplitter
1+
from langchain_text_splitters import RecursiveCharacterTextSplitter
22

33

44
def split_documents(documents):

RAGManager/app/services/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from langchain_core.documents import Document
44

55
from app.core.config import settings
6-
from app.services.chunking_service import document_to_chunks
6+
from app.services.chunking_service import split_documents as document_to_chunks
77
from app.services.embedding_service import chunks_to_embeddings
88
from app.services.pdf_processor import pdf_to_document
99

RAGManager/pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "goland-ia"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
6-
requires-python = ">=3.14"
6+
requires-python = ">=3.12,<3.13"
77
dependencies = [
88
"fastapi>=0.124.2",
99
"ipython>=9.8.0",
@@ -17,7 +17,12 @@ dependencies = [
1717
"pydantic-settings>=2.0.0",
1818
"typing-extensions>=4.15.0",
1919
"uvicorn>=0.38.0",
20-
"guardrails-ai>=0.6.2",
20+
"guardrails-ai>=0.5.10",
21+
"langchain>=1.2.0",
22+
"langchain-community>=0.4.1",
23+
"langchain-text-splitters>=1.1.0",
24+
"pdfplumber>=0.11.8",
25+
"minio>=7.2.20",
2126
"presidio-analyzer>=2.2.360",
2227
"presidio-anonymizer>=2.2.360",
2328
]
@@ -82,4 +87,4 @@ indent-style = "space"
8287
skip-magic-trailing-comma = false
8388

8489
# Automatically detect line ending
85-
line-ending = "auto"
90+
line-ending = "auto"

0 commit comments

Comments
 (0)