Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make visual features configurable by the user #14

Open
wants to merge 542 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
Show all changes
542 commits
Select commit Hold shift + click to select a range
22a8652
langchain: add missing punctuation in react_single_input.py (#28161)
DreamOfStars Nov 18, 2024
0c051e5
docs: fix grammatical error in delegation to sync methods (#28165)
devs-talha Nov 18, 2024
093f24b
docs: standard test update (#28185)
efriis Nov 18, 2024
c26b357
docs: community integration guide clarification (#28186)
efriis Nov 18, 2024
a1db744
docs: add component tabs to integration landing pages (#28142)
ccurme Nov 18, 2024
3a63055
docs[patch]: Add missing link to streaming concepts page (#28189)
eyurtsev Nov 18, 2024
6dfea7e
docs: fixed a typo (#28191)
Mahdi-Massahi Nov 18, 2024
018f410
docs: fix embeddings tabs (#28193)
ccurme Nov 18, 2024
cbeb860
docs: efficient rebuild (#28195)
efriis Nov 18, 2024
d9d6895
openai: release 0.2.9, o1 streaming (#28197)
efriis Nov 18, 2024
24eea2e
infra: allow non-langchainai packages (#28199)
efriis Nov 19, 2024
0dbaf05
standard-tests: rename langchain_standard_tests to langchain_tests, r…
efriis Nov 19, 2024
0a06732
docs: links in integration contrib (#28200)
efriis Nov 19, 2024
97f752c
docs: more standard test stubs (#28202)
efriis Nov 19, 2024
5599a0a
core[minor]: Add other langgraph packages to sys_info (#28190)
eyurtsev Nov 19, 2024
197b885
[CLI] Relax constraints (#28218)
hinthornw Nov 19, 2024
6bda89f
Clarify bind tools takes a list (#28222)
rlancemartin Nov 19, 2024
1691884
docs: add conceptual testing docs (#28205)
efriis Nov 19, 2024
4027da1
docs: fix typo in migration guide: migrate_agent.ipynb (#28227)
Sodas0 Nov 20, 2024
43e24cd
docs, standard-tests: property tags, support tool decorator (#28234)
efriis Nov 20, 2024
4da3562
docs: formatting fix (#28235)
efriis Nov 20, 2024
218b4e0
community: fix some features on Naver ChatModel & embedding model (#2…
hyper-clova Nov 20, 2024
923ef85
langchain_chroma: fixed integration tests (#27968)
epinzur Nov 20, 2024
7c7ee07
huggingface[fix]: HuggingFaceEndpointEmbeddings model parameter passi…
vegetablest Nov 20, 2024
cb32bab
docs: update notebook env dependencies (#28221)
ccurme Nov 20, 2024
abaea28
community: SamabanovaCloud tool calling and Structured output (#27967)
jhpiedrahitao Nov 20, 2024
567dc1e
community: fix duplicate content (#28003)
Renzo-vS Nov 20, 2024
2901fa2
community: Add deprecation warning for GigaChat integration in langch…
Mikelarg Nov 20, 2024
dee72c4
community: Outlines integration (#27449)
shroominic Nov 20, 2024
1a66175
mistral[patch]: Propagate tool call id (#28238)
eyurtsev Nov 20, 2024
2acc83f
mistralai[patch]: 0.2.2 release (#28240)
eyurtsev Nov 20, 2024
8738973
docs: vectorstore standard tests (#28241)
efriis Nov 20, 2024
161ab73
standard-tests: release 0.3.3 (#28242)
efriis Nov 20, 2024
35e6052
infra: remove stale dockerfiles from repo (#28243)
efriis Nov 21, 2024
60e572f
standard-tests: tool tests (#28244)
efriis Nov 21, 2024
4bdf1d7
standard-tests: fix decorator init test (#28246)
efriis Nov 21, 2024
4f76246
standard-tests: release 0.3.4 (#28245)
efriis Nov 21, 2024
d110860
multiple: push deprecation removals to 1.0 (#28236)
efriis Nov 21, 2024
96c6723
docs: standard test version badge (#28247)
efriis Nov 21, 2024
f5f53d1
community: fix compatibility issue in kinetica chat model integration…
Pr1yansh1 Nov 21, 2024
56499cf
openai[patch]: unskip test and relax tolerance in embeddings comparis…
ccurme Nov 21, 2024
69a706a
infra: fix api docs build (#28264)
efriis Nov 21, 2024
ad4333c
infra: disable vertex api build (#28266)
efriis Nov 21, 2024
5bc2df3
standard-tests: troubleshooting docstrings (#28268)
efriis Nov 21, 2024
b3ee1f8
core: add space at end of error message link (#28270)
efriis Nov 21, 2024
45402d1
api-docs: add standard tests package to build (#28272)
efriis Nov 21, 2024
f173b72
api-docs: add standard tests package to build 2 (#28273)
efriis Nov 21, 2024
49254cd
docs: poetry publish (#28275)
efriis Nov 22, 2024
2917f85
docs: Update langchain docs to new Databricks package (#28274)
prithvikannan Nov 22, 2024
4ccb3e6
cli: release 0.0.33 (#28278)
efriis Nov 22, 2024
9a717c9
docs: poetry publish 2 (#28277)
efriis Nov 22, 2024
29f8a79
groq,openai,mistralai: fix unit tests (#28279)
efriis Nov 22, 2024
65deedd
docs: poetry publish 3 (#28280)
efriis Nov 22, 2024
a5fcbe6
docs: correct HuggingFaceEmbeddings documentation model param (#28269)
manuelescobar-dev Nov 22, 2024
a433039
core[patch]: support final AIMessage responses in `tool_example_to_me…
ccurme Nov 22, 2024
697dda5
core[patch]: release 0.3.20 (#28293)
ccurme Nov 22, 2024
2ee37a1
community: list valid values for LanceDB constructor's `mode` argumen…
metadaddy Nov 22, 2024
7277794
ollama: include kwargs in requests (#28299)
efriis Nov 22, 2024
aa7fa80
partners/ollama: release 0.2.2rc1 (#28300)
efriis Nov 22, 2024
203d20c
community[patch]: fix errors introduced by pydantic 2.10 (#28297)
ccurme Nov 22, 2024
242e9fc
infra: install standard tests in docs build (#28303)
efriis Nov 22, 2024
25a636c
langchain[patch]: update deprecation message for MapReduceChain (#28304)
ccurme Nov 23, 2024
39fd0fd
infra: more rst (#28305)
efriis Nov 23, 2024
a329647
docs: integration asyncio mode (#28306)
efriis Nov 23, 2024
ed84d48
[Doc] Improvement: fix import statement for qdrant (#28286)
ZhangShenao Nov 23, 2024
a813d11
core[patch]: Compat pydantic 2.10 (#28308)
eyurtsev Nov 23, 2024
563587e
langchain[patch]: Compat with pydantic 2.10 (#28307)
eyurtsev Nov 23, 2024
7170a4e
docs: standard test api link (#28309)
efriis Nov 23, 2024
f5f1149
core[patch]: release 0.3.21 (#28314)
ccurme Nov 23, 2024
82bb0cd
langchain[patch]: release 0.3.8 (#28315)
ccurme Nov 23, 2024
a83357d
community[patch]: release 0.3.8 (#28316)
ccurme Nov 23, 2024
6ed2d38
docs: fix GOOGLE_API_KEY typo (#28322)
Yelinz Nov 25, 2024
c60695a
community: fixed critical bugs at Writer provider (#27879)
yanomaly Nov 25, 2024
5867f25
community[patch]: Neo4j community deprecation (#28130)
alexthomas93 Nov 25, 2024
a537495
community[patch]: fix import in test (#28339)
ccurme Nov 25, 2024
aa2c17b
docs: update azure_openai_whisper_parser.ipynb (#28327)
eltociear Nov 25, 2024
195ae7b
Community: Adding citations in AIMessage for ChatPerplexity (#28321)
keenborder786 Nov 26, 2024
c161f7d
docs(create_sql_agent): fix reStructured Text Markup (#28356)
0xRichardH Nov 26, 2024
a97c53e
docs[patch]: fix broken anchor link (#28358)
ccurme Nov 26, 2024
7b9a0d9
docs: update tutorials (#28219)
ccurme Nov 26, 2024
869c8f5
langchain[patch]: support numpy 2 (#28183)
ghinch Nov 26, 2024
42b1882
openai[patch]: use max_completion_tokens in place of max_tokens (#26917)
ccurme Nov 26, 2024
e7dc26a
openai[patch]: Release 0.2.10 (#28360)
baskaryan Nov 26, 2024
e9c1655
openai[patch]: bump core dep (#28361)
baskaryan Nov 26, 2024
74d9d2c
ollama[patch]: support ollama 0.4 (#28364)
ccurme Nov 26, 2024
a1c9079
ollama[patch]: bump to 0.4.1 in lock file (#28365)
ccurme Nov 26, 2024
7d95a10
langchain: Fix Neo4jVector vector store reference from partner packag…
willtai Nov 26, 2024
06fafc6
Community: Marqo Index Setting GET Request Updated according to `2.x`…
keenborder786 Nov 26, 2024
ec205fc
Updated docs for the BM25 preprocessing function (#28101)
kiril-buga Nov 26, 2024
8adc4a5
langchain[patch]: update deprecation message for agent classes and co…
ccurme Nov 26, 2024
ffe7bd4
langchain[patch]: init_chat_model provider in model string (#28367)
baskaryan Nov 27, 2024
585da22
Init embeddings (#28370)
hinthornw Nov 27, 2024
85b8cec
docs: fix typo in embedding vectors documentation (#28378)
kanad13 Nov 27, 2024
42b8ad0
chroma[patch]: test python 3.13 in CI (#28387)
ccurme Nov 27, 2024
51e98a5
docs[patch]: fix typo in embeddings tab (#28388)
ccurme Nov 27, 2024
bb83abd
community[patch]: remove sqlalchemy cap (#28389)
ccurme Nov 27, 2024
607c60a
partners/ollama: fix tool calling with nested schemas (#28225)
TheDannyG Nov 27, 2024
c09000f
Building RAG agents locally using open source LLMs on Intel CPU (#28302)
pbharti0831 Nov 27, 2024
0901f11
community: add truncation params when an openai assistant's run is cr…
LuisMSotamba Nov 27, 2024
5141f25
community[patch]: support numpy2 (#28184)
ghinch Nov 27, 2024
b9bf7fd
couchbase[patch]: run python 3.13 in CI (#28391)
ccurme Nov 27, 2024
733a6ad
mistral[patch]: run python 3.13 in CI (#28392)
ccurme Nov 27, 2024
8358666
partners[chroma]: add retrieval of embedding vectors (#28290)
mspronesti Nov 27, 2024
ee6fc3f
nomic[patch]: run python 3.13 in CI (#28393)
ccurme Nov 27, 2024
a8b21af
qdrant[patch]: run python 3.13 in CI (#28394)
ccurme Nov 27, 2024
b7e10bb
langchain[patch]: Release 0.3.9 (#28399)
baskaryan Nov 27, 2024
2813e86
docs: Adds the langchain-neo4j package to the API docs (#28386)
alexthomas93 Nov 27, 2024
c2f1d02
mistral[patch]: ensure tool call IDs in tool messages are correctly f…
ccurme Nov 29, 2024
49914e9
community[patch]: Release 0.3.9 (#28451)
baskaryan Dec 2, 2024
4743348
mistral[patch]: Release 0.2.3 (#28452)
baskaryan Dec 2, 2024
e294e71
Update mistralai.ipynb (#28440)
chistokir Dec 2, 2024
58d2bfe
docs: fixed a variable name in embeddings section (#28434)
rcocetta Dec 2, 2024
e5b4f9a
docs: Add ChatDatabricks to llm models (#28398)
prithvikannan Dec 2, 2024
c953f93
infra: Update Poetry version, to current latest (1.8.4) (#28194)
ulgens Dec 2, 2024
88d6d02
ollama[patch]: release 0.2.2 (#28456)
ccurme Dec 2, 2024
2848759
ollama[patch]: release 0.2.1 (#28458)
ccurme Dec 2, 2024
60021e5
community: Add the additonnal kward 'context' for openai (#28351)
lucasiscovici Dec 2, 2024
ecee41a
fix: Handle response metadata in merge_messages_runs (#28453)
hinthornw Dec 2, 2024
9f04416
openai: set logit_bias to none instead of empty dict by default (#28460)
efriis Dec 2, 2024
42d40d6
partners/openai: release 0.2.11 (#28461)
efriis Dec 2, 2024
000be1f
tests: init retriever standard tests (#28459)
efriis Dec 2, 2024
6b7e93d
pinecone: update pinecone client (#28320)
aulorbe Dec 3, 2024
ff675c1
partners/pinecone: release 0.2.2 (#28466)
efriis Dec 3, 2024
7315360
openai: dont populate logit_bias if None (#28482)
efriis Dec 3, 2024
926e452
partners: update version header for Pinecone integration (#28481)
aulorbe Dec 3, 2024
c74f34c
pinecone: release 0.2.1 (version sequence) (#28485)
efriis Dec 3, 2024
a220ee5
infra: add 20min timeout to ci steps (#28483)
efriis Dec 3, 2024
50ddf13
infra: configurable scheduled tests (#28486)
efriis Dec 3, 2024
ab831ce
tests[patch]: populate API reference for chat models (#28487)
ccurme Dec 3, 2024
b0a8307
Update graph_constructing.ipynb (#28489)
prakashshan50 Dec 3, 2024
ef36554
community: add Needle retriever and document loader integration (#28157)
JANHMS Dec 3, 2024
6e607bb
docs: langchain-ai21 update ai21 docs (#28076)
miri-bar Dec 4, 2024
15e7353
langchain_community: updated query constructor for Databricks Vector …
willsmithDB Dec 4, 2024
eff8a54
langchain_chroma: added document.id support (#27995)
epinzur Dec 4, 2024
bc5ec63
community : allow using apikey for PubMedAPIWrapper (#27246)
peterdhp Dec 4, 2024
a009249
infra: release rely on local built in testing (#28492)
efriis Dec 4, 2024
d34bf78
community: BM25Retriever preservation of document id (#27019)
TupleType Dec 4, 2024
6151ea7
community: implement _select_relevance_score_fn for tencent vectordb …
wlleiiwang Dec 4, 2024
e6a0835
docs: more api ref links, add linting step to prevent more (#28495)
efriis Dec 4, 2024
12d74d5
docs: single security doc (#28515)
efriis Dec 4, 2024
eec55c2
chroma[patch]: add `get_by_ids` and fix bug (#28516)
ccurme Dec 4, 2024
a013014
switch graph semantic layer docs to langgraph (#28513)
tomasonjo Dec 4, 2024
8bc2c91
chroma[patch]: (nit) simplify test (#28517)
ccurme Dec 4, 2024
2b360d6
infra: scheduled test fix (#28519)
efriis Dec 4, 2024
f459754
tests[patch]: populate API reference for vector stores (#28520)
ccurme Dec 5, 2024
c5acedd
anthropic: timeout in tests (10s) (#28488)
efriis Dec 5, 2024
43c35d1
cli: standard tests in cli, test that they run, skip vectorstore test…
efriis Dec 5, 2024
0f539f0
standard-tests: release 0.3.5 (#28526)
efriis Dec 5, 2024
d9e42a1
langchain[patch]: fix deprecation warning (#28535)
ccurme Dec 5, 2024
ecff9a0
cli: release 0.0.34 (#28525)
efriis Dec 5, 2024
8f9b3b7
chroma[patch]: fix bug (#28538)
ccurme Dec 5, 2024
7d44316
docs: Add link for how to install extras (#28537)
Coniferish Dec 5, 2024
d26555c
[VectorStore] Improvement: Improve chroma vector store (#28524)
ZhangShenao Dec 5, 2024
b8e861a
openai[patch]: add standard tests for embeddings (#28540)
ccurme Dec 5, 2024
1e285cb
docs: Updated incorrected type used for the `multiply_by_max` functio…
WEIQ-beepbeep Dec 5, 2024
1581857
docs: add Aerospike to providers list (#28066)
dwelch-spike Dec 5, 2024
ecdfc98
tests[patch]: run standard tests for embeddings and populate embeddin…
ccurme Dec 5, 2024
3d54935
docs: deprecated styling (#28546)
efriis Dec 5, 2024
66f819c
infra: run cli tests on test changes (#28542)
efriis Dec 5, 2024
5519a1c
docs[patch]: improve integration docs (#28547)
ccurme Dec 5, 2024
7a96ce1
docs: deprecated styling (#28550)
efriis Dec 5, 2024
28f8d43
mistral: fix of issue #26029 (#28233)
blaufink Dec 5, 2024
482e8a7
community: Add support for SAP HANA Vector hnsw index creation (#27884)
cinqisap Dec 5, 2024
478def8
core: deprecation doc removal (#28553)
efriis Dec 5, 2024
a197e0b
docs: custom deprecated coloring, organize css a bit (#28555)
efriis Dec 5, 2024
7ecf38f
cli: create specific files from template (#28556)
efriis Dec 6, 2024
bc636cc
cli: release 0.0.35 (#28557)
efriis Dec 6, 2024
18386c1
core, tests: more tolerant _aget_relevant_documents function (#28462)
efriis Dec 6, 2024
5277a02
docs: raw loader codeblock (#28548)
efriis Dec 6, 2024
f3dc142
cli[patch]: implement minimal starter vector store (#28577)
ccurme Dec 6, 2024
15cbc36
docs[patch]: update contributor docs for integrations (#28576)
ccurme Dec 6, 2024
dda9f90
core[patch]: Release 0.3.22 (#28582)
baskaryan Dec 6, 2024
2c6bc74
multiple: combine sync/async vector store standard test suites (#28580)
ccurme Dec 6, 2024
c38b845
core: fix path test (#28584)
efriis Dec 6, 2024
e6663b6
langchain: release 0.3.10 (#28585)
efriis Dec 6, 2024
221ab03
docs: readme/intro nits (#28581)
baskaryan Dec 6, 2024
4f99952
docs: enable private docstring members sphinx (#28586)
efriis Dec 6, 2024
791d7e9
docs: enable private docstring modules sphinx (#28588)
efriis Dec 6, 2024
1cedf40
docs: enable private docstring submembers sphinx (#28589)
efriis Dec 6, 2024
246c10a
standard-tests: private members and tools unit troubleshoot (#28590)
efriis Dec 6, 2024
9e2abcd
standard-tests: show right classes in api docs (#28591)
efriis Dec 6, 2024
f943205
docs: dont document root init (#28592)
efriis Dec 6, 2024
925ca75
docs: format (#28593)
efriis Dec 6, 2024
b7c2029
standard-tests: root docstrings (#28595)
efriis Dec 6, 2024
0eb7ab6
multiple: fix xfailed signatures (#28597)
efriis Dec 6, 2024
80a88f8
tests[patch]: update API ref for chat models (#28594)
ccurme Dec 7, 2024
4a7dc6e
standard-tests: release 0.3.6 (#28599)
efriis Dec 7, 2024
07c2ac7
community: release 0.3.10 (#28600)
efriis Dec 7, 2024
a32035d
docs: update uptrain.ipynb (#28561)
eltociear Dec 7, 2024
d801c6f
tests[patch]: nits (#28601)
ccurme Dec 7, 2024
5e8553c
standard-tests: retriever docstrings (#28596)
efriis Dec 7, 2024
9b84849
docs: tool, retriever contributing docs (#28602)
efriis Dec 7, 2024
dd0085a
docs: standard tests to markdown, load templates from files (#28603)
efriis Dec 7, 2024
524ee6d
Invalid `tool_choice` being passed to `ChatLiteLLM` (#28198)
keenborder786 Dec 7, 2024
fbf0704
docs: Update IBM documentation (#28503)
MateuszOssGit Dec 8, 2024
317a38b
community[minor]: Add support for modle2vec embeddings (#28507)
blacksmithop Dec 9, 2024
2354bb7
partners: 🕷️🦜 ScrapeGraph API Integration (#28559)
PeriniM Dec 9, 2024
1fc4ac3
docs: Resolve incorrect import of AttributeInfo for self-query retrie…
DangerousPotential Dec 9, 2024
220b33d
docs: Fixed broken link in the warning message to @tool API Reference…
DangerousPotential Dec 9, 2024
e8508fb
docs: Fixed mini typo in recommend and improve the phrasing (#28438)
DangerousPotential Dec 9, 2024
079c7ea
docs: Fix typo in weaviate integration docs (#28425)
funkyrailroad Dec 9, 2024
54fba7e
docs: change upstage solar model descriptions (#28419)
inahjeon Dec 9, 2024
481c4bf
core[patch]: Fixed trim functions, and added corresponding unit test …
fazam0616 Dec 9, 2024
eabe587
community[patch]:Fix for get_openai_callback() return token_cost=0.0 …
m4a1carbin4 Dec 9, 2024
b53f07b
docs: more integration contrib (#28618)
efriis Dec 9, 2024
90f162e
text-splitters: add pydocstyle linting (#28127)
dangiankit Dec 9, 2024
cef21a0
cli: warning on app add (#28619)
efriis Dec 9, 2024
ec9b414
[Core]: Small Docstring Clarification for `BaseTool` (#28148)
keenborder786 Dec 9, 2024
6e6061f
openai[patch]: bump minimum SDK version (#28632)
ccurme Dec 9, 2024
ffb5c19
openai[patch]: release 0.2.12 (#28633)
ccurme Dec 9, 2024
4c70fff
standard-tests: sync/async vectorstore tests conditional (#28636)
efriis Dec 9, 2024
b64d846
docs: Standardize MoonshotChat docstring (#28159)
maang-h Dec 9, 2024
b476fdb
docs: update readme (#28631)
ccurme Dec 9, 2024
bdb4cf7
Fix typo in Custom Output Parser doc (#28617)
huyb1991 Dec 9, 2024
9fcd203
partners/mistralai: Fix KeyError in Vertex AI stream (#28624)
nikitajoyn Dec 9, 2024
85114b4
docs: Update sql-query doc by fixing spelling mistake of chinhook.db …
prnvlohar Dec 9, 2024
242fee1
community[minor] Pebblo: Support for new Pinecone class PineconeVecto…
Raj725 Dec 9, 2024
ce3b69a
community: add include_labels option to ConfluenceLoader (#28259)
nakamasato Dec 9, 2024
6815981
Switch graphqa example in docs to langgraph (#28574)
tomasonjo Dec 9, 2024
534b8f4
standard-tests: release 0.3.7 (#28637)
efriis Dec 9, 2024
75bc6bb
community: [bugfix] fix source path for office files in O365 (#28260)
MacanPN Dec 9, 2024
2c49f58
community[fix]: could not locate runnable browser (#28289)
ImAmirreza Dec 9, 2024
cf6d1c0
docs: add Linkup integration documentation (#28366)
cjumel Dec 9, 2024
34ca31e
docs: integration contrib typo (#28642)
efriis Dec 9, 2024
b78b2f7
community[fix]: Update Perplexity to pass parameters into API calls (…
arnavp103 Dec 10, 2024
4e743b5
Core: google docstring parsing fix (#28404)
Tesla2000 Dec 10, 2024
5afeb8b
infra: merge queue allowed (#28641)
efriis Dec 10, 2024
9b7d49f
docs: Adding Docs for new SQLServer Vector store package (#28173)
Pookam90 Dec 10, 2024
8c6eec5
community: KuzuGraph needs allow_dangerous_requests, add graph docume…
prrao87 Dec 10, 2024
0f0df2d
fix: Set default search_type to 'similarity' in as_retriever method o…
TamagoTorisugi Dec 10, 2024
ef2f875
core: deprecate PipelinePromptTemplate (#28644)
efriis Dec 10, 2024
d0e9597
langchain-weaviate: Remove outdated docs (#28058)
hsm207 Dec 10, 2024
e24f86e
core[patch]: return ToolMessage from tool (#28605)
baskaryan Dec 10, 2024
24292c4
core[patch]: Release 0.3.23 (#28648)
baskaryan Dec 10, 2024
5c6e2cb
ollama[patch]: support structured output (#28629)
ccurme Dec 10, 2024
aba2711
community: update Memgraph integration (#27017)
katarinasupe Dec 10, 2024
0d20c31
Confluence Loader: Fix CQL loading (#27620)
Tonkonozhenko Dec 10, 2024
c1d348e
doc-loader: retain Azure Doc Intelligence API metadata in Document pa…
jmohren Dec 10, 2024
7040594
Fix graph example documentation (#28653)
tomasonjo Dec 10, 2024
bc4dc7f
ollama[patch]: permit streaming for tool calls (#28654)
ccurme Dec 10, 2024
e6a62d8
core,langchain,community[patch]: allow langsmith 0.2 (#28598)
baskaryan Dec 10, 2024
1fbd86a
core[patch]: Release 0.3.24 (#28656)
baskaryan Dec 10, 2024
91227ad
langchain[patch]: Release 0.3.11 (#28657)
baskaryan Dec 10, 2024
d0e662e
community[patch]: Release 0.3.11 (#28658)
baskaryan Dec 10, 2024
3048a9a
community: tongyi multimodal response format fix to support langchain…
achenglike Dec 10, 2024
b9dd4f2
docs: box to package table (#28676)
efriis Dec 11, 2024
df5008f
community[minor]: FAISS Filter Function Enhancement with Advanced Que…
vincentzhang15 Dec 11, 2024
a37afbe
mistral[minor]: Added Retrying Mechanism in case of Request Rate Limi…
keenborder786 Dec 11, 2024
812ae09
Merge branch 'master' into feature/Image_analysis
efriis Dec 11, 2024
6d63eed
bound test dep
ccurme Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,31 @@ class AzureAiServicesImageAnalysisTool(BaseTool):
"""Tool that queries the Azure AI Services Image Analysis API.

In order to set this up, follow instructions at:
https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40
https://learn.microsoft.com/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40

Attributes:
azure_ai_services_key (Optional[str]): The API key for Azure AI Services.
azure_ai_services_endpoint (Optional[str]): The endpoint URL for Azure AI Services.
visual_features Any: The visual features to analyze in the image, can be set as
either strings or VisualFeatures.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be helpful to show where this type comes from

Suggested change
either strings or VisualFeatures.
either strings or ~azure.ai.vision.imageanalysis.models.VisualFeatures.

(e.g. 'TAGS', VisualFeatures.CAPTION).
image_analysis_client (Any): The client for interacting
with Azure AI Services Image Analysis.
name (str): The name of the tool.
description (str): A description of the tool,
including its purpose and expected input.
"""

azure_ai_services_key: str = "" #: :meta private:
azure_ai_services_endpoint: str = "" #: :meta private:
image_analysis_client: Any #: :meta private:
visual_features: Any #: :meta private:
azure_ai_services_key: Optional[str] = None #: :meta private:
azure_ai_services_endpoint: Optional[str] = None #: :meta private:
visual_features: Any = None
image_analysis_client: Any = None #: :meta private:

name: str = "azure_ai_services_image_analysis"
description: str = (
"A wrapper around Azure AI Services Image Analysis. "
"Useful for when you need to analyze images. "
"Input should be a url to an image."
"Input must be a url string or path string to an image."
)

@model_validator(mode="before")
Expand Down Expand Up @@ -68,13 +80,16 @@ def validate_environment(cls, values: Dict) -> Any:
f"Initialization of Azure AI Vision Image Analysis client failed: {e}"
)

values["visual_features"] = [
VisualFeatures.TAGS,
VisualFeatures.OBJECTS,
VisualFeatures.CAPTION,
VisualFeatures.READ,
]

visual_features = values.get(
"visual_features",
[
VisualFeatures.TAGS,
VisualFeatures.OBJECTS,
VisualFeatures.CAPTION,
VisualFeatures.READ,
],
)
values["visual_features"] = visual_features
return values

def _image_analysis(self, image_path: str) -> Dict:
Expand Down Expand Up @@ -115,6 +130,17 @@ def _image_analysis(self, image_path: str) -> Dict:
if result.read is not None and len(result.read.blocks) > 0:
res_dict["text"] = [line.text for line in result.read.blocks[0].lines]

if result.dense_captions is not None and len(result.dense_captions) > 0:
res_dict["dense_captions"] = [
str(dc) for dc in result.dense_captions.list
]

if result.smart_crops is not None and len(result.smart_crops) > 0:
res_dict["smart_crops"] = [str(sc) for sc in result.smart_crops.list]

if result.people is not None and len(result.people) > 0:
res_dict["people"] = [str(p) for p in result.people.list]

return res_dict

def _format_image_analysis_result(self, image_analysis_result: Dict) -> str:
Expand All @@ -136,6 +162,21 @@ def _format_image_analysis_result(self, image_analysis_result: Dict) -> str:
if "text" in image_analysis_result and len(image_analysis_result["text"]) > 0:
formatted_result.append("Text: " + ", ".join(image_analysis_result["text"]))

if "dense_captions" in image_analysis_result:
formatted_result.append(
"Dense Captions: " + ", ".join(image_analysis_result["dense_captions"])
)

if "smart_crops" in image_analysis_result:
formatted_result.append(
"Smart Crops: " + ", ".join(image_analysis_result["smart_crops"])
)

if "people" in image_analysis_result:
formatted_result.append(
"People: " + ", ".join(image_analysis_result["people"])
)

return "\n".join(formatted_result)

def _run(
Expand Down
Loading