You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community
Edwin Wenink 9fb09c1c30
community: fix the "page" mode in the AzureAIDocumentIntelligenceParser (bug) (#15958)
**Description**: the "page" mode in the
AzureAIDocumentIntelligenceParser is not accessible due to a wrong
membership test. The mode argument can only be a string (also see the
assertion in the `__init__`: `assert self.mode in ["single", "page",
"object", "markdown"]`, so the check `elif self.mode == ["page"]:`
always fails.
As a result, effectively the "object" mode is used when selecting the
"page" mode, which may lead to errors.

The docstring of the `AzureAIDocumentIntelligenceLoader` also ommitted
the `mode` parameter alltogether, so I added it.

**Issue**: I could not find a related issue (this class is only 3 weeks
old anyways)

**Dependencies**: this PR does not introduce or affect dependencies.

The current demo notebook and examples are not affected because they all
use the default markdown mode.
8 months ago
..
adapters community[patch]: Add safe lookup to OpenAI response adapter (#14765) 9 months ago
agent_toolkits feat(community): make Amadeus toolkit LLM-agnostic (#15879) 8 months ago
callbacks fix: Fix DEFAULT_API_KEY for ArgillaCallbackHandler (#15534) 9 months ago
chat_loaders Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
chat_message_histories [community]: Elasticsearch chat history encoding (#15055) 9 months ago
chat_models feat: Implement `stream` interface (#15875) 8 months ago
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_loaders community: fix the "page" mode in the AzureAIDocumentIntelligenceParser (bug) (#15958) 8 months ago
document_transformers community: Make doctran synchronous (#15264) 9 months ago
embeddings community: Added functions to make async calls to HuggingFaceHub's embedding endpoint in HuggingFaceHubEmbeddings class (#15737) 8 months ago
graphs community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
llms community: Ollama - Pass headers to post request (#15881) 8 months ago
retrievers community: add collection_properties parameter to Milvus (#15788) 9 months ago
storage Add a BaseStore backed by AstraDB (#15812) 8 months ago
tools feat(community): make Amadeus toolkit LLM-agnostic (#15879) 8 months ago
utilities Patch: improve type hint (#15451) 9 months ago
utils openai[minor]: implement langchain-openai package (#15503) 9 months ago
vectorstores community: Fixing a performance issue with AzureSearch to perform batch embedding (#15594) 8 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago