Skip to content

Commit cf42140

Browse files
Merge branch 'master' into hard-coded-version
2 parents 8ad3108 + 5fb261c commit cf42140

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/docs/concepts/retrieval.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ structured_model = model.with_structured_output(Questions)
9292

9393
# Define the system prompt
9494
system = """You are a helpful assistant that generates multiple sub-questions related to an input question. \n
95-
The goal is to break down the input into a set of sub-problems / sub-questions that can be answers in isolation. \n"""
95+
The goal is to break down the input into a set of sub-problems / sub-questions that can be answered independently. \n"""
9696

9797
# Pass the question to the model
9898
question = """What are the main components of an LLM-powered autonomous agent system?"""

docs/docs/versions/migrating_chains/map_rerank_docs_chain.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"- Map a process to the set of documents, where the process includes generating a score;\n",
1414
"- Rank the results by score and return the maximum.\n",
1515
"\n",
16-
"A common process in this scenario is question-answering using pieces of context from a document. Forcing the model to generate score along with its answer helps to select for answers generated only by relevant context.\n",
16+
"A common process in this scenario is question-answering using pieces of context from a document. Forcing the model to generate a score along with its answer helps to select for answers generated only by relevant context.\n",
1717
"\n",
1818
"An [LangGraph](https://langchain-ai.github.io/langgraph/) implementation allows for the incorporation of [tool calling](/docs/concepts/tool_calling) and other features for this problem. Below we will go through both `MapRerankDocumentsChain` and a corresponding LangGraph implementation on a simple example for illustrative purposes."
1919
]

libs/community/langchain_community/retrievers/google_vertex_ai_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def _convert_website_search_response(
167167
doc_metadata = document_dict.get("struct_data", {})
168168
doc_metadata["id"] = document_dict["id"]
169169
doc_metadata["source"] = derived_struct_data.get("link", "")
170+
if derived_struct_data.get("title") is not None:
171+
doc_metadata["title"] = derived_struct_data.get("title")
170172

171173
if chunk_type not in derived_struct_data:
172174
continue

0 commit comments

Comments
 (0)