Eugene Yurtsev
b47148bbed
how to: Update streaming LLM information ( #21381 )
...
Update information in streaming llm how-to.
This is mirroring the changes in how to stream chat models.
2024-05-07 14:40:13 -04:00
Eugene Yurtsev
a27cab6af0
how to: stream chat models ( #21380 )
...
- paraphrase overview
- add links to api reference
- show astream and astream event
- update to partner package model
2024-05-07 11:10:36 -04:00
ccurme
da48378ade
(new docs): fix links ( #21348 )
2024-05-06 18:25:42 -04:00
ccurme
4792f0575c
(new docs): fix links ( #21345 )
2024-05-06 17:52:54 -04:00
Eugene Yurtsev
5d5492ebb4
Fix formatting of bullet points in Conversational RAG ( #21341 )
...
Need extra \n to get it to render the bullet points.
2024-05-06 17:03:34 -04:00
Eugene Yurtsev
2275f05775
RAG: A few formatting fixes ( #21340 )
...
Formatting fixes for bullet points. Add missing whitespace.
2024-05-06 17:03:18 -04:00
Chester Curme
50e34f1bdf
add link
2024-05-06 16:35:38 -04:00
ccurme
c44287ebfe
(new docs): update sidebars ( #21329 )
2024-05-06 16:09:40 -04:00
ccurme
58e91eaca9
(new docs): update SQL how-tos ( #21325 )
2024-05-06 13:41:15 -04:00
Harrison Chase
dc2491eb58
cr
2024-05-06 08:38:03 -07:00
Harrison Chase
02e86d5c9a
cr
2024-05-06 08:19:35 -07:00
Harrison Chase
716a8c8ad7
cr
2024-05-06 08:13:36 -07:00
ccurme
93544443ea
(new docs): fix build and resolve feedback ( #21253 )
2024-05-03 11:17:48 -04:00
ccurme
e894559fed
(new docs) update links ( #21228 )
...
Done with a script + manual review:
1. Map unique file names to new paths;
2. Where those file names have old links, update them.
2024-05-03 10:28:12 -04:00
ccurme
507fa9439b
(new docs): format ( #21226 )
2024-05-02 17:46:58 -04:00
ccurme
d5b89f3a4f
(new docs): add agents to sidebar ( #21221 )
2024-05-02 17:26:23 -04:00
ccurme
b8bd9edb2f
(new docs): update extraction how-to guides ( #21195 )
2024-05-02 16:27:16 -04:00
ccurme
8987aaf8b7
(new docs): fix ( #21217 )
...
Builds broken by
a70459f54f
2024-05-02 16:00:33 -04:00
Harrison Chase
a70459f54f
cr
2024-05-01 16:24:47 -07:00
Harrison Chase
0522e9def3
cr
2024-05-01 16:07:43 -07:00
Harrison Chase
cf866efb78
Merge branch 'harrison/new-docs' of github.com:hwchase17/langchain into harrison/new-docs
2024-05-01 16:07:31 -07:00
Harrison Chase
8e8a03d61b
cr
2024-05-01 16:07:24 -07:00
ccurme
c77debf870
(new docs): update rag use-case docs ( #21164 )
2024-05-01 16:25:14 -04:00
ccurme
6a20856fab
(new docs): embedding how-to guides ( #21106 )
2024-04-30 14:49:06 -04:00
Chester Curme
7f4397c94a
format
2024-04-30 12:44:14 -04:00
Chester Curme
7285370328
update tutorial
2024-04-30 12:43:54 -04:00
ccurme
df8a2cdc96
(new docs): update text splitter how-to guides ( #21087 )
2024-04-30 11:34:42 -04:00
ccurme
c3b7933d98
(new docs): update how-to guides ( #21073 )
2024-04-30 08:21:09 -04:00
Harrison Chase
8a0e71d27b
Merge branch 'master' into harrison/new-docs
2024-04-29 16:30:10 -07:00
Harrison Chase
86bb3aa45b
Merge branch 'harrison/new-docs' of github.com:hwchase17/langchain into harrison/new-docs
2024-04-29 16:29:52 -07:00
Harrison Chase
55dd2ea57d
cr
2024-04-29 16:29:47 -07:00
ccurme
bc4bb49451
(new docs): remove agents from sidebar ( #21046 )
2024-04-29 19:18:08 -04:00
ccurme
392b842a59
(new docs): organize how-to sidebars ( #21029 )
...
```python
import json
import re
from pathlib import Path
def parse_markdown_to_sidebar(markdown_content):
lines = markdown_content.splitlines()
sidebar = []
current_category = None
current_subcategory = None
for line in lines:
if line.startswith('### '):
# Subcategory
if current_subcategory is not None:
current_category['items'].append(current_subcategory)
subcategory_title = line.strip('# ').strip()
current_subcategory = {
"type": "category",
"label": subcategory_title,
"collapsed": True,
"items": [],
"link": {"type": "generated-index"}
}
elif line.startswith('## '):
# Category
if current_category is not None:
if current_subcategory is not None:
current_category['items'].append(current_subcategory)
current_subcategory = None
sidebar.append(current_category)
category_title = line.strip('# ').strip()
current_category = {
"type": "category",
"label": category_title,
"collapsed": True,
"items": [],
"link": {"type": "generated-index"}
}
elif line.startswith('- ['):
# Link
match = re.match(r'- \[(.*?)\]\((.*?)\)', line)
if match:
title, link = match.groups()
link = link.replace('/docs/', '') # Remove '/docs/' prefix
if current_subcategory is not None:
current_subcategory['items'].append(link)
elif current_category is not None:
current_category['items'].append(link)
# Add the last category and subcategory if they exist
if current_subcategory is not None:
current_category['items'].append(current_subcategory)
if current_category is not None:
sidebar.append(current_category)
return sidebar
def generate_sidebar_json(file_path):
with open(file_path, 'r') as md_file:
markdown_content = md_file.read()
sidebar = parse_markdown_to_sidebar(markdown_content)
sidebar_json = json.dumps({"items": sidebar}, indent=2)
return sidebar_json
```
2024-04-29 19:00:06 -04:00
Harrison Chase
e037446ca3
cr
2024-04-29 15:40:00 -07:00
Harrison Chase
8920bcd263
Merge branch 'harrison/new-docs' of github.com:hwchase17/langchain into harrison/new-docs
2024-04-29 15:39:55 -07:00
Harrison Chase
81a7868c57
cr
2024-04-29 15:39:50 -07:00
Rahul Triptahi
c172611647
community[patch]: Add classifier_url argument in PebbloSafeLoader and documentation update. ( #21030 )
...
Description: Add classifier_url argument in PebbloSafeLoader.
Documentation: Updated PebbloSafeLoader documentation with above change
and new links for pebblo github pages.
---------
Signed-off-by: Rahul Tripathi <rauhl.psit.ec@gmail.com >
Co-authored-by: Rahul Tripathi <rauhl.psit.ec@gmail.com >
2024-04-29 17:41:09 -04:00
Leonid Ganeline
08d08d7c83
docs: langchain docstrings updates ( #21032 )
...
Added missed docstings. Formatted docstrings into a consistent format.
2024-04-29 17:40:44 -04:00
Leonid Ganeline
85094cbb3a
docs: community docstring updates ( #21040 )
...
Added missed docstrings. Updated docstrings to consistent format.
2024-04-29 17:40:23 -04:00
Rodrigo Nogueira
90f19028e5
community[patch]: Add maritalk streaming (sync and async) ( #19203 )
...
Co-authored-by: RosevalJr <rdmalajr@gmail.com >
Co-authored-by: Roseval Donisete Malaquias Junior <roseval@maritaca.ai >
2024-04-29 21:31:14 +00:00
Cahid Arda Öz
cc6191cb90
community[minor]: Add support for Upstash Vector ( #20824 )
...
## Description
Adding `UpstashVectorStore` to utilize [Upstash
Vector](https://upstash.com/docs/vector/overall/getstarted )!
#17012 was opened to add Upstash Vector to langchain but was closed to
wait for filtering. Now filtering is added to Upstash vector and we open
a new PR. Additionally, [embedding
feature](https://upstash.com/docs/vector/features/embeddingmodels ) was
added and we add this to our vectorstore aswell.
## Dependencies
[upstash-vector](https://pypi.org/project/upstash-vector/ ) should be
installed to use `UpstashVectorStore`. Didn't update dependencies
because of [this comment in the previous
PR](https://github.com/langchain-ai/langchain/pull/17012#pullrequestreview-1876522450 ).
## Tests
Tests are added and they pass. Tests are naturally network bound since
Upstash Vector is offered through an API.
There was [a discussion in the previous PR about mocking the
unittests](https://github.com/langchain-ai/langchain/pull/17012#pullrequestreview-1891820567 ).
We didn't make changes to this end yet. We can update the tests if you
can explain how the tests should be mocked.
---------
Co-authored-by: ytkimirti <yusuftaha9@gmail.com >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
Co-authored-by: Bagatur <baskaryan@gmail.com >
2024-04-29 17:25:01 -04:00
ccurme
d99a7a6b44
(new docs): update how-to guides ( #21039 )
2024-04-29 16:27:58 -04:00
Leonid Ganeline
1a2ff56cd8
core[patch[: docstring update ( #21036 )
...
Added missed docstrings. Updated docstrings to consistent format.
2024-04-29 15:35:34 -04:00
Eugene Yurtsev
f479a337cc
langchain[patch]: replace deprecated imports with imports from langchain_core ( #21033 )
...
* Output of running the migration script.
* Ran only against langchain code itself and not the unit tests.
2024-04-29 15:34:31 -04:00
Eugene Yurtsev
82d4afcac0
langchain[minor]: Code to handle dynamic imports ( #20893 )
...
Proposing to centralize code for handling dynamic imports. This allows treating langchain-community as an optional dependency.
---
The proposal is to scan the code base and to replace all existing imports with dynamic imports using this functionality.
2024-04-29 15:34:03 -04:00
Erick Friis
854ae3e1de
mistralai: release 0.1.5, allow client passing in ( #21034 )
2024-04-29 17:14:26 +00:00
chyroc
3e241956d3
community[minor]: add coze chat model ( #20770 )
...
add coze chat model, to call coze.com apis
2024-04-29 12:26:16 -04:00
Eugene Yurtsev
29493bb598
cli[minor]: improve confirmation message with more details ( #21027 )
...
Improve confirmation message with more details
2024-04-29 12:20:42 -04:00
Eugene Yurtsev
aab78a37f3
cli[patch]: Ignore imports that change the name of the class ( #21026 )
...
Not currently handeled by migration script
2024-04-29 12:20:30 -04:00
Massimiliano Pronesti
ce89b34fc0
community[patch]: support hybrid search with threshold in Azure AI Search Retriever ( #20907 )
...
Support hybrid search with a score threshold -- similar to what we do
for similarity search.
2024-04-29 12:11:44 -04:00