Unverified Commit f0b1db3f authored by Johannes Kirschbauer's avatar Johannes Kirschbauer Committed by GitHub
Browse files

[Backport release-25.05] python312Packages.llama-index-core: 0.12.23 -> 0.12.35 (#408669)

parents 8adbe6ea c233951d
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  catalogue,
  curated-tokenizers,
  fetchFromGitHub,
  huggingface-hub,
  setuptools,
  tokenizers,
  torch,
}:

buildPythonPackage rec {
  pname = "curated-transformers";
  version = "0.1.1";
  version = "2.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "explosion";
    repo = "curated-transformers";
    tag = "v${version}";
    hash = "sha256-QhJZnQIa9TilwdQCUlxnQCEc6Suj669cht6WHUAr/Gw=";
    hash = "sha256-2sedBVpwCppviWix+d3tJFTrLBe+2IBlWnCKgV6MucA=";
  };

  build-system = [ setuptools ];

  dependencies = [ torch ];
  dependencies = [
    catalogue
    curated-tokenizers
    huggingface-hub
    tokenizers
    torch
  ];

  # Unit tests are hard to use, since most tests rely on downloading
  # models from Hugging Face Hub.
+4 −6
Original line number Diff line number Diff line
@@ -2,15 +2,15 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  llama-index-core,
  llama-index-llms-openai,
  poetry-core,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "llama-index-agent-openai";
  version = "0.4.6";
  version = "0.4.7";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -18,14 +18,12 @@ buildPythonPackage rec {
  src = fetchPypi {
    pname = "llama_index_agent_openai";
    inherit version;
    hash = "sha256-T2bBcxg2q2bEtEElWpXzOlF0PkmTuKqdr0MMsxqn1I4=";
    hash = "sha256-+xu6sfCkIzCVA2QaLO2Nwa5sB9WomLT3Ft4NuZV0bg0=";
  };

  pythonRelaxDeps = [ "llama-index-llms-openai" ];

  build-system = [
    poetry-core
  ];
  build-system = [ hatchling ];

  dependencies = [
    llama-index-core
+11 −5
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  aiosqlite,
  banks,
  buildPythonPackage,
  dataclasses-json,
  deprecated,
@@ -8,17 +10,17 @@
  fetchFromGitHub,
  filetype,
  fsspec,
  hatchling,
  jsonpath-ng,
  llamaindex-py-client,
  nest-asyncio,
  networkx,
  nltk,
  nltk-data,
  nltk,
  numpy,
  openai,
  pandas,
  pillow,
  poetry-core,
  pytest-asyncio,
  pytest-mock,
  pytestCheckHook,
@@ -36,7 +38,7 @@

buildPythonPackage rec {
  pname = "llama-index-core";
  version = "0.12.23";
  version = "0.12.35";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -45,7 +47,7 @@ buildPythonPackage rec {
    owner = "run-llama";
    repo = "llama_index";
    tag = "v${version}";
    hash = "sha256-GFzaorzjeQGreyUjRXP7v7djbSq2boLWZjwO4R2W9E4=";
    hash = "sha256-qBLCuQjkUNER70wJiWH6pEN4D2J9L8emGQukdlWAAYU=";
  };

  sourceRoot = "${src.name}/${pname}";
@@ -66,10 +68,12 @@ buildPythonPackage rec {

  pythonRelaxDeps = [ "tenacity" ];

  build-system = [ poetry-core ];
  build-system = [ hatchling ];

  dependencies = [
    aiohttp
    aiosqlite
    banks
    dataclasses-json
    deprecated
    dirtyjson
@@ -139,6 +143,8 @@ buildPythonPackage rec {
    # asyncio.exceptions.InvalidStateError: invalid state
    "test_workflow_context_to_dict_mid_run"
    "test_SimpleDirectoryReader"
    # RuntimeError
    "test_str"
  ];

  meta = with lib; {
+4 −4
Original line number Diff line number Diff line
@@ -3,14 +3,14 @@
  buildPythonPackage,
  fetchPypi,
  llama-index-core,
  poetry-core,
  hatchling,
  pythonOlder,
  sentence-transformers,
}:

buildPythonPackage rec {
  pname = "llama-index-embeddings-huggingface";
  version = "0.5.3";
  version = "0.5.4";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -18,10 +18,10 @@ buildPythonPackage rec {
  src = fetchPypi {
    pname = "llama_index_embeddings_huggingface";
    inherit version;
    hash = "sha256-P+yzY8wNBYkGia78LRvaLwJDGFfgRW/a8ujElg+drq8=";
    hash = "sha256-nFjFrPt38Heo5DZgsbA3RgEmqNGAwXVwP/MeidqxnT4=";
  };

  build-system = [ poetry-core ];
  build-system = [ hatchling ];

  dependencies = [
    llama-index-core
+5 −5
Original line number Diff line number Diff line
{
  lib,
  boto3,
  buildPythonPackage,
  fetchPypi,
  boto3,
  hatchling,
  llama-index-core,
  poetry-core,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "llama-index-graph-stores-neptune";
  version = "0.3.2";
  version = "0.3.3";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -18,10 +18,10 @@ buildPythonPackage rec {
  src = fetchPypi {
    pname = "llama_index_graph_stores_neptune";
    inherit version;
    hash = "sha256-jSZ86qdK5KklPFtgyruPtYhJ2Yesd8C1QufhojhKO0A=";
    hash = "sha256-IqY4dEWcbM9371vuZ7C9NlDux9O/j6wF7Hcc4aiBiIE=";
  };

  build-system = [ poetry-core ];
  build-system = [ hatchling ];

  dependencies = [
    boto3
Loading