From 161e6ff9dfc3c591992f5688f3301eea87cfe474 Mon Sep 17 00:00:00 2001 From: niklas Date: Tue, 31 Oct 2023 13:26:37 +0100 Subject: [PATCH] Move document_index to document_index dir --- src/intelligence_layer/connectors/__init__.py | 2 +- .../connectors/{ => document_index}/document_index.py | 0 .../connectors/retrievers/document_index_retriever.py | 2 +- tests/conftest.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/intelligence_layer/connectors/{ => document_index}/document_index.py (100%) diff --git a/src/intelligence_layer/connectors/__init__.py b/src/intelligence_layer/connectors/__init__.py index 492184e98..0f199d3dd 100644 --- a/src/intelligence_layer/connectors/__init__.py +++ b/src/intelligence_layer/connectors/__init__.py @@ -1,4 +1,4 @@ -from .document_index import DocumentIndex +from .document_index.document_index import DocumentIndex from .retrievers.base_retriever import BaseRetriever, Document, SearchResult from .retrievers.document_index_retriever import DocumentIndexRetriever from .retrievers.qdrant_in_memory_retriever import ( diff --git a/src/intelligence_layer/connectors/document_index.py b/src/intelligence_layer/connectors/document_index/document_index.py similarity index 100% rename from src/intelligence_layer/connectors/document_index.py rename to src/intelligence_layer/connectors/document_index/document_index.py diff --git a/src/intelligence_layer/connectors/retrievers/document_index_retriever.py b/src/intelligence_layer/connectors/retrievers/document_index_retriever.py index 306856071..319b40974 100644 --- a/src/intelligence_layer/connectors/retrievers/document_index_retriever.py +++ b/src/intelligence_layer/connectors/retrievers/document_index_retriever.py @@ -1,6 +1,6 @@ from typing import Sequence -from intelligence_layer.connectors.document_index import DocumentIndex +from intelligence_layer.connectors.document_index.document_index import DocumentIndex from intelligence_layer.connectors.retrievers.base_retriever import ( BaseRetriever, Document, diff --git a/tests/conftest.py b/tests/conftest.py index e811937db..64657a67a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ from intelligence_layer.connectors.retrievers.document_index_retriever import ( DocumentIndexRetriever, ) -from intelligence_layer.connectors.document_index import DocumentIndex +from intelligence_layer.connectors.document_index.document_index import DocumentIndex from intelligence_layer.connectors.retrievers.qdrant_in_memory_retriever import ( QdrantInMemoryRetriever, RetrieverType,