mb-rag 1.0.125__tar.gz → 1.0.126__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mb-rag might be problematic. Click here for more details.
- {mb_rag-1.0.125 → mb_rag-1.0.126}/PKG-INFO +1 -1
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/rag/embeddings.py +2 -3
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/version.py +1 -1
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag.egg-info/PKG-INFO +1 -1
- {mb_rag-1.0.125 → mb_rag-1.0.126}/README.md +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/__init__.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/chatbot/__init__.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/chatbot/basic.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/chatbot/chains.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/chatbot/prompts.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/rag/__init__.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/utils/__init__.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/utils/bounding_box.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag/utils/extra.py +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag.egg-info/SOURCES.txt +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag.egg-info/dependency_links.txt +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag.egg-info/requires.txt +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/mb_rag.egg-info/top_level.txt +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/pyproject.toml +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/setup.cfg +0 -0
- {mb_rag-1.0.125 → mb_rag-1.0.126}/setup.py +0 -0
|
@@ -63,7 +63,7 @@ from langchain.text_splitter import (
|
|
|
63
63
|
SentenceTransformersTokenTextSplitter,
|
|
64
64
|
TokenTextSplitter)
|
|
65
65
|
from langchain_community.document_loaders import TextLoader, FireCrawlLoader
|
|
66
|
-
from
|
|
66
|
+
from langchain_chroma import Chroma
|
|
67
67
|
from ..utils.extra import load_env_file
|
|
68
68
|
from langchain.chains import create_history_aware_retriever, create_retrieval_chain
|
|
69
69
|
from langchain.chains.combine_documents import create_stuff_documents_chain
|
|
@@ -570,8 +570,7 @@ class embedding_generator:
|
|
|
570
570
|
|
|
571
571
|
contextualize_q_system_prompt = ("Given a chat history and the latest user question "
|
|
572
572
|
"which might reference context in the chat history, "
|
|
573
|
-
"formulate a standalone question which can be understood "
|
|
574
|
-
"without the chat history. Do NOT answer the question, "
|
|
573
|
+
"formulate a standalone question which can be understood, "
|
|
575
574
|
"just reformulate it if needed and otherwise return it as is.")
|
|
576
575
|
|
|
577
576
|
contextualize_q_prompt = ChatPromptTemplate.from_messages([
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|