langchain/libs
Sam Chou 4f19ba3065
Azure Search: Remove select field restrictions and expand metadata to other fields, also expose kwargs to searches (#9894)
Description: 
If metadata field returned in results, previous behavior unchanged. If
metadata field does not exist in results, expand metadata to any fields
returned outside of content field.

There's precedence for this as well, see the retriever:
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/retrievers/azure_cognitive_search.py#L96C46-L96C46

Issue: 
#9765 - Ameliorates hard-coding in case you already indexed to cognitive
search without a metadata field but rather placed metadata in separate
fields.

@hwchase17
2023-09-19 16:10:29 -07:00
..
experimental Corrected some spelling mistakes and grammatical errors (#10791) 2023-09-19 10:08:59 -07:00
langchain Azure Search: Remove select field restrictions and expand metadata to other fields, also expose kwargs to searches (#9894) 2023-09-19 16:10:29 -07:00