Compare commits

..

15 Commits

Author SHA1 Message Date
Clelia (Astra) Bertelli 2eb60ad687 feat: change default description to adapt it to LlamaCloud Index 2025-08-04 11:43:02 +02:00
Clelia (Astra) Bertelli 62888ee5d4 remove unused file 2025-08-04 11:39:13 +02:00
Clelia (Astra) Bertelli 30068433eb Merge remote-tracking branch 'refs/remotes/origin/ms/remove-llamaindex' into ms/remove-llamaindex 2025-08-04 11:36:25 +02:00
Clelia (Astra) Bertelli 899705c1f8 Merge branch 'main' into ms/remove-llamaindex 2025-08-04 11:31:02 +02:00
Clelia (Astra) Bertelli b96dbd0b79 Merge remote-tracking branch 'refs/remotes/origin/main'
# Please enter a commit message to explain why this merge is necessary,
		# the commit.
2025-08-04 11:28:29 +02:00
Marcus Schiesser 5577506d44 add missing import 2025-08-01 11:25:20 +08:00
Marcus Schiesser 597fa04214 revert version 2025-08-01 11:23:31 +08:00
Marcus Schiesser 019b5a5527 fix tests 2025-08-01 11:21:07 +08:00
Marcus Schiesser 35e1687199 simplify querytool 2025-08-01 11:13:19 +08:00
Clelia (Astra) Bertelli 45b964e982 chore: remove all dependency on llamaindex 2025-08-01 11:13:19 +08:00
Marcus Schiesser d7436fcdd8 chore: remove llamaindex dep 2025-08-01 11:12:48 +08:00
Clelia (Astra) Bertelli 67830e498d Merge remote-tracking branch 'refs/remotes/origin/main' 2025-07-31 20:22:16 +02:00
Clelia (Astra) Bertelli e021446901 feat: restructure docs/examples 2025-07-31 17:35:46 +02:00
Clelia (Astra) Bertelli 25d57ded51 chore: remove all dependency on llamaindex 2025-07-31 11:07:31 +02:00
Marcus Schiesser 00d733028c chore: remove llamaindex dep 2025-07-31 12:27:55 +08:00
12 changed files with 19 additions and 61 deletions
-38
View File
@@ -1,38 +0,0 @@
name: Test end-to-end - Python
on:
pull_request:
paths:
- "py/**"
env:
UV_VERSION: "0.7.20"
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
jobs:
test_e2e:
runs-on: ubuntu-latest
strategy:
# You can use PyPy versions in python-version.
# For example, pypy-2.7 and pypy-3.8
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: ${{ env.UV_VERSION }}
- name: Set up Python
run: uv python install ${{ matrix.python-version }} && uv python pin ${{ matrix.python-version }}
- name: Run Tests
working-directory: py
run: uv run pytest unit_tests/ tests/ -v
- name: Remove virtual environment
working-directory: py
run: rm -rf .venv/
+2 -1
View File
@@ -12,6 +12,7 @@ on:
env:
UV_VERSION: "0.7.20"
LLAMA_CLOUD_API_KEY: ${{ secrets.LLAMA_CLOUD_API_KEY }}
jobs:
test:
@@ -35,7 +36,7 @@ jobs:
- name: Run Tests
working-directory: py
run: uv run pytest unit_tests/ -v
run: uv run -- pytest tests/**/test_*.py
- name: Remove virtual environment
working-directory: py
+1 -1
View File
@@ -33,7 +33,7 @@ repos:
rev: v1.0.1
hooks:
- id: mypy
exclude: ^py/tests|^py/unit_tests
exclude: ^py/tests/
additional_dependencies:
[
"types-requests",
+2 -2
View File
@@ -124,8 +124,8 @@ def extraction_agent(test_case: TestCase, extractor: LlamaExtract):
@pytest.mark.skipif(
"CI" in os.environ or not LLAMA_CLOUD_API_KEY,
reason="LLAMA_CLOUD_API_KEY not set or CI environment not suitable for benchmarking",
"CI" in os.environ,
reason="CI environment is not suitable for benchmarking",
)
@pytest.mark.parametrize("test_case", get_test_cases(), ids=lambda x: x.name)
@pytest.mark.asyncio(loop_scope="session")
+11
View File
@@ -16,6 +16,7 @@ from llama_cloud import (
from llama_cloud.client import LlamaCloud
from llama_index.core.bridge.pydantic import BaseModel
from llama_index.core.constants import DEFAULT_BASE_URL
from llama_index.core.indices.managed.base import BaseManagedIndex
from llama_index.core.schema import Document, ImageNode
from llama_cloud_services.index import (
LlamaCloudIndex,
@@ -92,6 +93,16 @@ def _setup_index_with_file(
return pipeline
def test_class():
names_of_base_classes = [b.__name__ for b in LlamaCloudIndex.__mro__]
assert BaseManagedIndex.__name__ in names_of_base_classes
def test_conflicting_index_identifiers():
with pytest.raises(ValueError):
LlamaCloudIndex(name="test", pipeline_id="test", index_id="test")
@pytest.mark.skipif(
not base_url or not api_key, reason="No platform base url or api key set"
)
View File
-16
View File
@@ -1,16 +0,0 @@
import pytest
from llama_index.core.indices.managed.base import BaseManagedIndex
from llama_cloud_services.index import (
LlamaCloudIndex,
)
def test_class():
names_of_base_classes = [b.__name__ for b in LlamaCloudIndex.__mro__]
assert BaseManagedIndex.__name__ in names_of_base_classes
def test_conflicting_index_identifiers():
with pytest.raises(ValueError):
LlamaCloudIndex(name="test", pipeline_id="test", index_id="test")
@@ -16350,7 +16350,7 @@ export const PromptConfSchema = {
default: `
Provide a brief explanation for how you arrived at the extracted value based on the source text provided.
- For inferred values, explain the reasoning behind the extraction briefly.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- When supporting data is not present in the source text, output 'INSUFFICIENT DATA' and emit blank or null values for the value__ field.
`,
},
@@ -17689,7 +17689,7 @@ export const StructParseConfSchema = {
reasoning_prompt: `
Provide a brief explanation for how you arrived at the extracted value based on the source text provided.
- For inferred values, explain the reasoning behind the extraction briefly.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- When supporting data is not present in the source text, output 'INSUFFICIENT DATA' and emit blank or null values for the value__ field.
`,
cite_sources_prompt: {
@@ -3219,7 +3219,7 @@ export const zPromptConf = z.object({
reasoning_prompt: z.string().optional().default(`
Provide a brief explanation for how you arrived at the extracted value based on the source text provided.
- For inferred values, explain the reasoning behind the extraction briefly.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- For simple verbatim extraction, output 'VERBATIM EXTRACTION'.
- When supporting data is not present in the source text, output 'INSUFFICIENT DATA' and emit blank or null values for the value__ field.
`),
cite_sources_prompt: z