Commit Graph

3692 Commits

Author SHA1 Message Date
Eugene Yurtsev
3af3772667 docs: migrate integrations using langchain-cli (#21929)
Migrate integration docs
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
22d436cf6d docs: migrate tutorials using langchain-cli migrate (#21928)
Migrate tutorials
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
a0a5556c96 docs: run migration script against how-to docs (#21927)
Upgrade imports in how-to docs
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
80a11dad44 docs: update how to install (#21920)
Fix installation instructions in how-to install
2024-06-20 13:52:15 -07:00
Maxime Perrin
ea80294730 docs: fix wrong langchain-cli migration commands (#21906)
Co-authored-by: Maxime Perrin <mperrin@doing.fr>
2024-06-20 13:52:15 -07:00
Jacob Lee
f05092cef3 docs[patch]: Adds callback docs (#21889)
@efriis @hwchase17
2024-06-20 13:52:15 -07:00
Jacob Lee
b205b49aba docs[patch]: Update 0.2 banner copy (#21888)
@nfcampos
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
585bacdb99 docs: how to remove conversion to openai function from index (#21836)
- bind_tools interface is a better alternative.
- openai doesn't use functions but tools in its API now.
- the underlying content appears in some redirects, so will need to
investigate if we can remove.
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
225d20bad7 docs: how to tools human in the loop (#21858)
Update information in how to guide tools human in the loop.
2024-06-20 13:52:15 -07:00
Eugene Yurtsev
936836a6f1 docs: how-to index page fix minor typo (#21859)
Fix typo
2024-06-20 13:52:15 -07:00
Bagatur
7798ab2590 docs: lcel how to and cheatsheet (#21851) 2024-06-20 13:52:15 -07:00
Erick Friis
95de87d4ac docs: update announcement bar (#21854) 2024-06-20 13:52:15 -07:00
Jacob Lee
c1b241a5ea docs[patch]: Remove padding from first sidebar link (#21852)
CC @efriis
2024-06-20 13:52:15 -07:00
Erick Friis
0d9edebd0a docs: v0.2 version sidebar (#21844)
![image](https://github.com/langchain-ai/langchain/assets/9557659/189f2e04-0c08-4395-b729-f48982c6f53b)
2024-06-20 13:52:15 -07:00
Max Jakob
ac5cf321e9 docs: update Elasticsearch strategy names (#21530)
Update documentation with the [new names for retrieval
strategies](https://github.com/langchain-ai/langchain-elastic/pull/22)

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-06-20 13:52:15 -07:00
Erick Friis
78b58d736f docs: resolve local links script escape (#21840)
Fixing warnings. Needs to be propagated to 0.1 branch if this works.

![Screenshot 2024-05-17 at 2 34
15 PM](https://github.com/langchain-ai/langchain/assets/9557659/e6ac95a9-5686-4747-9ab8-4cb49942dc8d)
2024-06-20 13:52:14 -07:00
Erick Friis
d9ed03384a docs: remove postgres from docs build (#21847) 2024-06-20 13:52:14 -07:00
Erick Friis
d9c3b6550c docs: fix vercel core dep 2 (#21839) 2024-06-20 13:52:14 -07:00
Erick Friis
fa844fb82e docs: fix vercel core dep (#21837) 2024-06-20 13:52:14 -07:00
Eugene Yurtsev
bb5b6e1bbc docs: how to guide tool calling using prompts (#21827)
Update tool calling using prompts.

- Add required concepts
- Update names of tool invoking function.
- Add doc-string to function, and add information about `config` (which
users often forget)
- Remove steps that show how to use single function only. This makes the
how-to guide a bit shorter and more to the point.
- Add diagram from another how-to guide that shows how the thing works
overall.
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
2359fdab1a docs: update how-to for built in tools and toolkits (#21828)
Fix some typos
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
6c68d2553a docs: clean up link to bing search (#21825)
Documentation should be inlined, not linking to medium article.
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
59f0a1aeaf docs: how to tools, merge built in tools and toolkits (#21824)
* Rename tools to built in tools
* Merge built in tools and toolkits
* Update links from providers
2024-06-20 13:52:14 -07:00
Leonid Ganeline
1cd075c68d docs: arXiv references page (#21450)
Since the LangChain based on many research papers, the LC documentation
has several references to the arXiv papers. It would be beneficial to
create a single page with all referenced papers.
PR:
1. Developed code to search the arXiv references in the LangChain
Documentation and the LangChain code base. Those references are included
in a newly generated documentation page.
2. Page is linked to the Docs menu.

Controversial:
1. The `arxiv_references` page is automatically generated. But this
generation now started only manually. It is not included in the doc
generation scripts. The reason for this is simple. I don't want to
mangle into the current documentation refactoring. If you think, we need
to regenerate this page in each build, let me know. Note: This script
has a dependency on the `arxiv` package.
2. The link for this page in the menu is not obvious.

---------

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
d57d9cd3b4 docs: Remove duplicated content from how to tools (#21821)
Content is duplicated, and is covered in how to use chat models.
2024-06-20 13:52:14 -07:00
Matthew Koski
4be52757db langchain: Fixing import in docs per https://github.com/langchain-ai/langchain/issues/21814 (#21815)
Description: The example in the How-To guide had an import which did not
work. I changed it to use an import from langchain_core.

Issue: https://github.com/langchain-ai/langchain/issues/21814
2024-06-20 13:52:14 -07:00
Jorge Piedrahita Ortiz
a90ddd23f9 community: sambaverse api update (#21816)
- **Description:** fix sambaverse integration to make it compatible with
sambaverse API update / minor changes in docs
2024-06-20 13:52:14 -07:00
Erick Friis
408c4b802c docs: cookbook redirect (#21822) 2024-06-20 13:52:14 -07:00
Eugene Yurtsev
50f00434bf docs: minor updates to migration docs (#21819)
Minor aesthetic updates to migration docs
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
230bc67542 docs: Update v0.2 information (#21796)
Update information about v0.2 upgrade
2024-06-20 13:52:14 -07:00
Erick Friis
88740b64dc docs: version dropdown (#21784) 2024-06-20 13:52:14 -07:00
Chad Juliano
c9e8d851dc docs: fix errors and table formatting in notebook (#21696)
There are 2 issues fixed here:

* In the notebook pandas dataframes are formatted as HTML in the cells.
On the documentation site the renderer that converts notebooks
incorrectly displays the raw HTML. I can't find any examples of where
this is working and so I am formatting the dataframes as text.

* Some incorrect table names were referenced resulting in errors.
2024-06-20 13:52:14 -07:00
Asaf Joseph Gardin
78ea3fc025 partners: Revert AI21 Labs docs scan feature (#21699)
Description: Reverted commit #21614

---------

Co-authored-by: Asaf Gardin <asafg@ai21.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-06-20 13:52:14 -07:00
github-user-en
7a829a2bb8 Made a grammatical correction in streaming.ipynb (#21707)
The only change is replacing the word "operators" with "operates," to
make the sentence grammatically correct.

Thank you for contributing to LangChain!

- [x] **PR title**: "docs: Made a grammatical correction in
streaming.ipynb to use the word "operates" instead of the word
"operators""


- [x] **PR message**: 
- **Description:** The use of the word "operators" was incorrect, given
the context and grammar of the sentence. This PR updates the
documentation to use the word "operates" instead of the word
"operators".
    - **Issue:** Makes the documentation more easily understandable.
    - **Dependencies:** -no dependencies-
    - **Twitter handle:** --


- [x] **Add tests and docs**: Since no new integration is being made, no
new tests/example notebooks are required.


- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/
    - **No formatting changes made to the documentation**

Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.

If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
2024-06-20 13:52:14 -07:00
Brace Sproul
4a1f397f02 docs[minor]: Hide prev/next buttons on docs in how to / tutorials (#21789)
These buttons don't navigate to the proper prev/next page. Hide in those
pages
2024-06-20 13:52:14 -07:00
Eugene Yurtsev
daec5e8564 How To: Custom tools (#21725)
- Remove double implementations of functions. The single input is just
taking up space.
- Added tool specific information for `async + showing invoke vs.
ainvoke.
- Added more general information about about `async` (this should live
in a different place eventually since it's not specific to tools).
- Changed ordering of custom tools (StructuredTool is simpler and should
appear before the inheritance)
- Improved the error handling section (not convinced it should be here
though)
2024-06-20 13:52:14 -07:00
Bagatur
2764e0aa90 docs: link runnable api (#21783) 2024-06-20 13:52:14 -07:00
Bagatur
cd5a1f8371 docs: intro nit (#21785) 2024-06-20 13:52:14 -07:00
Bagatur
15e7ae00e2 docs: update chat feat table (#21778) 2024-06-20 13:52:14 -07:00
Erick Friis
2a631826a5 docs: dont rewrite ipynb links that have double slash (#21775) 2024-06-20 13:52:14 -07:00
Eugene Yurtsev
728507ba76 docs: concepts -- add information about tool calling models, update tools section (#21760)
- Add information about naitve tool calling capabilities
- Add information about standard langchain interface for tool calling
- Update description for tools

---------

Co-authored-by: ccurme <chester.curme@gmail.com>
2024-06-20 13:52:14 -07:00
Bagatur
092340f61d anthropic[patch]: Release 0.1.13, tool_choice support (#21773) 2024-06-20 13:52:14 -07:00
Stefano Lottini
63108ebe25 community: init signature revision for Cassandra LLM cache classes + small maintenance (#17765)
This PR improves on the `CassandraCache` and `CassandraSemanticCache`
classes, mainly in the constructor signature, and also introduces
several minor improvements around these classes.

### Init signature

A (sigh) breaking change is tentatively introduced to the constructor.
To me, the advantages outweigh the possible discomfort: the new syntax
places the DB-connection objects `session` and `keyspace` later in the
param list, so that they can be given a default value. This is what
enables the pattern of _not_ specifying them, provided one has
previously initialized the Cassandra connection through the versatile
utility method `cassio.init(...)`.

In this way, a much less unwieldy instantiation can be done, such as
`CassandraCache()` and `CassandraSemanticCache(embedding=xyz)`,
everything else falling back to defaults.

A downside is that, compared to the earlier signature, this might turn
out to be breaking for those doing positional instantiation. As a way to
mitigate this problem, this PR typechecks its first argument trying to
detect the legacy usage.
(And to make this point less tricky in the future, most arguments are
left to be keyword-only).

If this is considered too harsh, I'd like guidance on how to further
smoothen this transition. **Our plan is to make the pattern of optional
session/keyspace a standard across all Cassandra classes**, so that a
repeatable strategy would be ideal. A possibility would be to keep
positional arguments for legacy reasons but issue a deprecation warning
if any of them is actually used, to later remove them with 0.2 - please
advise on this point.

### Other changes

- class docstrings: enriched, completely moved to class level, added
note on `cassio.init(...)` pattern, added tiny sample usage code.
- semantic cache: revised terminology to never mention "distance" (it is
in fact a similarity!). Kept the legacy constructor param with a
deprecation warning if used.
- `llm_caching` notebook: uniform flow with the Cassandra and Astra DB
separate cases; better and Cassandra-first description; all imports made
explicit and from community where appropriate.
- cache integration tests moved to community (incl. the imported tools),
env var bugfix for `CASSANDRA_CONTACT_POINTS`.

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-06-20 13:52:14 -07:00
fzowl
ef7353a138 docs: new voyageai text_embeddings model: voyage-large-2-instruct (#21706) 2024-06-20 13:52:14 -07:00
Bagatur
f087bcd0be docs: datacamp course (#21767) 2024-06-20 13:52:13 -07:00
Ethan Yang
23647b44e0 community: update openvino doc with streaming support (#21519)
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-06-20 13:52:13 -07:00
Eugene Yurtsev
f01b9225b6 How to: Streaming (#21715)
Update the how to guide on streaming

---------

Co-authored-by: ccurme <chester.curme@gmail.com>
2024-06-20 13:52:13 -07:00
Michael Ozery
e1cf4225de docs: sql_qa.ipynb tutorial update (#21756)
1. Updated deprecated method usage.
2. Added LangGraph required installation in tutorial.

X: MichaelOzery
2024-06-20 13:52:13 -07:00
Mish Ushakov
54a56b91a1 community: updated Browserbase loader (#21757)
Thank you for contributing to LangChain!

- [x] **PR title**: "community: updated Browserbase loader"

- [x] **PR message**:
    Updates the Browserbase loader with more options and improved docs.

- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/
2024-06-20 13:52:13 -07:00
Ikko Eltociear Ashimine
b229468836 docs: update sql_large_db.ipynb (#21765)
mispelling -> misspelling
2024-06-20 13:52:13 -07:00