docs: showcase RAG with LlamaIndex and LangChain (#71)

Signed-off-by: Panos Vagenas <35837085+vagenas@users.noreply.github.com>
This commit is contained in:
Panos Vagenas
2024-09-11 15:07:08 +02:00
committed by GitHub
parent 79932b7d69
commit 53569a1023
6 changed files with 2704 additions and 39 deletions

View File

@@ -23,7 +23,7 @@ packages = [{include = "docling"}]
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.0.0"
docling-core = "^1.2.0"
docling-core = "^1.3.0"
docling-ibm-models = "^1.1.7"
deepsearch-glm = "^0.21.0"
filetype = "^1.2.0"
@@ -38,6 +38,29 @@ rtree = "^1.3.0"
scipy = "^1.14.1"
pyarrow = "^16.1.0"
#########
# extras:
#########
python-dotenv = { version = "^1.0.1", optional = true }
llama-index-embeddings-huggingface = { version = "^0.3.1", optional = true }
llama-index-llms-huggingface-api = { version = "^0.2.0", optional = true }
llama-index-vector-stores-milvus = { version = "^0.2.1", optional = true }
langchain-huggingface = { version = "^0.0.3", optional = true}
langchain-milvus = { version = "^0.1.4", optional = true }
langchain-text-splitters = { version = "^0.2.4", optional = true }
##############
# constraints:
##############
torch = [
{version = "^2.2.2", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
{version = "~2.2.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
]
torchvision = [
{version = "^0", optional = true, markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'"},
{version = "~0.17.2", optional = true, markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'"}
]
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = "^24.4.2"}
pytest = "^7.2.2"
@@ -51,11 +74,26 @@ pytest-xdist = "^3.3.1"
types-requests = "^2.31.0.2"
flake8-pyproject = "^1.2.3"
pylint = "^2.17.5"
ipykernel = "^6.29.5"
ipywidgets = "^8.1.5"
nbqa = "^1.9.0"
[tool.poetry.group.examples.dependencies]
datasets = "^2.21.0"
[tool.poetry.extras]
examples = [
"python-dotenv",
# LlamaIndex examples:
"llama-index-embeddings-huggingface",
"llama-index-llms-huggingface-api",
"llama-index-vector-stores-milvus",
# LangChain examples:
"langchain-huggingface",
"langchain-milvus",
"langchain-text-splitters",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"