Skip to content

Commit

Permalink
Patch/fix import bleed (#1526)
Browse files Browse the repository at this point in the history
* Feature/tweak actions (#1507)

* up

* tweak actions

* Sync JS SDK, Harmonize Python SDK KG Methods (#1511)

* Feature/move logging (#1492)

* move logging provider out

* move logging provider to own directory, remove singleton

* cleanup

* fix refactoring tweak (#1496)

* Fix JSON serialization and Prompt ID Bugs for Prompts (#1491)

* Bug in get prompts

* Add tests

* Prevent verbose logging on standup

* Remove kg as required key in config, await get_all_prompts

* Remove reference to fragment id

* comment out ingestion

* complete logging port (#1499)

* Feature/dev rebased (#1500)

* Feature/move logging (#1493)

* move logging provider out

* move logging provider to own directory, remove singleton

* cleanup

* Update js package (#1498)

* fix refactoring tweak (#1496)

* Fix JSON serialization and Prompt ID Bugs for Prompts (#1491)

* Bug in get prompts

* Add tests

* Prevent verbose logging on standup

* Remove kg as required key in config, await get_all_prompts

* Remove reference to fragment id

* comment out ingestion

* complete logging port (#1499)

---------

Co-authored-by: Nolan Tremelling <[email protected]>

* Fix handling for R2R exceptions (#1501)

* fix doc test (#1502)

* Harmonize python SDK KG methods for optional params, add missing JS methods

---------

Co-authored-by: emrgnt-cmplxty <[email protected]>
Co-authored-by: emrgnt-cmplxty <[email protected]>

* Clean up pagination and offset around KG (#1519)

* Move to R2R light for integration testing (#1521)

---------

Co-authored-by: Nolan Tremelling <[email protected]>
  • Loading branch information
emrgnt-cmplxty and NolanTrem authored Oct 30, 2024
1 parent 794c408 commit 96e2367
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion py/cli/command_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from asyncclick import pass_context
from asyncclick.exceptions import Exit

from r2r import R2RAsyncClient
from sdk import R2RAsyncClient


@click.group()
Expand Down
2 changes: 1 addition & 1 deletion py/cli/commands/ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from cli.command_group import cli
from cli.utils.param_types import JSON
from cli.utils.timer import timer
from core.base.abstractions import IndexMeasure, IndexMethod, VectorTableName
from shared.abstractions import IndexMeasure, IndexMethod, VectorTableName


async def ingest_files_from_urls(client, urls):
Expand Down
3 changes: 2 additions & 1 deletion py/core/base/providers/llm.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import asyncio
import logging
import random
import time
from abc import abstractmethod
from concurrent.futures import ThreadPoolExecutor
from typing import Any, AsyncGenerator, Generator, Optional
import random

from litellm import AuthenticationError

from core.base.abstractions import (
Expand Down
3 changes: 1 addition & 2 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "r2r"
readme = "README.md"
version = "3.2.35"
version = "3.2.36"

description = "SciPhi R2R"
authors = ["Owen Colegrove <[email protected]>"]
Expand All @@ -17,7 +17,6 @@ packages = [
{ include = "shared", from = "." },
{ include = "core", from = "." },
{ include = "cli", from = "." },

]

[tool.poetry.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion py/sdk/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import httpx

from core.base.abstractions import R2RException
from shared.abstractions import R2RException

from .base.base_client import BaseClient
from .mixins import (
Expand Down
2 changes: 1 addition & 1 deletion py/sdk/base/base_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from core.base.abstractions import R2RException
from shared.abstractions import R2RException


class BaseClient:
Expand Down
2 changes: 1 addition & 1 deletion py/sdk/mixins/ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Optional, Union
from uuid import UUID

from core.base import IndexMeasure, IndexMethod, VectorTableName
from shared.abstractions import IndexMeasure, IndexMethod, VectorTableName


class IngestionMixins:
Expand Down
10 changes: 10 additions & 0 deletions py/shared/abstractions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@
)
from .user import Token, TokenData, UserStats
from .vector import (
IndexArgsHNSW,
IndexArgsIVFFlat,
IndexMeasure,
IndexMethod,
StorageResult,
Vector,
VectorEntry,
VectorQuantizationType,
VectorTableName,
VectorType,
)

Expand Down Expand Up @@ -124,6 +129,11 @@
"Vector",
"VectorEntry",
"VectorType",
"IndexMethod",
"IndexMeasure",
"IndexArgsIVFFlat",
"IndexArgsHNSW",
"VectorTableName",
"VectorQuantizationType",
"StorageResult",
]

0 comments on commit 96e2367

Please sign in to comment.