From 32c748524add7123d47d06007a241baa797b390c Mon Sep 17 00:00:00 2001 From: Mohammad Hashemian Date: Mon, 30 Dec 2024 17:42:04 -0500 Subject: [PATCH] Fix: Properly add documents from Gitlab Repo (#17392) --- .../llama_index/readers/gitlab/repository/base.py | 4 +--- .../readers/llama-index-readers-gitlab/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/llama-index-integrations/readers/llama-index-readers-gitlab/llama_index/readers/gitlab/repository/base.py b/llama-index-integrations/readers/llama-index-readers-gitlab/llama_index/readers/gitlab/repository/base.py index 88dd2c5e1d427..a6944a858fe3a 100644 --- a/llama-index-integrations/readers/llama-index-readers-gitlab/llama_index/readers/gitlab/repository/base.py +++ b/llama-index-integrations/readers/llama-index-readers-gitlab/llama_index/readers/gitlab/repository/base.py @@ -84,9 +84,7 @@ def load_data( for item in repo_items: if item["type"] == "blob": - document = self._load_single_file(item["path"], ref) - - documents.append(document) + documents.append(self._load_single_file(item["path"], ref)) return documents diff --git a/llama-index-integrations/readers/llama-index-readers-gitlab/pyproject.toml b/llama-index-integrations/readers/llama-index-readers-gitlab/pyproject.toml index d9397cf779d9e..7f679818324f2 100644 --- a/llama-index-integrations/readers/llama-index-readers-gitlab/pyproject.toml +++ b/llama-index-integrations/readers/llama-index-readers-gitlab/pyproject.toml @@ -32,7 +32,7 @@ maintainers = ["jiachengzhang1"] name = "llama-index-readers-gitlab" packages = [{include = "llama_index/"}] readme = "README.md" -version = "0.3.0" +version = "0.3.1" [tool.poetry.dependencies] python = ">=3.9,<4.0"