Skip to content

Commit

Permalink
Merge pull request #42 from arjbingly/ruff-reformat
Browse files Browse the repository at this point in the history
ruff format
  • Loading branch information
arjbingly authored Mar 21, 2024
2 parents 7fd62c9 + f4719fa commit da5b5f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/grag/components/chroma_client.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from typing import List

import chromadb
from grag.components.embedding import Embedding
from grag.components.utils import get_config
from langchain_community.vectorstores import Chroma
from langchain_community.vectorstores.utils import filter_complex_metadata
from langchain_core.documents import Document
from tqdm import tqdm
from tqdm.asyncio import tqdm as atqdm

from grag.components.embedding import Embedding
from grag.components.utils import get_config

chroma_conf = get_config()["chroma"]


Expand Down
7 changes: 3 additions & 4 deletions src/grag/components/multivec_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
import uuid
from typing import List

from langchain.retrievers.multi_vector import MultiVectorRetriever
from langchain.storage import LocalFileStore
from langchain_core.documents import Document

from grag.components.chroma_client import ChromaClient
from grag.components.text_splitter import TextSplitter
from grag.components.utils import get_config
from langchain.retrievers.multi_vector import MultiVectorRetriever
from langchain.storage import LocalFileStore
from langchain_core.documents import Document

multivec_retriever_conf = get_config()["multivec_retriever"]

Expand Down
2 changes: 1 addition & 1 deletion src/grag/rag/basic_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from grag import prompts
from grag.components.llm import LLM
from grag.components.multivec_retriever import Retriever
from grag.components.prompt import Prompt, FewShotPrompt
from grag.components.prompt import FewShotPrompt, Prompt
from grag.components.utils import get_config
from importlib_resources import files
from langchain_core.documents import Document
Expand Down
2 changes: 1 addition & 1 deletion src/tests/rag/basic_rag_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Text, List
from typing import List, Text

from grag.rag.basic_rag import BasicRAG

Expand Down

0 comments on commit da5b5f3

Please sign in to comment.