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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mb_rag
3
- Version: 1.0.125
3
+ Version: 1.0.126
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
@@ -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 langchain_community.vectorstores import Chroma
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([
@@ -1,5 +1,5 @@
1
1
  MAJOR_VERSION = 1
2
2
  MINOR_VERSION = 0
3
- PATCH_VERSION = 125
3
+ PATCH_VERSION = 126
4
4
  version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
5
5
  __all__ = ['MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_VERSION', 'version']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mb_rag
3
- Version: 1.0.125
3
+ Version: 1.0.126
4
4
  Summary: RAG function file
5
5
  Author: ['Malav Bateriwala']
6
6
  Requires-Python: >=3.8
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes