url
stringlengths 63
64
| repository_url
stringclasses 1
value | labels_url
stringlengths 77
78
| comments_url
stringlengths 72
73
| events_url
stringlengths 70
71
| html_url
stringlengths 51
54
| id
int64 1.73B
2.09B
| node_id
stringlengths 18
19
| number
int64 5.23k
16.2k
| title
stringlengths 1
385
| user
dict | labels
list | state
stringclasses 2
values | locked
bool 2
classes | assignee
dict | assignees
list | milestone
null | comments
int64 0
56
| created_at
timestamp[s] | updated_at
timestamp[s] | closed_at
timestamp[s] | author_association
stringclasses 3
values | active_lock_reason
null | body
stringlengths 1
55.4k
⌀ | reactions
dict | timeline_url
stringlengths 72
73
| performed_via_github_app
null | state_reason
stringclasses 3
values | draft
bool 2
classes | pull_request
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/langchain-ai/langchain/issues/9593
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9593/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9593/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9593/events
|
https://github.com/langchain-ai/langchain/issues/9593
| 1,861,049,462 |
I_kwDOIPDwls5u7Vx2
| 9,593 |
Allow specifying dtype in `langchain.llms.VLLM`
|
{
"login": "gabrielfu",
"id": 22888849,
"node_id": "MDQ6VXNlcjIyODg4ODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/22888849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gabrielfu",
"html_url": "https://github.com/gabrielfu",
"followers_url": "https://api.github.com/users/gabrielfu/followers",
"following_url": "https://api.github.com/users/gabrielfu/following{/other_user}",
"gists_url": "https://api.github.com/users/gabrielfu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gabrielfu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gabrielfu/subscriptions",
"organizations_url": "https://api.github.com/users/gabrielfu/orgs",
"repos_url": "https://api.github.com/users/gabrielfu/repos",
"events_url": "https://api.github.com/users/gabrielfu/events{/privacy}",
"received_events_url": "https://api.github.com/users/gabrielfu/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-22T09:33:12 | 2023-08-23T03:30:28 | 2023-08-23T03:30:28 |
CONTRIBUTOR
| null |
### Feature request
Add option to specify dtype (e.g. `float16`) in `langchain.llms.VLLM()` constructor,
### Motivation
Currently, `vllm` library provides an argument to use `float16` dtype, but langchain doesn't.
There is no way to use langchain VLLM with a GPU < 8.0 compute capability.


### Your contribution
I can contribute with guideline from langchain team
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9593/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9593/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9589
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9589/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9589/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9589/events
|
https://github.com/langchain-ai/langchain/pull/9589
| 1,860,851,556 |
PR_kwDOIPDwls5Yd0bN
| 9,589 |
Merge from original langchain
|
{
"login": "Rai220",
"id": 1329774,
"node_id": "MDQ6VXNlcjEzMjk3NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1329774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rai220",
"html_url": "https://github.com/Rai220",
"followers_url": "https://api.github.com/users/Rai220/followers",
"following_url": "https://api.github.com/users/Rai220/following{/other_user}",
"gists_url": "https://api.github.com/users/Rai220/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rai220/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rai220/subscriptions",
"organizations_url": "https://api.github.com/users/Rai220/orgs",
"repos_url": "https://api.github.com/users/Rai220/repos",
"events_url": "https://api.github.com/users/Rai220/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rai220/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700892,
"node_id": "LA_kwDOIPDwls8AAAABUpid3A",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:refactor",
"name": "auto:refactor",
"color": "D4C5F9",
"default": false,
"description": "A large refactor of a feature(s) or restructuring of many files"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-22T08:00:51 | 2023-08-22T08:11:07 | 2023-08-22T08:01:33 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9589/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9589/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9589",
"html_url": "https://github.com/langchain-ai/langchain/pull/9589",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9589.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9589.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9588
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9588/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9588/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9588/events
|
https://github.com/langchain-ai/langchain/pull/9588
| 1,860,810,521 |
PR_kwDOIPDwls5YdrYr
| 9,588 |
Replacing Exception type from ValueError to ImportError
|
{
"login": "ShorthillsAI",
"id": 141953346,
"node_id": "U_kgDOCHYJQg",
"avatar_url": "https://avatars.githubusercontent.com/u/141953346?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ShorthillsAI",
"html_url": "https://github.com/ShorthillsAI",
"followers_url": "https://api.github.com/users/ShorthillsAI/followers",
"following_url": "https://api.github.com/users/ShorthillsAI/following{/other_user}",
"gists_url": "https://api.github.com/users/ShorthillsAI/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ShorthillsAI/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShorthillsAI/subscriptions",
"organizations_url": "https://api.github.com/users/ShorthillsAI/orgs",
"repos_url": "https://api.github.com/users/ShorthillsAI/repos",
"events_url": "https://api.github.com/users/ShorthillsAI/events{/privacy}",
"received_events_url": "https://api.github.com/users/ShorthillsAI/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T07:40:55 | 2023-08-22T14:34:06 | 2023-08-22T14:34:06 |
CONTRIBUTOR
| null |
I have restructured the code to ensure uniform handling of ImportError. In place of previously used ValueError, I've adopted the standard practice of raising ImportError with explanatory messages. This modification enhances code readability and clarifies that any problems stem from module importation.
@eyurtsev , @baskaryan
Thanks
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9588/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9588/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9588",
"html_url": "https://github.com/langchain-ai/langchain/pull/9588",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9588.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9588.patch",
"merged_at": "2023-08-22T14:34:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9587
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9587/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9587/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9587/events
|
https://github.com/langchain-ai/langchain/issues/9587
| 1,860,801,274 |
I_kwDOIPDwls5u6ZL6
| 9,587 |
Regression: Additional arguments in TransformChain subclass no longer work
|
{
"login": "efremidze",
"id": 2286277,
"node_id": "MDQ6VXNlcjIyODYyNzc=",
"avatar_url": "https://avatars.githubusercontent.com/u/2286277?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efremidze",
"html_url": "https://github.com/efremidze",
"followers_url": "https://api.github.com/users/efremidze/followers",
"following_url": "https://api.github.com/users/efremidze/following{/other_user}",
"gists_url": "https://api.github.com/users/efremidze/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efremidze/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efremidze/subscriptions",
"organizations_url": "https://api.github.com/users/efremidze/orgs",
"repos_url": "https://api.github.com/users/efremidze/repos",
"events_url": "https://api.github.com/users/efremidze/events{/privacy}",
"received_events_url": "https://api.github.com/users/efremidze/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T07:34:56 | 2023-11-28T16:07:50 | 2023-11-28T16:07:49 |
NONE
| null |
### System Info
LangChain Version: 0.0.260
Python Version: 3.11.4
Operating System: ubuntu-22.04
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
After updating from version 0.0.256 to 0.0.260, I noticed that the TransformChain subclass which used to accept additional arguments (memory) no longer works. This regression might be related to changes made in [Pull Request #8762](https://github.com/langchain-ai/langchain/pull/8762).
### Relevant Code:
Here's a snippet of the MySubclassedTransformChain:
```python
class MySubclassedTransformChain(TransformChain):
memory: BaseChatMemory
def _call(
self,
inputs: Dict[str, str],
run_manager: Optional[CallbackManagerForChainRun] = None,
) -> Dict[str, str]:
return self.transform(inputs, memory=self.memory)
async def _acall(
self,
inputs: Dict[str, Any],
run_manager: Optional[AsyncCallbackManagerForChainRun] = None,
) -> Dict[str, Any]:
if self.atransform is not None:
return await self.atransform(inputs, memory=self.memory)
else:
self._log_once(
"TransformChain's atransform is not provided, falling"
" back to synchronous transform"
)
return self.transform(inputs, memory=self.memory)
```
Usage:
```
transform_chain = MySubclassedTransformChain(input_variables=["input"], output_variables=["output"], transform=transform_func, memory=memory)
llm_chain = LLMChain(llm=llm, prompt=prompt, memory=memory)
sequential_chain = SimpleSequentialChain(chains=[transform_chain, llm_chain])
sequential_chain.run(message)
```
Exception Stack Trace:
```
app-1 | ERROR: Exception in ASGI application
app-1 | Traceback (most recent call last):
app-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
app-1 | result = await app( # type: ignore[func-returns-value]
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
app-1 | return await self.app(scope, receive, send)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 289, in __call__
app-1 | await super().__call__(scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 348, in _sentry_patched_asgi_app
app-1 | return await middleware(scope, receive, send)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 141, in _run_asgi3
app-1 | return await self._run_app(scope, lambda: self.app(scope, receive, send))
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 190, in _run_app
app-1 | raise exc from None
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/asgi.py", line 185, in _run_app
app-1 | return await callback()
app-1 | ^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
app-1 | await self.middleware_stack(scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call
app-1 | return await old_call(app, scope, new_receive, new_send, **kwargs)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
app-1 | raise exc
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
app-1 | await self.app(scope, receive, _send)
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 242, in _sentry_exceptionmiddleware_call
app-1 | await old_call(self, scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call
app-1 | return await old_call(app, scope, new_receive, new_send, **kwargs)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
app-1 | raise exc
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
app-1 | await self.app(scope, receive, sender)
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/starlette.py", line 143, in _create_span_call
app-1 | return await old_call(app, scope, new_receive, new_send, **kwargs)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
app-1 | raise e
app-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
app-1 | await self.app(scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
app-1 | await route.handle(scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
app-1 | await self.app(scope, receive, send)
app-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
app-1 | response = await func(request)
app-1 | ^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/sentry_sdk/integrations/fastapi.py", line 131, in _sentry_app
app-1 | return await old_app(*args, **kwargs)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 273, in app
app-1 | raw_response = await run_endpoint_function(
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
app-1 | return await dependant.call(**values)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/app/app/main.py", line 47, in post_message
app-1 | result = await handle_message(message)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/app/app/message_chain.py", line 20, in handle_message
app-1 | assistant_result = assistant_chain.run(extraction_result, memory=manager.memory)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/app/app/assistant_chain.py", line 63, in run
app-1 | response = sequential_chain.run(message)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 475, in run
app-1 | return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 282, in __call__
app-1 | raise e
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 276, in __call__
app-1 | self._call(inputs, run_manager=run_manager)
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/sequential.py", line 180, in _call
app-1 | _input = chain.run(_input, callbacks=_run_manager.get_child(f"step_{i+1}"))
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 475, in run
app-1 | return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 282, in __call__
app-1 | raise e
app-1 | File "/usr/local/lib/python3.11/site-packages/langchain/chains/base.py", line 276, in __call__
app-1 | self._call(inputs, run_manager=run_manager)
app-1 | File "/app/app/langchain_extensions.py", line 14, in _call
app-1 | return self.transform(inputs, memory=self.memory)
app-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app-1 | TypeError: Runnable.transform() got an unexpected keyword argument 'memory'
```
Transform Function:
```
def transform_func(inputs: dict, memory: BaseChatMemory) -> dict:
text = inputs["text"]
# mutate text with memory
return {"output": text}
```
### Expected behavior
The subclass should handle additional arguments in MySubclassedTransformChain as it did in version 0.0.256.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9587/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9587/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9586
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9586/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9586/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9586/events
|
https://github.com/langchain-ai/langchain/pull/9586
| 1,860,797,419 |
PR_kwDOIPDwls5Ydoi6
| 9,586 |
Update the nlpcloud connector after some changes on the NLP Cloud API
|
{
"login": "juliensalinas",
"id": 22055188,
"node_id": "MDQ6VXNlcjIyMDU1MTg4",
"avatar_url": "https://avatars.githubusercontent.com/u/22055188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juliensalinas",
"html_url": "https://github.com/juliensalinas",
"followers_url": "https://api.github.com/users/juliensalinas/followers",
"following_url": "https://api.github.com/users/juliensalinas/following{/other_user}",
"gists_url": "https://api.github.com/users/juliensalinas/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juliensalinas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juliensalinas/subscriptions",
"organizations_url": "https://api.github.com/users/juliensalinas/orgs",
"repos_url": "https://api.github.com/users/juliensalinas/repos",
"events_url": "https://api.github.com/users/juliensalinas/events{/privacy}",
"received_events_url": "https://api.github.com/users/juliensalinas/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false |
{
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "rlancemartin",
"id": 122662504,
"node_id": "U_kgDOB0-uaA",
"avatar_url": "https://avatars.githubusercontent.com/u/122662504?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rlancemartin",
"html_url": "https://github.com/rlancemartin",
"followers_url": "https://api.github.com/users/rlancemartin/followers",
"following_url": "https://api.github.com/users/rlancemartin/following{/other_user}",
"gists_url": "https://api.github.com/users/rlancemartin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rlancemartin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rlancemartin/subscriptions",
"organizations_url": "https://api.github.com/users/rlancemartin/orgs",
"repos_url": "https://api.github.com/users/rlancemartin/repos",
"events_url": "https://api.github.com/users/rlancemartin/events{/privacy}",
"received_events_url": "https://api.github.com/users/rlancemartin/received_events",
"type": "User",
"site_admin": false
}
] | null | 2 | 2023-08-22T07:32:25 | 2023-08-23T18:35:09 | 2023-08-23T18:35:08 |
CONTRIBUTOR
| null |
- Description: remove some text generation deprecated parameters and update the embeddings doc,
- Tag maintainer: @rlancemartin
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9586/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9586/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9586",
"html_url": "https://github.com/langchain-ai/langchain/pull/9586",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9586.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9586.patch",
"merged_at": "2023-08-23T18:35:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9585
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9585/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9585/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9585/events
|
https://github.com/langchain-ai/langchain/issues/9585
| 1,860,784,286 |
I_kwDOIPDwls5u6VCe
| 9,585 |
Direct initial redis database can't successfully use searching function since index missing
|
{
"login": "r1407p",
"id": 91712762,
"node_id": "U_kgDOBXds-g",
"avatar_url": "https://avatars.githubusercontent.com/u/91712762?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/r1407p",
"html_url": "https://github.com/r1407p",
"followers_url": "https://api.github.com/users/r1407p/followers",
"following_url": "https://api.github.com/users/r1407p/following{/other_user}",
"gists_url": "https://api.github.com/users/r1407p/gists{/gist_id}",
"starred_url": "https://api.github.com/users/r1407p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/r1407p/subscriptions",
"organizations_url": "https://api.github.com/users/r1407p/orgs",
"repos_url": "https://api.github.com/users/r1407p/repos",
"events_url": "https://api.github.com/users/r1407p/events{/privacy}",
"received_events_url": "https://api.github.com/users/r1407p/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 5 | 2023-08-22T07:24:40 | 2023-10-17T22:23:20 | null |
NONE
| null |
### System Info
langchain version: 0.0.267
### Who can help?
@hwchase17
@eyurtsev
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
# Redis vector database initialization
<p>
embeddings = OpenAIEmbeddings(openai_api_key=os.getenv("OPENAI_API_TYPE"), <br/>
deployment=os.getenv("OPENAI_EMBEDDING_MODEL_NAME"), <br/>
client="azure", <br/>
chunk_size=1)<br/>
redis_vector_db = Redis(<br/>
redis_url="redis://localhost:6379", <br/>
index_name="test_1", <br/>
embedding_function=embedding.embed_query<br/>
)
</p>
# Load pdf
loader = PyPDFLoader( file_path)
docs= loader.load_and_split()
redis_vector_db.add_documents(docs, index_name = "test_1")
# Searching --> bug here
docs = redis_vector_db.similarity_search(query = question,k = 4)
-------------------------- This is the end of python script ---------------------------------------
### Expected behavior
# Bug: Even though we have set the index name it will have bug of no such index
File [c:\Users\User\anaconda3\envs\advantech\lib\site-packages\langchain\vectorstores\redis.py:284](file:///C:/Users/User/anaconda3/envs/advantech/lib/site-packages/langchain/vectorstores/redis.py:284), in Redis.similarity_search(self, query, k, **kwargs)
271 def similarity_search(
272 self, query: str, k: int = 4, **kwargs: Any
273 ) -> List[Document]:
274 """
275 Returns the most similar indexed documents to the query text.
276
(...)
282 List[Document]: A list of documents that are most similar to the query text.
283 """
--> 284 docs_and_scores = self.similarity_search_with_score(query, k=k)
285 return [doc for doc, _ in docs_and_scores]
File [c:\Users\User\anaconda3\envs\advantech\lib\site-packages\langchain\vectorstores\redis.py:361](file:///C:/Users/User/anaconda3/envs/advantech/lib/site-packages/langchain/vectorstores/redis.py:361), in Redis.similarity_search_with_score(self, query, k)
354 params_dict: Mapping[str, str] = {
355 "vector": np.array(embedding) # type: ignore
...
904 if isinstance(response, ResponseError):
--> 905 raise response
906 return response
ResponseError: test_1: no such index
# My observation
print(redis_vector_db.index_name)
will show test_1
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9585/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9585/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9584
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9584/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9584/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9584/events
|
https://github.com/langchain-ai/langchain/pull/9584
| 1,860,740,197 |
PR_kwDOIPDwls5YdcC1
| 9,584 |
import tqdm.auto instead of tqdm tqdm for OpenAIEmbeddings
|
{
"login": "amicus-veritatis",
"id": 81076998,
"node_id": "MDQ6VXNlcjgxMDc2OTk4",
"avatar_url": "https://avatars.githubusercontent.com/u/81076998?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amicus-veritatis",
"html_url": "https://github.com/amicus-veritatis",
"followers_url": "https://api.github.com/users/amicus-veritatis/followers",
"following_url": "https://api.github.com/users/amicus-veritatis/following{/other_user}",
"gists_url": "https://api.github.com/users/amicus-veritatis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amicus-veritatis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amicus-veritatis/subscriptions",
"organizations_url": "https://api.github.com/users/amicus-veritatis/orgs",
"repos_url": "https://api.github.com/users/amicus-veritatis/repos",
"events_url": "https://api.github.com/users/amicus-veritatis/events{/privacy}",
"received_events_url": "https://api.github.com/users/amicus-veritatis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T06:59:49 | 2023-08-22T18:54:08 | 2023-08-22T18:54:08 |
CONTRIBUTOR
| null |
- Description: current code does not work very well on jupyter notebook, so I changed the code so that it imports `tqdm.auto` instead.
- Issue: #9582
- Dependencies: N/A
- Tag maintainer: @hwchase17, @baskaryan
- Twitter handle: N/A
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9584/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9584/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9584",
"html_url": "https://github.com/langchain-ai/langchain/pull/9584",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9584.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9584.patch",
"merged_at": "2023-08-22T18:54:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9583
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9583/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9583/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9583/events
|
https://github.com/langchain-ai/langchain/pull/9583
| 1,860,736,794 |
PR_kwDOIPDwls5YdbUY
| 9,583 |
Adds transform and atransform support to runnable sequences
|
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-22T06:57:31 | 2023-09-15T15:58:25 | 2023-09-15T15:58:24 |
CONTRIBUTOR
| null |
Allow runnable sequences to support transform if each individual runnable inside supports transform/atransform.
@nfcampos
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9583/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9583/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9583",
"html_url": "https://github.com/langchain-ai/langchain/pull/9583",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9583.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9583.patch",
"merged_at": "2023-09-15T15:58:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9582
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9582/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9582/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9582/events
|
https://github.com/langchain-ai/langchain/issues/9582
| 1,860,735,901 |
I_kwDOIPDwls5u6JOd
| 9,582 |
Replace `tqdm` with `tqdm.auto`
|
{
"login": "amicus-veritatis",
"id": 81076998,
"node_id": "MDQ6VXNlcjgxMDc2OTk4",
"avatar_url": "https://avatars.githubusercontent.com/u/81076998?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/amicus-veritatis",
"html_url": "https://github.com/amicus-veritatis",
"followers_url": "https://api.github.com/users/amicus-veritatis/followers",
"following_url": "https://api.github.com/users/amicus-veritatis/following{/other_user}",
"gists_url": "https://api.github.com/users/amicus-veritatis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/amicus-veritatis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/amicus-veritatis/subscriptions",
"organizations_url": "https://api.github.com/users/amicus-veritatis/orgs",
"repos_url": "https://api.github.com/users/amicus-veritatis/repos",
"events_url": "https://api.github.com/users/amicus-veritatis/events{/privacy}",
"received_events_url": "https://api.github.com/users/amicus-veritatis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T06:56:51 | 2023-08-23T00:41:43 | 2023-08-23T00:41:42 |
CONTRIBUTOR
| null |
### Feature request
```
if self.show_progress_bar:
try:
import tqdm
_iter = tqdm.tqdm(range(0, len(tokens), _chunk_size))
except ImportError:
_iter = range(0, len(tokens), _chunk_size)
```
Current code does not work very well on jupyter notebook, so replace it with `tqdm.auto`
### Motivation
It just does not work very well on jupyter notebook, especially if there's any warning
### Your contribution
I'll make a PR
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9582/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9582/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9581
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9581/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9581/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9581/events
|
https://github.com/langchain-ai/langchain/issues/9581
| 1,860,722,360 |
I_kwDOIPDwls5u6F64
| 9,581 |
make test in experimental crash
|
{
"login": "pprados",
"id": 204694,
"node_id": "MDQ6VXNlcjIwNDY5NA==",
"avatar_url": "https://avatars.githubusercontent.com/u/204694?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pprados",
"html_url": "https://github.com/pprados",
"followers_url": "https://api.github.com/users/pprados/followers",
"following_url": "https://api.github.com/users/pprados/following{/other_user}",
"gists_url": "https://api.github.com/users/pprados/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pprados/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pprados/subscriptions",
"organizations_url": "https://api.github.com/users/pprados/orgs",
"repos_url": "https://api.github.com/users/pprados/repos",
"events_url": "https://api.github.com/users/pprados/events{/privacy}",
"received_events_url": "https://api.github.com/users/pprados/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T06:49:07 | 2023-09-19T08:47:29 | 2023-09-19T08:47:29 |
CONTRIBUTOR
| null |
### System Info
langchain version 0.0.270
### Who can help?
@hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
cd lib/experimental
make test
```
============================================================================= short test summary info =============================================================================
FAILED tests/unit_tests/test_smartllm.py::test_all_steps - IndexError: list index out of range
FAILED tests/unit_tests/test_smartllm.py::test_intermediate_output - IndexError: list index out of range
========== 2 failed, 28 passed, 16 warnings in 4.37s =========
```
### Expected behavior
No error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9581/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9581/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9579
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9579/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9579/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9579/events
|
https://github.com/langchain-ai/langchain/pull/9579
| 1,860,626,011 |
PR_kwDOIPDwls5YdClc
| 9,579 |
Added a pdf parser based on DocAI
|
{
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-22T05:53:11 | 2023-08-25T04:44:49 | 2023-08-25T04:44:49 |
CONTRIBUTOR
| null |
#9578
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9579/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9579/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9579",
"html_url": "https://github.com/langchain-ai/langchain/pull/9579",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9579.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9579.patch",
"merged_at": "2023-08-25T04:44:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9578
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9578/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9578/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9578/events
|
https://github.com/langchain-ai/langchain/issues/9578
| 1,860,625,662 |
I_kwDOIPDwls5u5uT-
| 9,578 |
Add support for DocAI from Google Cloud as a pdf parser
|
{
"login": "lkuligin",
"id": 11026406,
"node_id": "MDQ6VXNlcjExMDI2NDA2",
"avatar_url": "https://avatars.githubusercontent.com/u/11026406?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lkuligin",
"html_url": "https://github.com/lkuligin",
"followers_url": "https://api.github.com/users/lkuligin/followers",
"following_url": "https://api.github.com/users/lkuligin/following{/other_user}",
"gists_url": "https://api.github.com/users/lkuligin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lkuligin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lkuligin/subscriptions",
"organizations_url": "https://api.github.com/users/lkuligin/orgs",
"repos_url": "https://api.github.com/users/lkuligin/repos",
"events_url": "https://api.github.com/users/lkuligin/events{/privacy}",
"received_events_url": "https://api.github.com/users/lkuligin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T05:52:46 | 2023-11-28T16:07:55 | 2023-11-28T16:07:54 |
CONTRIBUTOR
| null |
### Feature request
Add support for DocAI from Google Cloud as a pdf parser
### Motivation
It might be faster for large samples of documents (and maybe better in some cases).
### Your contribution
yep, I'm happy to
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9578/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9578/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9577
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9577/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9577/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9577/events
|
https://github.com/langchain-ai/langchain/pull/9577
| 1,860,602,217 |
PR_kwDOIPDwls5Yc9U3
| 9,577 |
Hub stub updates
|
{
"login": "efriis",
"id": 9557659,
"node_id": "MDQ6VXNlcjk1NTc2NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/9557659?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/efriis",
"html_url": "https://github.com/efriis",
"followers_url": "https://api.github.com/users/efriis/followers",
"following_url": "https://api.github.com/users/efriis/following{/other_user}",
"gists_url": "https://api.github.com/users/efriis/gists{/gist_id}",
"starred_url": "https://api.github.com/users/efriis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/efriis/subscriptions",
"organizations_url": "https://api.github.com/users/efriis/orgs",
"repos_url": "https://api.github.com/users/efriis/repos",
"events_url": "https://api.github.com/users/efriis/events{/privacy}",
"received_events_url": "https://api.github.com/users/efriis/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-22T05:34:12 | 2023-08-22T23:05:42 | 2023-08-22T23:05:41 |
COLLABORATOR
| null |
Updates the hub stubs to not fail when no api key is found. For supporting singleton tenants and default values from sdk 0.1.6.
Also adds the ability to define is_public and description for backup repo creation on push.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9577/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9577/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9577",
"html_url": "https://github.com/langchain-ai/langchain/pull/9577",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9577.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9577.patch",
"merged_at": "2023-08-22T23:05:41"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9576
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9576/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9576/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9576/events
|
https://github.com/langchain-ai/langchain/issues/9576
| 1,860,497,298 |
I_kwDOIPDwls5u5O-S
| 9,576 |
HuggingFaceEndpoint Returns an Empty String
|
{
"login": "kmaurinjones",
"id": 67940001,
"node_id": "MDQ6VXNlcjY3OTQwMDAx",
"avatar_url": "https://avatars.githubusercontent.com/u/67940001?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kmaurinjones",
"html_url": "https://github.com/kmaurinjones",
"followers_url": "https://api.github.com/users/kmaurinjones/followers",
"following_url": "https://api.github.com/users/kmaurinjones/following{/other_user}",
"gists_url": "https://api.github.com/users/kmaurinjones/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kmaurinjones/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kmaurinjones/subscriptions",
"organizations_url": "https://api.github.com/users/kmaurinjones/orgs",
"repos_url": "https://api.github.com/users/kmaurinjones/repos",
"events_url": "https://api.github.com/users/kmaurinjones/events{/privacy}",
"received_events_url": "https://api.github.com/users/kmaurinjones/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T03:52:51 | 2023-11-28T16:08:00 | 2023-11-28T16:07:59 |
NONE
| null |
### System Info
HuggingFaceEndpoint Returns an Empty String both when prompted using ._call() method and when used as an LLM in a QA chain. Examples of what I've tried, below:
```
from langchain.llms import HuggingFaceEndpoint
from langchain.chains.question_answering import load_qa_chain
from langchain.vectorstores import FAISS
from langchain.embeddings import HuggingFaceEmbeddings
### Example 1 -- returns empty string
endpoint_url = (
"my-real-endpoint-here"
)
llm = HuggingFaceEndpoint(
endpoint_url = endpoint_url,
huggingfacehub_api_token = os.environ['HUGGING_FACE_HUB_TOKEN'],
task = 'text2text-generation',
model_kwargs = {'temperature': 1e-20, "max_length": 900},
)
llm._call(prompt = "What is 4 + 4? Think the question through, step by step.")
>>> ""
### Example 2 -- used in QA chain and also returns empty string
### (exact same 'llm' object)
### text splitter
text_splitter = RecursiveCharacterTextSplitter(chunk_size = 1000, chunk_overlap = 15)
### embeddings
embeddings = HuggingFaceEmbeddings()
chain = load_qa_chain(llm, chain_type = "stuff", verbose = False)
def extract_from_case(file_str: str, prompt_question: str):
docs = text_splitter.split_text(file_str)
db = FAISS.from_texts(docs, embeddings)
docs = db.similarity_search(prompt_question)
extraction = chain.run(input_documents = docs, question = prompt_question)
return extraction
sample_file = """Metadata: Date: 2017-01-18 File number: CEL-62600-16 CEL-62600-16 Citation: CEL-62600-16 (Re), 2017, retrieved on 2023-05-16. Content: Arrears Worksheet File Number: CEL-62600-16 Time period for Arrears Owing From: September 1, 2016 to"""
prompt = "What is the file number of this case?"
extract_from_case(file_str = sample_file, prompt_question = prompt)
>>> ""
```
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
See above.
### Expected behavior
To return a non-empty response.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9576/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9576/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9575
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9575/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9575/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9575/events
|
https://github.com/langchain-ai/langchain/issues/9575
| 1,860,477,232 |
I_kwDOIPDwls5u5KEw
| 9,575 |
Additional/Popular chains Page Not Found
|
{
"login": "A1DS19",
"id": 59151555,
"node_id": "MDQ6VXNlcjU5MTUxNTU1",
"avatar_url": "https://avatars.githubusercontent.com/u/59151555?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/A1DS19",
"html_url": "https://github.com/A1DS19",
"followers_url": "https://api.github.com/users/A1DS19/followers",
"following_url": "https://api.github.com/users/A1DS19/following{/other_user}",
"gists_url": "https://api.github.com/users/A1DS19/gists{/gist_id}",
"starred_url": "https://api.github.com/users/A1DS19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/A1DS19/subscriptions",
"organizations_url": "https://api.github.com/users/A1DS19/orgs",
"repos_url": "https://api.github.com/users/A1DS19/repos",
"events_url": "https://api.github.com/users/A1DS19/events{/privacy}",
"received_events_url": "https://api.github.com/users/A1DS19/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T03:24:06 | 2023-11-28T16:08:05 | 2023-11-28T16:08:04 |
NONE
| null |
### Issue with current documentation:
I'm getting this:
Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
When visiting:
- https://python.langchain.com/docs/modules/chains/additional/
- https://python.langchain.com/docs/modules/chains/popular/
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9575/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9575/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9574
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9574/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9574/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9574/events
|
https://github.com/langchain-ai/langchain/pull/9574
| 1,860,410,513 |
PR_kwDOIPDwls5YcT9h
| 9,574 |
bugfix: ArangoDB Empty Schema Case
|
{
"login": "aMahanna",
"id": 43019056,
"node_id": "MDQ6VXNlcjQzMDE5MDU2",
"avatar_url": "https://avatars.githubusercontent.com/u/43019056?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/aMahanna",
"html_url": "https://github.com/aMahanna",
"followers_url": "https://api.github.com/users/aMahanna/followers",
"following_url": "https://api.github.com/users/aMahanna/following{/other_user}",
"gists_url": "https://api.github.com/users/aMahanna/gists{/gist_id}",
"starred_url": "https://api.github.com/users/aMahanna/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aMahanna/subscriptions",
"organizations_url": "https://api.github.com/users/aMahanna/orgs",
"repos_url": "https://api.github.com/users/aMahanna/repos",
"events_url": "https://api.github.com/users/aMahanna/events{/privacy}",
"received_events_url": "https://api.github.com/users/aMahanna/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-22T01:52:11 | 2023-08-22T14:41:07 | 2023-08-22T14:41:06 |
CONTRIBUTOR
| null |
- Introduces a conditional in `ArangoGraph.generate_schema()` to exclude empty ArangoDB Collections from the schema
- Add empty collection test case
Issue: N/A
Dependencies: None
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9574/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9574/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9574",
"html_url": "https://github.com/langchain-ai/langchain/pull/9574",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9574.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9574.patch",
"merged_at": "2023-08-22T14:41:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9573
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9573/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9573/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9573/events
|
https://github.com/langchain-ai/langchain/pull/9573
| 1,860,384,879 |
PR_kwDOIPDwls5YcOuw
| 9,573 |
Remove -E all from installation instructions
|
{
"login": "seamusp",
"id": 22579106,
"node_id": "MDQ6VXNlcjIyNTc5MTA2",
"avatar_url": "https://avatars.githubusercontent.com/u/22579106?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/seamusp",
"html_url": "https://github.com/seamusp",
"followers_url": "https://api.github.com/users/seamusp/followers",
"following_url": "https://api.github.com/users/seamusp/following{/other_user}",
"gists_url": "https://api.github.com/users/seamusp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/seamusp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seamusp/subscriptions",
"organizations_url": "https://api.github.com/users/seamusp/orgs",
"repos_url": "https://api.github.com/users/seamusp/repos",
"events_url": "https://api.github.com/users/seamusp/events{/privacy}",
"received_events_url": "https://api.github.com/users/seamusp/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-22T01:12:29 | 2023-08-22T23:16:27 | 2023-08-22T18:57:58 |
CONTRIBUTOR
| null |
Using poetry install -E all no longer works since [tool.poetry.extras] was removed from pyproject.toml, so I removed it and the blurb explaining it from the installation instructions.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9573/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9573/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9573",
"html_url": "https://github.com/langchain-ai/langchain/pull/9573",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9573.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9573.patch",
"merged_at": "2023-08-22T18:57:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9572
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9572/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9572/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9572/events
|
https://github.com/langchain-ai/langchain/pull/9572
| 1,860,299,635 |
PR_kwDOIPDwls5Yb8Zh
| 9,572 |
rfc: with_fallbacks maintains type
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T23:12:11 | 2023-08-22T14:40:39 | 2023-08-22T14:40:39 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9572/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9572/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9572",
"html_url": "https://github.com/langchain-ai/langchain/pull/9572",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9572.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9572.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9571
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9571/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9571/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9571/events
|
https://github.com/langchain-ai/langchain/pull/9571
| 1,860,277,494 |
PR_kwDOIPDwls5Yb3gR
| 9,571 |
Document AzureML Deployment Example
|
{
"login": "varndorfer",
"id": 20168613,
"node_id": "MDQ6VXNlcjIwMTY4NjEz",
"avatar_url": "https://avatars.githubusercontent.com/u/20168613?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/varndorfer",
"html_url": "https://github.com/varndorfer",
"followers_url": "https://api.github.com/users/varndorfer/followers",
"following_url": "https://api.github.com/users/varndorfer/following{/other_user}",
"gists_url": "https://api.github.com/users/varndorfer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/varndorfer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/varndorfer/subscriptions",
"organizations_url": "https://api.github.com/users/varndorfer/orgs",
"repos_url": "https://api.github.com/users/varndorfer/repos",
"events_url": "https://api.github.com/users/varndorfer/events{/privacy}",
"received_events_url": "https://api.github.com/users/varndorfer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T22:44:33 | 2023-08-22T16:26:51 | 2023-08-22T14:36:47 |
CONTRIBUTOR
| null |
Description: Link an example of deploying a Langchain app to an AzureML online endpoint to the deployments documentation page.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9571/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9571/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9571",
"html_url": "https://github.com/langchain-ai/langchain/pull/9571",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9571.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9571.patch",
"merged_at": "2023-08-22T14:36:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9570
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9570/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9570/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9570/events
|
https://github.com/langchain-ai/langchain/pull/9570
| 1,860,238,526 |
PR_kwDOIPDwls5Ybu0Y
| 9,570 |
parent retriever nit
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T22:07:01 | 2023-08-22T18:58:17 | 2023-08-22T18:58:17 |
COLLABORATOR
| null |
if ids are nullable seems like they should have default val None. mirrors VectorStore interface as well. cc @mcantillon21 @jacoblee93
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9570/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9570/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9570",
"html_url": "https://github.com/langchain-ai/langchain/pull/9570",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9570.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9570.patch",
"merged_at": "2023-08-22T18:58:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9569
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9569/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9569/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9569/events
|
https://github.com/langchain-ai/langchain/pull/9569
| 1,860,214,939 |
PR_kwDOIPDwls5Ybpg1
| 9,569 |
Add missing param to parent document retriever notebook
|
{
"login": "jacoblee93",
"id": 6952323,
"node_id": "MDQ6VXNlcjY5NTIzMjM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6952323?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jacoblee93",
"html_url": "https://github.com/jacoblee93",
"followers_url": "https://api.github.com/users/jacoblee93/followers",
"following_url": "https://api.github.com/users/jacoblee93/following{/other_user}",
"gists_url": "https://api.github.com/users/jacoblee93/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jacoblee93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jacoblee93/subscriptions",
"organizations_url": "https://api.github.com/users/jacoblee93/orgs",
"repos_url": "https://api.github.com/users/jacoblee93/repos",
"events_url": "https://api.github.com/users/jacoblee93/events{/privacy}",
"received_events_url": "https://api.github.com/users/jacoblee93/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T21:46:04 | 2023-08-21T22:02:13 | 2023-08-21T22:02:13 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9569/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9569/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9569",
"html_url": "https://github.com/langchain-ai/langchain/pull/9569",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9569.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9569.patch",
"merged_at": "2023-08-21T22:02:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9568
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9568/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9568/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9568/events
|
https://github.com/langchain-ai/langchain/pull/9568
| 1,860,187,623 |
PR_kwDOIPDwls5YbjNq
| 9,568 |
Bagatur/confluence val
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T21:32:23 | 2023-08-21T22:02:37 | 2023-08-21T22:02:36 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9568/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9568/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9568",
"html_url": "https://github.com/langchain-ai/langchain/pull/9568",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9568.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9568.patch",
"merged_at": "2023-08-21T22:02:36"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9567
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9567/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9567/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9567/events
|
https://github.com/langchain-ai/langchain/pull/9567
| 1,860,185,984 |
PR_kwDOIPDwls5Ybi4B
| 9,567 |
Use the GitHub-suggested safer pattern for shell interpolation.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T21:31:35 | 2023-08-21T21:59:11 | 2023-08-21T21:59:10 |
COLLABORATOR
| null |
Using `${{ }}` to construct shell commands is risky, since the `${{ }}` interpolation runs first and ignores shell quoting rules. This means that shell commands that look safely quoted, like `echo "${{ github.event.issue.title }}"`, are actually vulnerable to shell injection.
More details here: https://github.blog/2023-08-09-four-tips-to-keep-your-github-actions-workflows-secure/
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9567/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9567/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9567",
"html_url": "https://github.com/langchain-ai/langchain/pull/9567",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9567.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9567.patch",
"merged_at": "2023-08-21T21:59:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9566
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9566/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9566/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9566/events
|
https://github.com/langchain-ai/langchain/pull/9566
| 1,860,173,384 |
PR_kwDOIPDwls5YbgCS
| 9,566 |
Use verbose pipx install to see why it's taking so long.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T21:23:13 | 2023-08-22T19:39:59 | 2023-08-22T19:39:55 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9566/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9566/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9566",
"html_url": "https://github.com/langchain-ai/langchain/pull/9566",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9566.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9566.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9565
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9565/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9565/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9565/events
|
https://github.com/langchain-ai/langchain/pull/9565
| 1,860,165,207 |
PR_kwDOIPDwls5YbeOk
| 9,565 |
Fix typo
|
{
"login": "jeremysuriel",
"id": 11534,
"node_id": "MDQ6VXNlcjExNTM0",
"avatar_url": "https://avatars.githubusercontent.com/u/11534?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremysuriel",
"html_url": "https://github.com/jeremysuriel",
"followers_url": "https://api.github.com/users/jeremysuriel/followers",
"following_url": "https://api.github.com/users/jeremysuriel/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremysuriel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremysuriel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremysuriel/subscriptions",
"organizations_url": "https://api.github.com/users/jeremysuriel/orgs",
"repos_url": "https://api.github.com/users/jeremysuriel/repos",
"events_url": "https://api.github.com/users/jeremysuriel/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremysuriel/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T21:16:20 | 2023-08-21T22:54:39 | 2023-08-21T22:54:39 |
CONTRIBUTOR
| null |
Corrected a minor documentation typo here: https://python.langchain.com/docs/modules/model_io/models/llms/#generate-batch-calls-richer-outputs
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9565/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9565/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9565",
"html_url": "https://github.com/langchain-ai/langchain/pull/9565",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9565.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9565.patch",
"merged_at": "2023-08-21T22:54:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9564
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9564/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9564/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9564/events
|
https://github.com/langchain-ai/langchain/pull/9564
| 1,860,127,894 |
PR_kwDOIPDwls5YbV3y
| 9,564 |
Set up concurrency groups and workflow cancelation in CI.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T20:48:37 | 2023-08-22T18:22:19 | 2023-08-22T18:21:26 |
COLLABORATOR
| null |
If another push to the same PR or branch happens while its CI is still running, cancel the earlier run in favor of the next run.
There's no point in testing an outdated version of the code. GitHub only allows a limited number of job runners to be active at the same time, so it's better to cancel pointless jobs early so that more useful jobs can run sooner.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9564/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9564/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9564",
"html_url": "https://github.com/langchain-ai/langchain/pull/9564",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9564.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9564.patch",
"merged_at": "2023-08-22T18:21:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9563
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9563/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9563/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9563/events
|
https://github.com/langchain-ai/langchain/pull/9563
| 1,860,091,888 |
PR_kwDOIPDwls5YbODb
| 9,563 |
add variables for field names
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T20:24:26 | 2023-08-22T14:43:22 | 2023-08-22T14:43:21 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9563/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9563/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9563",
"html_url": "https://github.com/langchain-ai/langchain/pull/9563",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9563.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9563.patch",
"merged_at": "2023-08-22T14:43:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9562
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9562/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9562/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9562/events
|
https://github.com/langchain-ai/langchain/pull/9562
| 1,860,074,944 |
PR_kwDOIPDwls5YbKP4
| 9,562 |
Eliminate special-casing from test CI workflows.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T20:13:07 | 2023-08-22T15:36:53 | 2023-08-22T15:36:52 |
COLLABORATOR
| null |
The previous approach was relying on `_test.yml` taking an input parameter, and then doing almost completely orthogonal things for each parameter value. I've separated out each of those test situations as its own job or workflow file, which eliminated all the special-casing and, in my opinion, improved maintainability by making it much more obvious what code runs when.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9562/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9562/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9562",
"html_url": "https://github.com/langchain-ai/langchain/pull/9562",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9562.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9562.patch",
"merged_at": "2023-08-22T15:36:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9561
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9561/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9561/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9561/events
|
https://github.com/langchain-ai/langchain/pull/9561
| 1,860,053,498 |
PR_kwDOIPDwls5YbFZT
| 9,561 |
update data connection -> retrieval
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T20:00:26 | 2023-08-21T20:03:30 | 2023-08-21T20:03:29 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9561/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9561/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9561",
"html_url": "https://github.com/langchain-ai/langchain/pull/9561",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9561.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9561.patch",
"merged_at": "2023-08-21T20:03:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9559
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9559/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9559/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9559/events
|
https://github.com/langchain-ai/langchain/issues/9559
| 1,859,998,066 |
I_kwDOIPDwls5u3VFy
| 9,559 |
Adding thumbs-up and thumbs-down for documentations
|
{
"login": "kong75",
"id": 20156958,
"node_id": "MDQ6VXNlcjIwMTU2OTU4",
"avatar_url": "https://avatars.githubusercontent.com/u/20156958?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kong75",
"html_url": "https://github.com/kong75",
"followers_url": "https://api.github.com/users/kong75/followers",
"following_url": "https://api.github.com/users/kong75/following{/other_user}",
"gists_url": "https://api.github.com/users/kong75/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kong75/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kong75/subscriptions",
"organizations_url": "https://api.github.com/users/kong75/orgs",
"repos_url": "https://api.github.com/users/kong75/repos",
"events_url": "https://api.github.com/users/kong75/events{/privacy}",
"received_events_url": "https://api.github.com/users/kong75/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T19:23:20 | 2023-11-27T16:06:16 | 2023-11-27T16:06:16 |
NONE
| null |
### Feature request
It might be very helpful to let users react with each page of the documentation so that contributors, users and people working will know which document has been out-dated / not usable.
### Motivation
I saw many inconsistencies in different docs and some codes are no longer usable as the dependancies update. It would be very help if there is an indicator of whether that documentation is still something we could reply on.
### Your contribution
I could contribute on the front-end but not sure how to configure it on langchain's database.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9559/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9559/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9558
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9558/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9558/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9558/events
|
https://github.com/langchain-ai/langchain/pull/9558
| 1,859,941,495 |
PR_kwDOIPDwls5YatUR
| 9,558 |
Update `SECURITY.md` email address.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T18:45:59 | 2023-08-21T18:55:04 | 2023-08-21T18:52:21 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9558/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9558/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9558",
"html_url": "https://github.com/langchain-ai/langchain/pull/9558",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9558.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9558.patch",
"merged_at": "2023-08-21T18:52:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9557
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9557/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9557/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9557/events
|
https://github.com/langchain-ai/langchain/pull/9557
| 1,859,929,017 |
PR_kwDOIPDwls5Yaqlv
| 9,557 |
Add `py.typed` file to `langchain-experimental`.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T18:36:12 | 2023-08-21T19:37:17 | 2023-08-21T19:37:16 |
COLLABORATOR
| null |
The package is linted with mypy, so its type hints are correct and should be exposed publicly. Without this file, the type hints remain private and cannot be used by downstream users of the package.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9557/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9557/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9557",
"html_url": "https://github.com/langchain-ai/langchain/pull/9557",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9557.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9557.patch",
"merged_at": "2023-08-21T19:37:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9556
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9556/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9556/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9556/events
|
https://github.com/langchain-ai/langchain/pull/9556
| 1,859,928,994 |
PR_kwDOIPDwls5Yaqld
| 9,556 |
pin pydantic api ref build
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T18:36:11 | 2023-08-21T19:11:50 | 2023-08-21T19:11:49 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9556/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9556/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9556",
"html_url": "https://github.com/langchain-ai/langchain/pull/9556",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9556.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9556.patch",
"merged_at": "2023-08-21T19:11:49"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9555
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9555/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9555/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9555/events
|
https://github.com/langchain-ai/langchain/pull/9555
| 1,859,925,417 |
PR_kwDOIPDwls5Yapzq
| 9,555 |
Add additional_kwargs to BasePromptTemplate, allow use in ChatPromptTemplate
|
{
"login": "alecf",
"id": 135340,
"node_id": "MDQ6VXNlcjEzNTM0MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/135340?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alecf",
"html_url": "https://github.com/alecf",
"followers_url": "https://api.github.com/users/alecf/followers",
"following_url": "https://api.github.com/users/alecf/following{/other_user}",
"gists_url": "https://api.github.com/users/alecf/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alecf/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alecf/subscriptions",
"organizations_url": "https://api.github.com/users/alecf/orgs",
"repos_url": "https://api.github.com/users/alecf/repos",
"events_url": "https://api.github.com/users/alecf/events{/privacy}",
"received_events_url": "https://api.github.com/users/alecf/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 5 | 2023-08-21T18:33:27 | 2023-09-17T18:43:42 | 2023-09-04T03:50:15 |
CONTRIBUTOR
| null |
It can be useful to annotate templates with 3rd party metadata using `additional_kwargs` - this already works for `BaseStringMessagePromptTemplate` and `BaseMessage` but this wasn't yet wired up to `BasePromptTemplate`
I added this field and also allowed `ChatPromptTemplate.from_messages()` (derived from `BasePromptTemplate`) to pass on `**kwargs` so that you could use it in that way, also consistent with other classmethods in that file.
Tagging @hwchase17 and @eyurtsev for template/prompt stuff
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9555/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9555/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9555",
"html_url": "https://github.com/langchain-ai/langchain/pull/9555",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9555.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9555.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9554
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9554/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9554/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9554/events
|
https://github.com/langchain-ai/langchain/pull/9554
| 1,859,871,209 |
PR_kwDOIPDwls5Yad4o
| 9,554 |
Reminder to not report security issues as "bug" type issues.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T17:53:36 | 2023-08-21T19:48:34 | 2023-08-21T19:48:33 |
COLLABORATOR
| null |
Updated the issue template that pops up when users open a new issue.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9554/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9554/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9554",
"html_url": "https://github.com/langchain-ai/langchain/pull/9554",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9554.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9554.patch",
"merged_at": "2023-08-21T19:48:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9553
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9553/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9553/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9553/events
|
https://github.com/langchain-ai/langchain/issues/9553
| 1,859,861,388 |
I_kwDOIPDwls5u2zuM
| 9,553 |
using PromptTemplate with initialze_agent
|
{
"login": "Zylon989",
"id": 137006358,
"node_id": "U_kgDOCCqNFg",
"avatar_url": "https://avatars.githubusercontent.com/u/137006358?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Zylon989",
"html_url": "https://github.com/Zylon989",
"followers_url": "https://api.github.com/users/Zylon989/followers",
"following_url": "https://api.github.com/users/Zylon989/following{/other_user}",
"gists_url": "https://api.github.com/users/Zylon989/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Zylon989/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Zylon989/subscriptions",
"organizations_url": "https://api.github.com/users/Zylon989/orgs",
"repos_url": "https://api.github.com/users/Zylon989/repos",
"events_url": "https://api.github.com/users/Zylon989/events{/privacy}",
"received_events_url": "https://api.github.com/users/Zylon989/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 8 | 2023-08-21T17:47:57 | 2023-11-27T16:06:21 | 2023-11-27T16:06:20 |
NONE
| null |
### System Info
I am trying to use a template to pre customize the AI, but my Code is not working!
Any idea why it's not working?
This is the basic part of my code:
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
template = """You are a customer service representative working for Amazon. You are having conversations with customers.
When asked about your profession, you should respond that you are a customer service representative for Amazon.
{memory}
#Human: {human_input}
#Chatbot:"""
prompt = PromptTemplate(input_variables=["memory", "human_input"],template=template)
memory = ConversationBufferMemory(memory_key="memory",prompt=prompt, return_messages=True)
llm = ChatOpenAI(temperature=0, model="gpt-3.5-turbo-0613",verbose=True)
def get_agent(self):
agent_kwargs = {
"extra_prompt_messages": [MessagesPlaceholder(variable_name="memory")],
}
agent = initialize_agent(
tools=self.tools,
llm=llm,
agent=AgentType.OPENAI_FUNCTIONS,
verbose=True,
agent_kwargs=agent_kwargs,
memory=memory,
prompt=prompt,
)
return agent
### Expected behavior
When I ask the AI what's her prefession is, she is telling
"I am an AI assistant designed to provide helpful information and assist with various tasks" istead of
"you are a customer service representative for Amazon"
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9553/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9553/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9552
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9552/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9552/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9552/events
|
https://github.com/langchain-ai/langchain/pull/9552
| 1,859,856,978 |
PR_kwDOIPDwls5Yaaq3
| 9,552 |
Require manually triggering release workflows.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T17:45:38 | 2023-08-21T17:54:45 | 2023-08-21T17:54:44 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9552/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9552/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9552",
"html_url": "https://github.com/langchain-ai/langchain/pull/9552",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9552.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9552.patch",
"merged_at": "2023-08-21T17:54:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9551
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9551/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9551/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9551/events
|
https://github.com/langchain-ai/langchain/pull/9551
| 1,859,842,636 |
PR_kwDOIPDwls5YaXdW
| 9,551 |
Add `SECURITY.md` file to the repo.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T17:38:06 | 2023-08-21T17:40:00 | 2023-08-21T17:39:59 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9551/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9551/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9551",
"html_url": "https://github.com/langchain-ai/langchain/pull/9551",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9551.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9551.patch",
"merged_at": "2023-08-21T17:39:59"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9550
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9550/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9550/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9550/events
|
https://github.com/langchain-ai/langchain/issues/9550
| 1,859,842,021 |
I_kwDOIPDwls5u2u_l
| 9,550 |
llama 2 through HF further integration with langchain on chat model
|
{
"login": "WenchenLi",
"id": 5865755,
"node_id": "MDQ6VXNlcjU4NjU3NTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/5865755?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/WenchenLi",
"html_url": "https://github.com/WenchenLi",
"followers_url": "https://api.github.com/users/WenchenLi/followers",
"following_url": "https://api.github.com/users/WenchenLi/following{/other_user}",
"gists_url": "https://api.github.com/users/WenchenLi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/WenchenLi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WenchenLi/subscriptions",
"organizations_url": "https://api.github.com/users/WenchenLi/orgs",
"repos_url": "https://api.github.com/users/WenchenLi/repos",
"events_url": "https://api.github.com/users/WenchenLi/events{/privacy}",
"received_events_url": "https://api.github.com/users/WenchenLi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T17:37:45 | 2023-11-27T16:06:26 | 2023-11-27T16:06:25 |
NONE
| null |
### Feature request
appreciate your efforts on show how integrate Hugginface models with langchain: https://python.langchain.com/docs/integrations/llms/huggingface_pipelines
but this is just a shallow port from huggingface to langchain not yet a full integration on the [Chat model](https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/chat_models) class that require further inherence and special case development.
Can you guys spare some efforts to integrate the self-hosted version of llama 2 into the chat model?
### Motivation
How self-hosted llama 2 to fully integrate with langchain for avoid privacy and control the whole llm app development cycles.
### Your contribution
I'm willing to help to submit PR with proper guidance.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9550/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9550/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9549
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9549/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9549/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9549/events
|
https://github.com/langchain-ai/langchain/pull/9549
| 1,859,808,627 |
PR_kwDOIPDwls5YaP9z
| 9,549 |
bump 270
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T17:15:36 | 2023-08-21T17:18:47 | 2023-08-21T17:18:47 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9549/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9549/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9549",
"html_url": "https://github.com/langchain-ai/langchain/pull/9549",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9549.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9549.patch",
"merged_at": "2023-08-21T17:18:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9548
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9548/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9548/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9548/events
|
https://github.com/langchain-ai/langchain/pull/9548
| 1,859,734,487 |
PR_kwDOIPDwls5YZ_wz
| 9,548 |
Add function_call to FakeListChatModel
|
{
"login": "NarekA",
"id": 737367,
"node_id": "MDQ6VXNlcjczNzM2Nw==",
"avatar_url": "https://avatars.githubusercontent.com/u/737367?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/NarekA",
"html_url": "https://github.com/NarekA",
"followers_url": "https://api.github.com/users/NarekA/followers",
"following_url": "https://api.github.com/users/NarekA/following{/other_user}",
"gists_url": "https://api.github.com/users/NarekA/gists{/gist_id}",
"starred_url": "https://api.github.com/users/NarekA/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NarekA/subscriptions",
"organizations_url": "https://api.github.com/users/NarekA/orgs",
"repos_url": "https://api.github.com/users/NarekA/repos",
"events_url": "https://api.github.com/users/NarekA/events{/privacy}",
"received_events_url": "https://api.github.com/users/NarekA/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T16:29:26 | 2023-11-10T22:04:33 | 2023-11-10T22:04:33 |
NONE
| null |
This PR allows users to simulate function calls using the `FakeListChatModel` by passing in dictionary values as the responses.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9548/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9548/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9548",
"html_url": "https://github.com/langchain-ai/langchain/pull/9548",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9548.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9548.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9547
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9547/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9547/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9547/events
|
https://github.com/langchain-ai/langchain/pull/9547
| 1,859,724,450 |
PR_kwDOIPDwls5YZ9kT
| 9,547 |
docs: `MLflow API` and examples
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T16:22:49 | 2023-09-04T17:08:34 | 2023-09-04T03:52:21 |
COLLABORATOR
| null |
Added docs and links to the API and examples provided by MLflow itself
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9547/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9547/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9547",
"html_url": "https://github.com/langchain-ai/langchain/pull/9547",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9547.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9547.patch",
"merged_at": "2023-09-04T03:52:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9546
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9546/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9546/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9546/events
|
https://github.com/langchain-ai/langchain/issues/9546
| 1,859,715,484 |
I_kwDOIPDwls5u2QGc
| 9,546 |
Being able to retry a chain until the output is valid
|
{
"login": "kevin-guimard-ext",
"id": 140074762,
"node_id": "U_kgDOCFlfCg",
"avatar_url": "https://avatars.githubusercontent.com/u/140074762?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kevin-guimard-ext",
"html_url": "https://github.com/kevin-guimard-ext",
"followers_url": "https://api.github.com/users/kevin-guimard-ext/followers",
"following_url": "https://api.github.com/users/kevin-guimard-ext/following{/other_user}",
"gists_url": "https://api.github.com/users/kevin-guimard-ext/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kevin-guimard-ext/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kevin-guimard-ext/subscriptions",
"organizations_url": "https://api.github.com/users/kevin-guimard-ext/orgs",
"repos_url": "https://api.github.com/users/kevin-guimard-ext/repos",
"events_url": "https://api.github.com/users/kevin-guimard-ext/events{/privacy}",
"received_events_url": "https://api.github.com/users/kevin-guimard-ext/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 5 | 2023-08-21T16:17:22 | 2023-11-22T15:17:59 | null |
NONE
| null |
### Feature request
The RetryOutputParser class has several drawbacks:
- it must point to a chain different from the one that calls it
- it does not make it possible to specify a number of retries
### Motivation
Following a request, ChatGPT sometimes answers with an invalid format and the same request must be resent to get the expected output.
It would be useful to have a new parameter added to a LLMChain (endowed with an output parser) to be able to retry the chain till the output is validated by the parser (i.e. it does not trigger any exception), with the possibility to specify a maximum of retries. It could take this form (just a proposal):
```
chain = LLMChain(llm=..., prompt=..., output_parser=..., retry=RetryChain(max_tries=10))
```
### Your contribution
Well, I don't think this feature would be complex to develop for the developers that already know the code. Let me know if this request makes sense.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9546/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9546/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9545
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9545/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9545/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9545/events
|
https://github.com/langchain-ai/langchain/issues/9545
| 1,859,684,763 |
I_kwDOIPDwls5u2Imb
| 9,545 |
Azure cognitive search retriever: ValidationError: 1 validation error for Document page_content
|
{
"login": "stefanhuber1510",
"id": 76061695,
"node_id": "MDQ6VXNlcjc2MDYxNjk1",
"avatar_url": "https://avatars.githubusercontent.com/u/76061695?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/stefanhuber1510",
"html_url": "https://github.com/stefanhuber1510",
"followers_url": "https://api.github.com/users/stefanhuber1510/followers",
"following_url": "https://api.github.com/users/stefanhuber1510/following{/other_user}",
"gists_url": "https://api.github.com/users/stefanhuber1510/gists{/gist_id}",
"starred_url": "https://api.github.com/users/stefanhuber1510/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stefanhuber1510/subscriptions",
"organizations_url": "https://api.github.com/users/stefanhuber1510/orgs",
"repos_url": "https://api.github.com/users/stefanhuber1510/repos",
"events_url": "https://api.github.com/users/stefanhuber1510/events{/privacy}",
"received_events_url": "https://api.github.com/users/stefanhuber1510/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T15:58:11 | 2023-08-21T19:33:47 | 2023-08-21T19:32:44 |
NONE
| null |
### Issue you'd like to raise.
I am using the Cognitive search retriever according to the documentation, however I run into an error, regarding the type of return value.
**Reproduction**:
import os
from langchain.retrievers import AzureCognitiveSearchRetriever
os.environ["AZURE_COGNITIVE_SEARCH_SERVICE_NAME"] = ""
os.environ["AZURE_COGNITIVE_SEARCH_INDEX_NAME"] = ""
os.environ["AZURE_COGNITIVE_SEARCH_API_KEY"] = ""
retriever = AzureCognitiveSearchRetriever(content_key="text", top_k=5)
retriever.get_relevant_documents(query="What is langchain?")
**Expected behaviour**: return relevant documents/snippets
**Actual behaviour**:
ValidationError: 1 validation error for Document
page_content
str type expected (type=type_error.str)
It seems like the langchain retriever expects to receive somewhere a str, where azure cognitive search returns something else. Can anyone help/explain? The error message does not tell what type it receives and where the string should be, it would like to receive
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9545/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9545/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9544
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9544/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9544/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9544/events
|
https://github.com/langchain-ai/langchain/pull/9544
| 1,859,680,740 |
PR_kwDOIPDwls5YZz-G
| 9,544 |
Release on push to `master` instead of on closed PRs targeting it.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T15:55:48 | 2023-08-21T16:57:41 | 2023-08-21T16:57:40 |
COLLABORATOR
| null |
This is safer than the prior approach, since it's safe by default: the release workflows never get triggered for non-merged PRs, so there's no possibility of a buggy conditional accidentally letting a workflow proceed when it shouldn't have.
The only loss is that publishing no longer requires a `release` label on the merged PR that bumps the version. We can add a separate CI step that enforces that part as a condition for merging into `master`, if desirable.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9544/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9544/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9544",
"html_url": "https://github.com/langchain-ai/langchain/pull/9544",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9544.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9544.patch",
"merged_at": "2023-08-21T16:57:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9543
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9543/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9543/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9543/events
|
https://github.com/langchain-ai/langchain/pull/9543
| 1,859,637,622 |
PR_kwDOIPDwls5YZqiX
| 9,543 |
Fix conditional that erroneously always runs.
|
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T15:30:09 | 2023-08-21T17:24:34 | 2023-08-21T17:24:33 |
COLLABORATOR
| null |
The input it means to test for is `"libs/langchain"` and not `"langchain"`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9543/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9543/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9543",
"html_url": "https://github.com/langchain-ai/langchain/pull/9543",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9543.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9543.patch",
"merged_at": "2023-08-21T17:24:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9542
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9542/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9542/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9542/events
|
https://github.com/langchain-ai/langchain/pull/9542
| 1,859,608,504 |
PR_kwDOIPDwls5YZkBW
| 9,542 |
Nc/small fixes 21aug
|
{
"login": "nfcampos",
"id": 56902,
"node_id": "MDQ6VXNlcjU2OTAy",
"avatar_url": "https://avatars.githubusercontent.com/u/56902?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nfcampos",
"html_url": "https://github.com/nfcampos",
"followers_url": "https://api.github.com/users/nfcampos/followers",
"following_url": "https://api.github.com/users/nfcampos/following{/other_user}",
"gists_url": "https://api.github.com/users/nfcampos/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nfcampos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nfcampos/subscriptions",
"organizations_url": "https://api.github.com/users/nfcampos/orgs",
"repos_url": "https://api.github.com/users/nfcampos/repos",
"events_url": "https://api.github.com/users/nfcampos/events{/privacy}",
"received_events_url": "https://api.github.com/users/nfcampos/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T15:15:56 | 2023-08-21T17:01:21 | 2023-08-21T17:01:20 |
COLLABORATOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9542/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9542/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9542",
"html_url": "https://github.com/langchain-ai/langchain/pull/9542",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9542.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9542.patch",
"merged_at": "2023-08-21T17:01:20"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9540
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9540/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9540/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9540/events
|
https://github.com/langchain-ai/langchain/issues/9540
| 1,859,531,876 |
I_kwDOIPDwls5u1jRk
| 9,540 |
Impossible to enrich BaseOutputParser with a custom object member
|
{
"login": "kevin-guimard-ext",
"id": 140074762,
"node_id": "U_kgDOCFlfCg",
"avatar_url": "https://avatars.githubusercontent.com/u/140074762?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kevin-guimard-ext",
"html_url": "https://github.com/kevin-guimard-ext",
"followers_url": "https://api.github.com/users/kevin-guimard-ext/followers",
"following_url": "https://api.github.com/users/kevin-guimard-ext/following{/other_user}",
"gists_url": "https://api.github.com/users/kevin-guimard-ext/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kevin-guimard-ext/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kevin-guimard-ext/subscriptions",
"organizations_url": "https://api.github.com/users/kevin-guimard-ext/orgs",
"repos_url": "https://api.github.com/users/kevin-guimard-ext/repos",
"events_url": "https://api.github.com/users/kevin-guimard-ext/events{/privacy}",
"received_events_url": "https://api.github.com/users/kevin-guimard-ext/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 3 | 2023-08-21T14:43:51 | 2023-11-20T18:19:46 | null |
NONE
| null |
### System Info
Langchain 0.0.268
Python 3.9
Windows 10
### Who can help?
@hwchase17
@agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```
from langchain.schema import BaseOutputParser
class CustomType:
pass
class CustomParser(BaseOutputParser):
model_config = ConfigDict(arbitrary_types_allowed=True)
c : CustomType
```
### Expected behavior
This triggers a RuntimeError since no validator could be found for CustomType object. It prevents the user from passing custom types to the constructor of a langchain's output parser.
Though, this problem has been corrected in the latest versions of pydantic (thanks to the flag arbitrary_types_allowed). After investigating the source code, one of the mother classes of BaseOutputParser is Serializable and the latter derives from... pydantic.v1.BaseModel instead of pydantic.BaseModel. Why is that? This seems to be the source of the problem.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9540/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9540/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9539
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9539/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9539/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9539/events
|
https://github.com/langchain-ai/langchain/pull/9539
| 1,859,508,257 |
PR_kwDOIPDwls5YZNrI
| 9,539 |
Add exclude to GenericLoader.from_file_system
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T14:31:00 | 2023-08-23T23:09:11 | 2023-08-23T23:09:10 |
COLLABORATOR
| null |
- Exclude in Generic from_filesystem
- Update generic.py
- x
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9539/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9539/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9539",
"html_url": "https://github.com/langchain-ai/langchain/pull/9539",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9539.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9539.patch",
"merged_at": "2023-08-23T23:09:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9538
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9538/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9538/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9538/events
|
https://github.com/langchain-ai/langchain/issues/9538
| 1,859,484,256 |
I_kwDOIPDwls5u1Xpg
| 9,538 |
Issue: I am using GPT-4 with SQLDatabaseChain it shows ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine error
|
{
"login": "jayrajle",
"id": 142813374,
"node_id": "U_kgDOCIMovg",
"avatar_url": "https://avatars.githubusercontent.com/u/142813374?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jayrajle",
"html_url": "https://github.com/jayrajle",
"followers_url": "https://api.github.com/users/jayrajle/followers",
"following_url": "https://api.github.com/users/jayrajle/following{/other_user}",
"gists_url": "https://api.github.com/users/jayrajle/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jayrajle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jayrajle/subscriptions",
"organizations_url": "https://api.github.com/users/jayrajle/orgs",
"repos_url": "https://api.github.com/users/jayrajle/repos",
"events_url": "https://api.github.com/users/jayrajle/events{/privacy}",
"received_events_url": "https://api.github.com/users/jayrajle/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T14:18:28 | 2023-11-27T16:06:31 | 2023-11-27T16:06:31 |
NONE
| null |
### Issue you'd like to raise.
I am working with SQLDatabaseChain in Django framework everytime I execute the code it shows below error.
File "C:\Users\ehsuser\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
Below is my code
user='root'
database= 'real_estate_chatbot_new'
password=''
host= 'localhost'
port= '3306'
table_name1='app_projects'
table_name2='app_projectimages'
db_uri=f"mysql+pymysql://{user}:{password}@{host}:{port}/{database}"
#input_db = SQLDatabase.from_uri('sqlite:///ashridhar.db')
input_db = SQLDatabase.from_uri(db_uri,include_tables=[table_name1,table_name2])
db_chain = SQLDatabaseChain.from_llm(llm, input_db, verbose=True)
prompt = """
- You're a real estate chatbot for Buy home that is going to answer to a potential lead so keep your messages dynamic and enthusiastic making the interactions lively and enjoyable!.
- Answer the question from database only if you don't find answer from database return a friendly message.
- don't use word like 'database' in answer.
- If it is not relevant to the database return connvencing and gratitude message.
- If it is realted to price return it in words suppose the price is 7000000 then return 70 lakhs."""
tools = [
Tool(
name="Real_Estate_Chatbot",
func=db_chain.run,
#description="Answer the question from database only if you don't find answer from database return a friendly message., You're a real estate sales agent that is going to answer to a potential lead so keep your messages dynamic and enthusiastic making the interactions lively and enjoyable!.",
description=prompt
),
]
agent_kwargs = {
"extra_prompt_messages": [MessagesPlaceholder(variable_name="memory")],
}
memory = ConversationBufferWindowMemory(memory_key="memory",k=4,return_messages=True)
agent = initialize_agent(
tools,
llm,
agent=AgentType.OPENAI_FUNCTIONS,
verbose=True,
agent_kwargs=agent_kwargs,
memory=memory,
)
response = agent.run(message)
return response
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9538/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9538/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9537
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9537/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9537/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9537/events
|
https://github.com/langchain-ai/langchain/issues/9537
| 1,859,472,931 |
I_kwDOIPDwls5u1U4j
| 9,537 |
Plain models are not calling callbacks when cached
|
{
"login": "mariokostelac",
"id": 1917451,
"node_id": "MDQ6VXNlcjE5MTc0NTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/1917451?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mariokostelac",
"html_url": "https://github.com/mariokostelac",
"followers_url": "https://api.github.com/users/mariokostelac/followers",
"following_url": "https://api.github.com/users/mariokostelac/following{/other_user}",
"gists_url": "https://api.github.com/users/mariokostelac/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mariokostelac/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mariokostelac/subscriptions",
"organizations_url": "https://api.github.com/users/mariokostelac/orgs",
"repos_url": "https://api.github.com/users/mariokostelac/repos",
"events_url": "https://api.github.com/users/mariokostelac/events{/privacy}",
"received_events_url": "https://api.github.com/users/mariokostelac/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 7 | 2023-08-21T14:12:46 | 2024-01-02T09:20:43 | null |
CONTRIBUTOR
| null |
### System Info
```
pip freeze | grep langchain
langchain==0.0.268
langchainplus-sdk==0.0.17
```
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
```py
from typing import Any, Dict, List
import langchain
from langchain.cache import SQLiteCache
from langchain.callbacks.base import BaseCallbackHandler
from langchain.chat_models import ChatVertexAI
from langchain.llms import VertexAI
from langchain.schema import HumanMessage
langchain.llm_cache = SQLiteCache(database_path="langchain-llm-cache.db")
class CallbackHandler(BaseCallbackHandler):
run_inline = True
def __init__(self, logger=None):
self.messages = []
def on_llm_start(self, serialized: Dict[str, Any], prompts: List[str], run_id, parent_run_id, **kwargs: Any) -> Any:
self.messages.append(run_id)
callback = CallbackHandler()
bison_text_llm = VertexAI(model_name="text-bison@001", temperature=0.0, max_output_tokens=500, callbacks=[callback])
bison_chat_llm = ChatVertexAI(model_name="chat-bison@001", temperature=0.0, max_output_tokens=500, callbacks=[callback])
bison_chat_llm([HumanMessage(content="Hello, how are you?")])
assert len(callback.messages) == 1
bison_chat_llm([HumanMessage(content="Hello, how are you?")])
assert len(callback.messages) == 2
bison_text_llm("Hello, how are you?")
assert len(callback.messages) == 3
bison_text_llm("Hello, how are you?")
assert len(callback.messages) == 4
```
### Expected behavior
It's unclear to me whether callbacks should be called when call is cached, but we can see that chat and plain text models implement different behaviour.
Ideally, callbacks would be called, with a flag saying that call is cached.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9537/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9537/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9536
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9536/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9536/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9536/events
|
https://github.com/langchain-ai/langchain/pull/9536
| 1,859,467,730 |
PR_kwDOIPDwls5YZE25
| 9,536 |
feat(streaming_aiter.py): add support for multiple LLM runs in a AsyncIteratorCallbackHandler
|
{
"login": "xukecheng",
"id": 29099863,
"node_id": "MDQ6VXNlcjI5MDk5ODYz",
"avatar_url": "https://avatars.githubusercontent.com/u/29099863?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xukecheng",
"html_url": "https://github.com/xukecheng",
"followers_url": "https://api.github.com/users/xukecheng/followers",
"following_url": "https://api.github.com/users/xukecheng/following{/other_user}",
"gists_url": "https://api.github.com/users/xukecheng/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xukecheng/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xukecheng/subscriptions",
"organizations_url": "https://api.github.com/users/xukecheng/orgs",
"repos_url": "https://api.github.com/users/xukecheng/repos",
"events_url": "https://api.github.com/users/xukecheng/events{/privacy}",
"received_events_url": "https://api.github.com/users/xukecheng/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T14:10:28 | 2023-10-18T00:06:50 | 2023-09-04T03:58:55 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
- Description: When I want to integrate LangChain into my Poe-API Project, which aims to provide multiple OpenAI functions for users, I write code based on https://github.com/langchain-ai/langchain-template-poe-fastapi/blob/main/langchain_template_poe_fastapi/handler.py
```py
class EchoBot(PoeBot):
async def get_response(self, query):
callback_handler = AsyncIteratorCallbackHandler()
mode = ChatOpenAI(
temperature=0,
model="gpt-3.5-turbo",
streaming=True,
callbacks=[callback_handler],
)
memory = convert_poe_messages(query.query)
agent = initialize_agent(
tools,
llm=mode,
agent=AgentType.OPENAI_FUNCTIONS,
verbose=True,
agent_kwargs={
"extra_prompt_messages": [MessagesPlaceholder(variable_name="memory")],
},
memory=memory,
)
logging.info(query.query)
last_message = query.query[-1].content
run = asyncio.create_task(agent.arun(last_message))
# Yield the tokens as they come in
async for token in callback_handler.aiter():
yield self.text_event(token)
# Await the chain run
await run
```
However, I have noticed that it is not functioning properly. Example of each run process: `__init__ -> aiter -> on_llm_start -> on_llm_end -> on_llm_start ->on_llm_end`, `aiter` will end at the first `on_llm_end`.
The purpose of this PR is to ensure that `aiter` does not terminate at the first occurrence of `on_llm_end` when `LLMResult` has no any output message.
- Issue: https://github.com/langchain-ai/langchain/issues/9374
- Dependencies: None
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9536/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9536/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9536",
"html_url": "https://github.com/langchain-ai/langchain/pull/9536",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9536.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9536.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9535
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9535/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9535/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9535/events
|
https://github.com/langchain-ai/langchain/issues/9535
| 1,859,456,565 |
I_kwDOIPDwls5u1Q41
| 9,535 |
Regression in structured_chat agent's Output parser
|
{
"login": "Und3rf10w",
"id": 3812012,
"node_id": "MDQ6VXNlcjM4MTIwMTI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3812012?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Und3rf10w",
"html_url": "https://github.com/Und3rf10w",
"followers_url": "https://api.github.com/users/Und3rf10w/followers",
"following_url": "https://api.github.com/users/Und3rf10w/following{/other_user}",
"gists_url": "https://api.github.com/users/Und3rf10w/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Und3rf10w/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Und3rf10w/subscriptions",
"organizations_url": "https://api.github.com/users/Und3rf10w/orgs",
"repos_url": "https://api.github.com/users/Und3rf10w/repos",
"events_url": "https://api.github.com/users/Und3rf10w/events{/privacy}",
"received_events_url": "https://api.github.com/users/Und3rf10w/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T14:05:33 | 2023-11-27T16:06:36 | 2023-11-27T16:06:35 |
NONE
| null |
### System Info
This regression affects Langchain >=0.0.262. This regression was introduced with #8965.
If an agent's output to input to a tool (e.g. to generate an `AgentAction`) contains either backticks (such as to represent a code block with ```), or embedded JSON (such as a structured JSON string in the `action_input` key), then the output parsing will fail.
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [X] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Steps to reproduce the behavior:
1. Generate an agent that outputs a markdown formatted code block with a language.
To input to this tool, an `AgentAction` step will be made, that might look like:
```
```json
{
"action": "Code generator tool",
"action_input": "Generate code to optimize ```python\nprint("hello world")```
}
```
(Can't show closing backticks above due to formatting issues, but assume there's closing backticks in the above code block)
2. An error will occur, as a result of being unable to parse the actions.
Using
`pattern = re.compile(r"```(?:json)?\n(.*)```", re.DOTALL)` works slightly better for both embedded JSON and backticks, but will result in unexpected behavior if there are multiple actions in a response
### Expected behavior
Should be able to parse a response with backticks or JSON inside the `action_input` key
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9535/reactions",
"total_count": 5,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 3
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9535/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9534
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9534/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9534/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9534/events
|
https://github.com/langchain-ai/langchain/pull/9534
| 1,859,412,229 |
PR_kwDOIPDwls5YY4X2
| 9,534 |
Add CrateDB prompt
|
{
"login": "karynzv",
"id": 4229270,
"node_id": "MDQ6VXNlcjQyMjkyNzA=",
"avatar_url": "https://avatars.githubusercontent.com/u/4229270?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/karynzv",
"html_url": "https://github.com/karynzv",
"followers_url": "https://api.github.com/users/karynzv/followers",
"following_url": "https://api.github.com/users/karynzv/following{/other_user}",
"gists_url": "https://api.github.com/users/karynzv/gists{/gist_id}",
"starred_url": "https://api.github.com/users/karynzv/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/karynzv/subscriptions",
"organizations_url": "https://api.github.com/users/karynzv/orgs",
"repos_url": "https://api.github.com/users/karynzv/repos",
"events_url": "https://api.github.com/users/karynzv/events{/privacy}",
"received_events_url": "https://api.github.com/users/karynzv/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T13:46:45 | 2023-08-22T13:42:57 | 2023-08-22T13:42:57 |
CONTRIBUTOR
| null |
Adds a prompt template for the CrateDB SQL dialect.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9534/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9534/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9534",
"html_url": "https://github.com/langchain-ai/langchain/pull/9534",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9534.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9534.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9532
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9532/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9532/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9532/events
|
https://github.com/langchain-ai/langchain/issues/9532
| 1,859,248,153 |
I_kwDOIPDwls5u0eAZ
| 9,532 |
SelfQueryRetriever returns duplicate document data using with chromaDB
|
{
"login": "gokulstevee",
"id": 65470058,
"node_id": "MDQ6VXNlcjY1NDcwMDU4",
"avatar_url": "https://avatars.githubusercontent.com/u/65470058?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gokulstevee",
"html_url": "https://github.com/gokulstevee",
"followers_url": "https://api.github.com/users/gokulstevee/followers",
"following_url": "https://api.github.com/users/gokulstevee/following{/other_user}",
"gists_url": "https://api.github.com/users/gokulstevee/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gokulstevee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gokulstevee/subscriptions",
"organizations_url": "https://api.github.com/users/gokulstevee/orgs",
"repos_url": "https://api.github.com/users/gokulstevee/repos",
"events_url": "https://api.github.com/users/gokulstevee/events{/privacy}",
"received_events_url": "https://api.github.com/users/gokulstevee/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 5 | 2023-08-21T12:15:55 | 2023-11-28T16:08:10 | 2023-11-28T16:08:09 |
NONE
| null |
### System Info
Langchain version = 0.0.268
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I have list of objects in roadmap.json and I tried to achieve the what was given in selfquery retriver documentation
```
with open('roadmap.json') as json_file:
allRoadmap = json.load(json_file)
docs = []
for roadmap in allRoadmap:
print(roadmap["name"])
for section in roadmap["sections"]:
single_doc = Document(
page_content=f"This section is related to {roadmap['name']}",
metadata={"roadmapName": roadmap["name"], "sectionTopic": section["name"]}
)
docs.append(single_doc)
print(section["name"])
print("\n")
vectorstore = Chroma.from_documents(docs, embeddings)
print(vectorstore)
for doc in docs:
print(doc)
```
This above code outputs
```
page_content='This section is related to HTML for beginners' metadata={'roadmapName': 'HTML for beginners', 'sectionTopic': 'HTML Basics'}
page_content='This section is related to HTML for beginners' metadata={'roadmapName': 'HTML for beginners', 'sectionTopic': 'HTML Tags and Elements'}
page_content='This section is related to HTML for beginners' metadata={'roadmapName': 'HTML for beginners', 'sectionTopic': 'Intermediate Concepts'}
page_content='This section is related to HTML for beginners' metadata={'roadmapName': 'HTML for beginners', 'sectionTopic': 'Advanced Concepts'}
page_content='This section is related to How Search Engine Works' metadata={'roadmapName': 'How Search Engine Works', 'sectionTopic': 'Internet'}
page_content='This section is related to How Search Engine Works' metadata={'roadmapName': 'How Search Engine Works', 'sectionTopic': 'Search Engine'}
page_content='This section is related to Github Roadmap' metadata={'roadmapName': 'Github Roadmap', 'sectionTopic': 'Section 1'}
page_content='This section is related to Bootstrap' metadata={'roadmapName': 'Bootstrap', 'sectionTopic': 'Introduction'}
page_content='This section is related to Bootstrap' metadata={'roadmapName': 'Bootstrap', 'sectionTopic': 'Concepts'}
page_content='This section is related to Bootstrap' metadata={'roadmapName': 'Bootstrap', 'sectionTopic': 'Hands On'}
page_content='This section is related to MongoDB' metadata={'roadmapName': 'MongoDB', 'sectionTopic': 'Introduction'}
page_content='This section is related to MongoDB' metadata={'roadmapName': 'MongoDB', 'sectionTopic': 'Queries'}
page_content='This section is related to MongoDB' metadata={'roadmapName': 'MongoDB', 'sectionTopic': 'Data Modeling'}
page_content='This section is related to MongoDB' metadata={'roadmapName': 'MongoDB', 'sectionTopic': 'Aggregation'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Getting Started'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Basics'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Conditions and Loops'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Arrays'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Functions'}
page_content='This section is related to Python for Beginers' metadata={'roadmapName': 'Python for Beginers', 'sectionTopic': 'Solving Problems'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basics'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Color and Background'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Typography and Fonts'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Spacing in CSS'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basic Styling'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Positioning Techniques'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Advanced Styling'}
page_content='This section is related to Google Colab' metadata={'roadmapName': 'Google Colab', 'sectionTopic': 'Section 1'}
page_content='This section is related to MySQL' metadata={'roadmapName': 'MySQL', 'sectionTopic': 'Section 1'}
page_content='This section is related to Docker' metadata={'roadmapName': 'Docker', 'sectionTopic': 'Section 1'}
page_content='This section is related to AWS Lambda' metadata={'roadmapName': 'AWS Lambda', 'sectionTopic': 'Section 1'}
page_content='This section is related to Java' metadata={'roadmapName': 'Java', 'sectionTopic': 'Section 1'}
```
I tried to retrieve data from using selfQuery
```
from langchain.llms import OpenAI
from langchain.retrievers.self_query.base import SelfQueryRetriever
from langchain.chains.query_constructor.base import AttributeInfo
metadata_field_info = [
AttributeInfo(
name="sectionTopic",
description="The section topic of the roadmap",
type="string",
),
AttributeInfo(
name="roadmapName",
description="Name of the roadmap",
type="string",
),
]
document_content_description = "Roadmap section topics"
llm = OpenAI(temperature=0.1)
retriever = SelfQueryRetriever.from_llm(
llm, vectorstore, document_content_description, metadata_field_info, verbose=True,
search_kwargs={"k": 7}
)
retriever.get_relevant_documents("What are unique section topics that are related to css")
```
For the above code it gave repeated document.
```
query='css' filter=None limit=None
[Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Advanced Styling'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Typography and Fonts'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basic Styling'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Color and Background'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Spacing in CSS'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basic Styling'}),
Document(page_content='This section is related to CSS for beginners', metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Advanced Styling'})]
```
### Expected behavior
It should return 7 unique documents
```
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basics'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Color and Background'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Typography and Fonts'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Spacing in CSS'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Basic Styling'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Positioning Techniques'}
page_content='This section is related to CSS for beginners' metadata={'roadmapName': 'CSS for beginners', 'sectionTopic': 'Advanced Styling'}
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9532/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9532/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9531
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9531/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9531/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9531/events
|
https://github.com/langchain-ai/langchain/pull/9531
| 1,859,210,421 |
PR_kwDOIPDwls5YYLuy
| 9,531 |
tair fix distance_type error, and add hybrid search
|
{
"login": "tianhanwen",
"id": 35223092,
"node_id": "MDQ6VXNlcjM1MjIzMDky",
"avatar_url": "https://avatars.githubusercontent.com/u/35223092?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/tianhanwen",
"html_url": "https://github.com/tianhanwen",
"followers_url": "https://api.github.com/users/tianhanwen/followers",
"following_url": "https://api.github.com/users/tianhanwen/following{/other_user}",
"gists_url": "https://api.github.com/users/tianhanwen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tianhanwen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tianhanwen/subscriptions",
"organizations_url": "https://api.github.com/users/tianhanwen/orgs",
"repos_url": "https://api.github.com/users/tianhanwen/repos",
"events_url": "https://api.github.com/users/tianhanwen/events{/privacy}",
"received_events_url": "https://api.github.com/users/tianhanwen/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T11:52:30 | 2023-08-23T23:38:32 | 2023-08-23T23:38:32 |
CONTRIBUTOR
| null |
- fix: distance_type error,
- feature: Tair add hybrid search
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9531/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9531/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9531",
"html_url": "https://github.com/langchain-ai/langchain/pull/9531",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9531.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9531.patch",
"merged_at": "2023-08-23T23:38:32"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9530
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9530/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9530/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9530/events
|
https://github.com/langchain-ai/langchain/pull/9530
| 1,859,115,905 |
PR_kwDOIPDwls5YX21_
| 9,530 |
All prompts translated to russian
|
{
"login": "Rai220",
"id": 1329774,
"node_id": "MDQ6VXNlcjEzMjk3NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1329774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rai220",
"html_url": "https://github.com/Rai220",
"followers_url": "https://api.github.com/users/Rai220/followers",
"following_url": "https://api.github.com/users/Rai220/following{/other_user}",
"gists_url": "https://api.github.com/users/Rai220/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rai220/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rai220/subscriptions",
"organizations_url": "https://api.github.com/users/Rai220/orgs",
"repos_url": "https://api.github.com/users/Rai220/repos",
"events_url": "https://api.github.com/users/Rai220/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rai220/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T10:53:36 | 2023-08-22T08:10:44 | 2023-08-21T11:04:09 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9530/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9530/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9530",
"html_url": "https://github.com/langchain-ai/langchain/pull/9530",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9530.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9530.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9529
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9529/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9529/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9529/events
|
https://github.com/langchain-ai/langchain/pull/9529
| 1,859,109,956 |
PR_kwDOIPDwls5YX1gr
| 9,529 |
All prompts translation
|
{
"login": "Rai220",
"id": 1329774,
"node_id": "MDQ6VXNlcjEzMjk3NzQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1329774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Rai220",
"html_url": "https://github.com/Rai220",
"followers_url": "https://api.github.com/users/Rai220/followers",
"following_url": "https://api.github.com/users/Rai220/following{/other_user}",
"gists_url": "https://api.github.com/users/Rai220/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Rai220/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Rai220/subscriptions",
"organizations_url": "https://api.github.com/users/Rai220/orgs",
"repos_url": "https://api.github.com/users/Rai220/repos",
"events_url": "https://api.github.com/users/Rai220/events{/privacy}",
"received_events_url": "https://api.github.com/users/Rai220/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T10:49:53 | 2023-08-21T10:59:57 | 2023-08-21T10:51:22 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9529/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9529/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9529",
"html_url": "https://github.com/langchain-ai/langchain/pull/9529",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9529.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9529.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9528
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9528/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9528/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9528/events
|
https://github.com/langchain-ai/langchain/issues/9528
| 1,858,916,366 |
I_kwDOIPDwls5uzNAO
| 9,528 |
AttributeError: 'RecursiveCharacterTextSplitter' object has no attribute 'split_documents'
|
{
"login": "crlvn",
"id": 30684970,
"node_id": "MDQ6VXNlcjMwNjg0OTcw",
"avatar_url": "https://avatars.githubusercontent.com/u/30684970?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/crlvn",
"html_url": "https://github.com/crlvn",
"followers_url": "https://api.github.com/users/crlvn/followers",
"following_url": "https://api.github.com/users/crlvn/following{/other_user}",
"gists_url": "https://api.github.com/users/crlvn/gists{/gist_id}",
"starred_url": "https://api.github.com/users/crlvn/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/crlvn/subscriptions",
"organizations_url": "https://api.github.com/users/crlvn/orgs",
"repos_url": "https://api.github.com/users/crlvn/repos",
"events_url": "https://api.github.com/users/crlvn/events{/privacy}",
"received_events_url": "https://api.github.com/users/crlvn/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T08:54:33 | 2023-11-27T16:06:46 | 2023-11-27T16:06:45 |
NONE
| null |
### System Info
LangChain 0.0.74
Python 3.10
Windows 10
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.document_loaders import UnstructuredExcelLoader
from langchain.indexes import VectorstoreIndexCreator
from langchain.llms import OpenAI
from langchain.chat_models import ChatOpenAI
loader = UnstructuredExcelLoader("N:\Python\Data.xlsx", mode="elements")
index = VectorstoreIndexCreator().from_loaders([loader])
Gives the following:
Traceback (most recent call last):
Cell In[33], line 1
index = VectorstoreIndexCreator().from_loaders([loader])
File C:\Program Files\Anaconda3\lib\site-packages\langchain\indexes\vectorstore.py:73 in from_loaders
File C:\Program Files\Anaconda3\lib\site-packages\langchain\indexes\vectorstore.py:77 in from_documents
AttributeError: 'RecursiveCharacterTextSplitter' object has no attribute 'split_documents'
### Expected behavior
Hi,
When using the VectorstoreIndexCreator, I get an error:
AttributeError: 'RecursiveCharacterTextSplitter' object has no attribute 'split_documents'
In this case, it is when I want to upload an excel file, but I get the same when trying to upload a .txt get the same error when I try to upload .txt files (with TextLoader).
Many thanks for your help!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9528/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9528/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9527
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9527/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9527/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9527/events
|
https://github.com/langchain-ai/langchain/pull/9527
| 1,858,875,816 |
PR_kwDOIPDwls5YXCUU
| 9,527 |
Add AINetwork blockchain toolkit integration
|
{
"login": "klae01",
"id": 101966044,
"node_id": "U_kgDOBhPg3A",
"avatar_url": "https://avatars.githubusercontent.com/u/101966044?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/klae01",
"html_url": "https://github.com/klae01",
"followers_url": "https://api.github.com/users/klae01/followers",
"following_url": "https://api.github.com/users/klae01/following{/other_user}",
"gists_url": "https://api.github.com/users/klae01/gists{/gist_id}",
"starred_url": "https://api.github.com/users/klae01/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/klae01/subscriptions",
"organizations_url": "https://api.github.com/users/klae01/orgs",
"repos_url": "https://api.github.com/users/klae01/repos",
"events_url": "https://api.github.com/users/klae01/events{/privacy}",
"received_events_url": "https://api.github.com/users/klae01/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T08:31:14 | 2023-08-22T15:08:38 | 2023-08-22T15:03:34 |
CONTRIBUTOR
| null |
# Description
This PR introduces a new toolkit for interacting with the AINetwork blockchain. The toolkit provides a set of tools for performing various operations on the AINetwork blockchain, such as transferring AIN, reading and writing values to the blockchain database, managing apps, setting rules and owners.
# Dependencies
[ain-py](https://github.com/ainblockchain/ain-py) >= 1.0.2
# Misc
The example notebook (langchain/docs/extras/integrations/toolkits/ainetwork.ipynb) is in the PR
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9527/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9527/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9527",
"html_url": "https://github.com/langchain-ai/langchain/pull/9527",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9527.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9527.patch",
"merged_at": "2023-08-22T15:03:34"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9526
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9526/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9526/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9526/events
|
https://github.com/langchain-ai/langchain/issues/9526
| 1,858,823,860 |
I_kwDOIPDwls5uy2a0
| 9,526 |
Chatbot responses are deterorating on using langchain compared to open AI completion
|
{
"login": "dkiran1",
"id": 101701521,
"node_id": "U_kgDOBg_XkQ",
"avatar_url": "https://avatars.githubusercontent.com/u/101701521?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dkiran1",
"html_url": "https://github.com/dkiran1",
"followers_url": "https://api.github.com/users/dkiran1/followers",
"following_url": "https://api.github.com/users/dkiran1/following{/other_user}",
"gists_url": "https://api.github.com/users/dkiran1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dkiran1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dkiran1/subscriptions",
"organizations_url": "https://api.github.com/users/dkiran1/orgs",
"repos_url": "https://api.github.com/users/dkiran1/repos",
"events_url": "https://api.github.com/users/dkiran1/events{/privacy}",
"received_events_url": "https://api.github.com/users/dkiran1/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899126096,
"node_id": "LA_kwDOIPDwls8AAAABJAK7UA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20memory",
"name": "area: memory",
"color": "BFDADC",
"default": false,
"description": "Related to memory module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T08:00:24 | 2023-11-30T16:07:01 | 2023-11-30T16:07:00 |
NONE
| null |
### Issue you'd like to raise.
Hi,
Iam using langchain version 0.0.187.
Here are the steps that I have followed to get chat response uisng langchain
```
def initlize_llm_chain_prompt(self):
print("initilizing llm chain prompt")
llm_model=AzureOpenAI(deployment_name=self.AZURE_OPENAI_CHATGPT_DEPLOYMENT,model_name=os.environ.get("AZURE_OPENAI_CHATGPT_MODEL"),
temperature=0,
max_tokens=1000)
llm_chat_prompt = PromptTemplate(input_variables=["question"], template=self.prompt_template)
question_generator = LLMChain(llm=llm_model, prompt=llm_chat_prompt)
doc_chain=load_qa_chain(llm_model, chain_type="stuff")
memory = ConversationBufferWindowMemory(memory_key="chat_history",return_messages=True,k=4) # remember last 4 conversations
self.llm_chain_prompt=ConversationalRetrievalChain(retriever=self.elastic_vector_search.as_retriever(search_kwargs={"k": 5}),
memory=memory,question_generator=question_generator,combine_docs_chain=doc_chain,verbose=True,get_chat_history=self.get_chat_history_custom)
```
**_Here is how Iam calling chat_**
`result=self.llm_chain({"question": user_query}, )`
Here is the Prompt template format
```
prompt_template = """<|im_start|>System
Answer ONLY with the facts listed in the Referenced documents.
If there isn't enough information in the Sources , say you don't know.
Do not strictly generate answers if its not available in the Source and even though if you know the answer for it.
<|im_end|>
<|im_start|>
UserQuery:
{question}
<|im_end|>
<|im_start|>Chatbot:
"""
```
In get_chat_history_custom() Iam just appending the conversation history data
```
def get_chat_history_custom(self,inputs):
res = []
if(len(inputs)>0):
inp_len=len(inputs)
for i in range(0,inp_len,2):
human_content = inputs[i].content
ai_content=inputs[i+1].content.split('Question')[0]
res.append(f"Human:{human_content}\AIMessage:{ai_content}")
buf="\n".join(res)
return buf
else:
return ""
```
What I have observed is Iam not getting good responses even though Iam providing the relavent data as the source to the chat. Iam getiing good and expected answers if I use open AI completion call. Can I please knoww, If any of the above steps is wrong? and Do you recommond any other version langchain?
### Suggestion:
Chatbot responses are not getting as expected in langchain on compared to the responses of open AI completion
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9526/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9526/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9525
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9525/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9525/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9525/events
|
https://github.com/langchain-ai/langchain/pull/9525
| 1,858,812,394 |
PR_kwDOIPDwls5YW0aY
| 9,525 |
Bagatur/epsilla
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T07:53:34 | 2023-08-21T19:52:17 | 2023-08-21T19:52:17 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9525/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9525/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9525",
"html_url": "https://github.com/langchain-ai/langchain/pull/9525",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9525.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9525.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9524
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9524/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9524/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9524/events
|
https://github.com/langchain-ai/langchain/pull/9524
| 1,858,761,965 |
PR_kwDOIPDwls5YWpjs
| 9,524 |
Bagatur/doc loader confluence
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T07:20:34 | 2023-08-21T19:40:45 | 2023-08-21T19:40:44 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9524/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9524/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9524",
"html_url": "https://github.com/langchain-ai/langchain/pull/9524",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9524.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9524.patch",
"merged_at": "2023-08-21T19:40:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9523
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9523/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9523/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9523/events
|
https://github.com/langchain-ai/langchain/issues/9523
| 1,858,654,621 |
I_kwDOIPDwls5uyNGd
| 9,523 |
Request for using custom fine tuned models
|
{
"login": "daniyal-arif-tps",
"id": 137474759,
"node_id": "U_kgDOCDGyxw",
"avatar_url": "https://avatars.githubusercontent.com/u/137474759?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/daniyal-arif-tps",
"html_url": "https://github.com/daniyal-arif-tps",
"followers_url": "https://api.github.com/users/daniyal-arif-tps/followers",
"following_url": "https://api.github.com/users/daniyal-arif-tps/following{/other_user}",
"gists_url": "https://api.github.com/users/daniyal-arif-tps/gists{/gist_id}",
"starred_url": "https://api.github.com/users/daniyal-arif-tps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/daniyal-arif-tps/subscriptions",
"organizations_url": "https://api.github.com/users/daniyal-arif-tps/orgs",
"repos_url": "https://api.github.com/users/daniyal-arif-tps/repos",
"events_url": "https://api.github.com/users/daniyal-arif-tps/events{/privacy}",
"received_events_url": "https://api.github.com/users/daniyal-arif-tps/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T05:59:17 | 2023-11-27T16:06:56 | 2023-11-27T16:06:56 |
NONE
| null |
### Feature request
Issue you'd like to raise.
langchain==0.0.162
Hi, I am using a fine tuned model that generates user prompts to SQL queries, instead of the default model provided by langchain. The reason for doing this is because langchain does not know about all the data from the database unless you provide context to it but there is a lot of data hence why it can create incorrect SQL queries also it is unable to form complex queries for similar reasons even after you give it context.
So my question is based upon the output I am getting below. Is there a way to keep the initial question I asked the same throughout like in the action input, instead of "SOME_BRANCH_NAME" I want the entire sentence to go through to the SQLDatabaseChain like the user initially asked which is "what is the summary of last 3 issues reported by SOME_BRANCH_NAME". Basically since the Action Input is different from what the user asked, it is generating the wrong SQL query since what it should be doing is this, "SELECT summary FROM sla_tat_summary WHERE organization like '%SOME_BRANCH_NAME%' ORDER BY ReportedDate DESC LIMIT 3;" instead of what is shown below. I could just use the SQLDatabaseChain on its own which does get the exact query I want since I was able to make sure only the prompt the user gave went through, but the agent is needed since I am using it for things other than SQL generation.
user prompt: what is the summary of last 3 issues reported by SOME_BRANCH_NAME
Entering new AgentExecutor chain...
I need to find out what the last 3 issues reported by SOME_BRANCH_NAME were.
Action: TPS Issue Tracker Database
Action Input: SOME_BRANCH_NAME
Entering new SQLDatabaseChain chain...
SOME_BRANCH_NAME:
SELECT organization, COUNT() FROM sla_tat_summary WHERE severity = 'Level 2 - Critical' GROUP BY organization ORDER BY COUNT() DESC LIMIT 1
In summary I want to have an option to keep my user prompt unchanged throughout the flow from the agent to the to SQLdatabasechain
### Motivation
I need a way for langchain to be able to use fine-tuned models for multi-class classification and have a way to not use hard-coded stopping points rather have it as a parameter for a developer to select.
### Your contribution
my custom langchain package would only integrate well with my own use case hence why I am not submitting a PR. Also even though I am using langchain==0.0.162. But the issue would be similar in the latest langchain version
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9523/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9523/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9522
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9522/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9522/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9522/events
|
https://github.com/langchain-ai/langchain/issues/9522
| 1,858,529,130 |
I_kwDOIPDwls5uxudq
| 9,522 |
Issue: Proxy not successfully used
|
{
"login": "zqszqszqstvt",
"id": 90195170,
"node_id": "MDQ6VXNlcjkwMTk1MTcw",
"avatar_url": "https://avatars.githubusercontent.com/u/90195170?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zqszqszqstvt",
"html_url": "https://github.com/zqszqszqstvt",
"followers_url": "https://api.github.com/users/zqszqszqstvt/followers",
"following_url": "https://api.github.com/users/zqszqszqstvt/following{/other_user}",
"gists_url": "https://api.github.com/users/zqszqszqstvt/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zqszqszqstvt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zqszqszqstvt/subscriptions",
"organizations_url": "https://api.github.com/users/zqszqszqstvt/orgs",
"repos_url": "https://api.github.com/users/zqszqszqstvt/repos",
"events_url": "https://api.github.com/users/zqszqszqstvt/events{/privacy}",
"received_events_url": "https://api.github.com/users/zqszqszqstvt/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-21T03:49:38 | 2023-11-28T16:08:20 | 2023-11-28T16:08:19 |
NONE
| null |
### Issue you'd like to raise.
This is my code, I'm not sure if it's correct:
`from langchain.llms import ChatGLM
from langchain.agents import load_tools, initialize_agent
from langchain.agents import AgentType, tool
from datetime import date
@tool
def time(text: str) -> str:
"""返回今天的日期,用于回答用户关于今天日期的问题。
输入应该始终为空字符串,此函数将始终返回今天的日期。
任何日期计算都应在此函数外部进行。"""
return str(date.today())
endpoint_url = "http://0.0.0.0:8000"
llm = ChatGLM(
endpoint_url=endpoint_url,
max_token=80000,
# history=[["我有一些问题!","我可以回答你的任何问题,请向我提问!"]],
top_p=0.9,
model_kwargs={"sample_model_args": False},
)
tools = load_tools([], llm=llm)
agent = initialize_agent(
tools + [time],
llm,
agent=AgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION,
handle_parsing_errors=True,
verbose=True
)
try:
result = agent.run("今天是几号?")
print(result)
except Exception as e:
print("外部访问异常:", e)`
However, the answer after running is not accurate:
`(chatglm_env) root@autodl-container-b25f1193e8-0ae83321:~/autodl-tmp# python t_n.py
> Entering new AgentExecutor chain...
Could not parse LLM output: 今天是2023年2月18日。
Observation: Invalid or incomplete response
Thought:Could not parse LLM output: Today is February 18th, 2023.
Observation: Invalid or incomplete response
Thought:Final Answer: 今天是2023年2月18日。
> Finished chain.
今天是2023年2月18日。`
Please help me
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9522/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9522/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9521
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9521/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9521/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9521/events
|
https://github.com/langchain-ai/langchain/pull/9521
| 1,858,441,300 |
PR_kwDOIPDwls5YVmLH
| 9,521 |
fix: Updated marqo integration for marqo version 1.0.0+
|
{
"login": "RaynorChavez",
"id": 16517734,
"node_id": "MDQ6VXNlcjE2NTE3NzM0",
"avatar_url": "https://avatars.githubusercontent.com/u/16517734?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RaynorChavez",
"html_url": "https://github.com/RaynorChavez",
"followers_url": "https://api.github.com/users/RaynorChavez/followers",
"following_url": "https://api.github.com/users/RaynorChavez/following{/other_user}",
"gists_url": "https://api.github.com/users/RaynorChavez/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RaynorChavez/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RaynorChavez/subscriptions",
"organizations_url": "https://api.github.com/users/RaynorChavez/orgs",
"repos_url": "https://api.github.com/users/RaynorChavez/repos",
"events_url": "https://api.github.com/users/RaynorChavez/events{/privacy}",
"received_events_url": "https://api.github.com/users/RaynorChavez/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-21T02:34:46 | 2023-08-21T17:43:19 | 2023-08-21T17:43:15 |
CONTRIBUTOR
| null |
- Description: Updated marqo integration to use tensor_fields instead of non_tensor_fields. Upgraded marqo version to 1.2.4
- Dependencies: marqo 1.2.4
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9521/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9521/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9521",
"html_url": "https://github.com/langchain-ai/langchain/pull/9521",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9521.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9521.patch",
"merged_at": "2023-08-21T17:43:15"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9520
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9520/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9520/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9520/events
|
https://github.com/langchain-ai/langchain/issues/9520
| 1,858,436,969 |
I_kwDOIPDwls5uxX9p
| 9,520 |
AttributeError: 'super' object has no attribute 'parse_obj' when using OpenAPISpec.from_file
|
{
"login": "elliexcoding",
"id": 46810559,
"node_id": "MDQ6VXNlcjQ2ODEwNTU5",
"avatar_url": "https://avatars.githubusercontent.com/u/46810559?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/elliexcoding",
"html_url": "https://github.com/elliexcoding",
"followers_url": "https://api.github.com/users/elliexcoding/followers",
"following_url": "https://api.github.com/users/elliexcoding/following{/other_user}",
"gists_url": "https://api.github.com/users/elliexcoding/gists{/gist_id}",
"starred_url": "https://api.github.com/users/elliexcoding/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/elliexcoding/subscriptions",
"organizations_url": "https://api.github.com/users/elliexcoding/orgs",
"repos_url": "https://api.github.com/users/elliexcoding/repos",
"events_url": "https://api.github.com/users/elliexcoding/events{/privacy}",
"received_events_url": "https://api.github.com/users/elliexcoding/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 11 | 2023-08-21T02:28:34 | 2024-01-14T18:32:49 | null |
NONE
| null |
### System Info
Langchain version 0.0.268
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Load in .yaml file containing the OpenAPI specification.
2. Call the OpenAPISpec with ` open_api_spec = OpenAPISpec.from_file(file_path)`
Error shows that in _openapi.py_ line 202 ,`return super().parse_obj(obj)` no longer inherits the super method from Pydantic's BaseModel parse_obj.
### Expected behavior
The OpenAPISpec should be delivered so that it can be passed on to `NLAToolkit.from_llm_and_spec`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9520/reactions",
"total_count": 4,
"+1": 4,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9520/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9519
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9519/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9519/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9519/events
|
https://github.com/langchain-ai/langchain/issues/9519
| 1,858,432,029 |
I_kwDOIPDwls5uxWwd
| 9,519 |
FAISS vectorstore `similarity_search_with_relevance_scores` returns strange/false result with `MAX_INNER_PRODUCT`
|
{
"login": "jpzhangvincent",
"id": 7220686,
"node_id": "MDQ6VXNlcjcyMjA2ODY=",
"avatar_url": "https://avatars.githubusercontent.com/u/7220686?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jpzhangvincent",
"html_url": "https://github.com/jpzhangvincent",
"followers_url": "https://api.github.com/users/jpzhangvincent/followers",
"following_url": "https://api.github.com/users/jpzhangvincent/following{/other_user}",
"gists_url": "https://api.github.com/users/jpzhangvincent/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jpzhangvincent/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jpzhangvincent/subscriptions",
"organizations_url": "https://api.github.com/users/jpzhangvincent/orgs",
"repos_url": "https://api.github.com/users/jpzhangvincent/repos",
"events_url": "https://api.github.com/users/jpzhangvincent/events{/privacy}",
"received_events_url": "https://api.github.com/users/jpzhangvincent/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 3 | 2023-08-21T02:21:28 | 2023-12-25T16:09:00 | 2023-12-25T16:08:59 |
CONTRIBUTOR
| null |
### System Info
langchain==0.0.268
python=3.9
mac
### Who can help?
I used the FAISS as the vector store. it seems that the `similarity_search_with_score` (supposedly ranked by distance: low to high) and `similarity_search_with_relevance_scores`((supposedly ranked by relevance: high to low) produce conflicting results when specifying `MAX_INNER_PRODUCT` as the distance strategy. Please see the screenshot below:
<img width="675" alt="Screenshot 2023-08-20 at 6 54 15 PM" src="https://github.com/langchain-ai/langchain/assets/7220686/88981277-a0b4-462b-929c-63bd19d4faff">
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
from langchain.vectorstores.faiss import FAISS
from langchain.embeddings import HuggingFaceEmbeddings
embedding_engine = HuggingFaceEmbeddings(
model_name= "BAAI/bge-base-en", #"sentence-transformers/all-mpnet-base-v2",
model_kwargs={"device": "cpu"},
encode_kwargs={'normalize_embeddings': True} # set True to compute cosine similarity
)
texts = ["I like apples", "I hate apples", "I like oranges"]
simple_vecdb = FAISS.from_texts(texts,
embedding_engine,
distance_strategy="MAX_INNER_PRODUCT")
# test 1
simple_vecdb.similarity_search_with_score("I like apples")
# test 2
simple_vecdb.similarity_search_with_relevance_scores("I like apples")
### Expected behavior
For similarity_search_with_score, if the `similarity_search_with_score` documentation is correct saying that "List of documents most similar to the query text with L2 distance in float. Lower score represents more similarity.", then the result from `similarity_search_with_score` should have matched the identical text `I like apple` with `(distance)score=0` and the `similarity_search_with_relevance_scores` with `(relevance)score=1`, no?
if the FAISS return the cosine similarity score already during the `similarity_search_with_score`call, should the `_max_inner_product_relevance_score_fn` for the FAISS just return the identical score instead of `1-score` when calculating the relevance score?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9519/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9519/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9518
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9518/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9518/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9518/events
|
https://github.com/langchain-ai/langchain/pull/9518
| 1,858,327,627 |
PR_kwDOIPDwls5YVNdZ
| 9,518 |
beef up retrieval docs
|
{
"login": "hwchase17",
"id": 11986836,
"node_id": "MDQ6VXNlcjExOTg2ODM2",
"avatar_url": "https://avatars.githubusercontent.com/u/11986836?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hwchase17",
"html_url": "https://github.com/hwchase17",
"followers_url": "https://api.github.com/users/hwchase17/followers",
"following_url": "https://api.github.com/users/hwchase17/following{/other_user}",
"gists_url": "https://api.github.com/users/hwchase17/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hwchase17/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hwchase17/subscriptions",
"organizations_url": "https://api.github.com/users/hwchase17/orgs",
"repos_url": "https://api.github.com/users/hwchase17/repos",
"events_url": "https://api.github.com/users/hwchase17/events{/privacy}",
"received_events_url": "https://api.github.com/users/hwchase17/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-21T00:21:19 | 2023-08-21T14:22:23 | 2023-08-21T14:22:23 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9518/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9518/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9518",
"html_url": "https://github.com/langchain-ai/langchain/pull/9518",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9518.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9518.patch",
"merged_at": "2023-08-21T14:22:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9516
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9516/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9516/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9516/events
|
https://github.com/langchain-ai/langchain/pull/9516
| 1,858,310,343 |
PR_kwDOIPDwls5YVJxU
| 9,516 |
`Qwen` model example
|
{
"login": "leo-gan",
"id": 2256422,
"node_id": "MDQ6VXNlcjIyNTY0MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/2256422?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/leo-gan",
"html_url": "https://github.com/leo-gan",
"followers_url": "https://api.github.com/users/leo-gan/followers",
"following_url": "https://api.github.com/users/leo-gan/following{/other_user}",
"gists_url": "https://api.github.com/users/leo-gan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/leo-gan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/leo-gan/subscriptions",
"organizations_url": "https://api.github.com/users/leo-gan/orgs",
"repos_url": "https://api.github.com/users/leo-gan/repos",
"events_url": "https://api.github.com/users/leo-gan/events{/privacy}",
"received_events_url": "https://api.github.com/users/leo-gan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-20T23:43:54 | 2023-08-21T01:56:16 | 2023-08-21T00:21:45 |
COLLABORATOR
| null |
added an example for `Qwen-7B` model on `HugginfFaceHub` :hugs:
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9516/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9516/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9516",
"html_url": "https://github.com/langchain-ai/langchain/pull/9516",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9516.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9516.patch",
"merged_at": "2023-08-21T00:21:45"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9515
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9515/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9515/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9515/events
|
https://github.com/langchain-ai/langchain/pull/9515
| 1,858,238,773 |
PR_kwDOIPDwls5YU7te
| 9,515 |
Anthropic: Allow the use of kwargs consistent with ChatOpenAI.
|
{
"login": "joshuasundance-swca",
"id": 84336755,
"node_id": "MDQ6VXNlcjg0MzM2NzU1",
"avatar_url": "https://avatars.githubusercontent.com/u/84336755?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joshuasundance-swca",
"html_url": "https://github.com/joshuasundance-swca",
"followers_url": "https://api.github.com/users/joshuasundance-swca/followers",
"following_url": "https://api.github.com/users/joshuasundance-swca/following{/other_user}",
"gists_url": "https://api.github.com/users/joshuasundance-swca/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshuasundance-swca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshuasundance-swca/subscriptions",
"organizations_url": "https://api.github.com/users/joshuasundance-swca/orgs",
"repos_url": "https://api.github.com/users/joshuasundance-swca/repos",
"events_url": "https://api.github.com/users/joshuasundance-swca/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshuasundance-swca/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-20T19:21:54 | 2023-08-24T01:23:22 | 2023-08-24T01:23:21 |
CONTRIBUTOR
| null |
- Description: ~~Creates a new root_validator in `_AnthropicCommon` that allows the use of `model_name` and `max_tokens` keyword arguments.~~ Adds pydantic field aliases to support `model_name` and `max_tokens` as keyword arguments. Ultimately, this makes `ChatAnthropic` more consistent with `ChatOpenAI`, making the two classes more interchangeable for the developer.
- Issue: https://github.com/langchain-ai/langchain/issues/9510
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9515/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9515/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9515",
"html_url": "https://github.com/langchain-ai/langchain/pull/9515",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9515.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9515.patch",
"merged_at": "2023-08-24T01:23:21"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9513
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9513/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9513/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9513/events
|
https://github.com/langchain-ai/langchain/pull/9513
| 1,858,152,951 |
PR_kwDOIPDwls5YUq19
| 9,513 |
Document loaders confluence keep newlines
|
{
"login": "chanjetsdp",
"id": 4714703,
"node_id": "MDQ6VXNlcjQ3MTQ3MDM=",
"avatar_url": "https://avatars.githubusercontent.com/u/4714703?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/chanjetsdp",
"html_url": "https://github.com/chanjetsdp",
"followers_url": "https://api.github.com/users/chanjetsdp/followers",
"following_url": "https://api.github.com/users/chanjetsdp/following{/other_user}",
"gists_url": "https://api.github.com/users/chanjetsdp/gists{/gist_id}",
"starred_url": "https://api.github.com/users/chanjetsdp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chanjetsdp/subscriptions",
"organizations_url": "https://api.github.com/users/chanjetsdp/orgs",
"repos_url": "https://api.github.com/users/chanjetsdp/repos",
"events_url": "https://api.github.com/users/chanjetsdp/events{/privacy}",
"received_events_url": "https://api.github.com/users/chanjetsdp/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-20T14:57:45 | 2023-08-21T19:41:11 | 2023-08-21T19:41:10 |
CONTRIBUTOR
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9513/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9513/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9513",
"html_url": "https://github.com/langchain-ai/langchain/pull/9513",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9513.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9513.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9512
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9512/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9512/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9512/events
|
https://github.com/langchain-ai/langchain/pull/9512
| 1,858,125,619 |
PR_kwDOIPDwls5YUlg_
| 9,512 |
Fix timeout by retrying policy
|
{
"login": "moghadas76",
"id": 23231913,
"node_id": "MDQ6VXNlcjIzMjMxOTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/23231913?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/moghadas76",
"html_url": "https://github.com/moghadas76",
"followers_url": "https://api.github.com/users/moghadas76/followers",
"following_url": "https://api.github.com/users/moghadas76/following{/other_user}",
"gists_url": "https://api.github.com/users/moghadas76/gists{/gist_id}",
"starred_url": "https://api.github.com/users/moghadas76/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moghadas76/subscriptions",
"organizations_url": "https://api.github.com/users/moghadas76/orgs",
"repos_url": "https://api.github.com/users/moghadas76/repos",
"events_url": "https://api.github.com/users/moghadas76/events{/privacy}",
"received_events_url": "https://api.github.com/users/moghadas76/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-20T13:29:14 | 2023-08-20T23:22:10 | 2023-08-20T22:57:21 |
NONE
| null |
- Description: Fix timeout by retrying policy
- Issue: the issue #9509
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9512/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9512/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9512",
"html_url": "https://github.com/langchain-ai/langchain/pull/9512",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9512.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9512.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9511
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9511/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9511/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9511/events
|
https://github.com/langchain-ai/langchain/issues/9511
| 1,858,114,722 |
I_kwDOIPDwls5uwJSi
| 9,511 |
pgvector extension is not installed
|
{
"login": "helmanofer",
"id": 6523193,
"node_id": "MDQ6VXNlcjY1MjMxOTM=",
"avatar_url": "https://avatars.githubusercontent.com/u/6523193?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/helmanofer",
"html_url": "https://github.com/helmanofer",
"followers_url": "https://api.github.com/users/helmanofer/followers",
"following_url": "https://api.github.com/users/helmanofer/following{/other_user}",
"gists_url": "https://api.github.com/users/helmanofer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/helmanofer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/helmanofer/subscriptions",
"organizations_url": "https://api.github.com/users/helmanofer/orgs",
"repos_url": "https://api.github.com/users/helmanofer/repos",
"events_url": "https://api.github.com/users/helmanofer/events{/privacy}",
"received_events_url": "https://api.github.com/users/helmanofer/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-20T12:52:42 | 2023-12-06T17:44:06 | 2023-12-06T17:44:05 |
NONE
| null |
https://github.com/langchain-ai/langchain/blame/e51bccdb2890fa193ce7eb5bf7e13c28afef4dc4/libs/langchain/langchain/vectorstores/pgvector.py#L117
@hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9511/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9511/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9510
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9510/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9510/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9510/events
|
https://github.com/langchain-ai/langchain/issues/9510
| 1,858,110,406 |
I_kwDOIPDwls5uwIPG
| 9,510 |
missing model_name param in ChatAnthropic
|
{
"login": "shon-otmazgin",
"id": 17564565,
"node_id": "MDQ6VXNlcjE3NTY0NTY1",
"avatar_url": "https://avatars.githubusercontent.com/u/17564565?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shon-otmazgin",
"html_url": "https://github.com/shon-otmazgin",
"followers_url": "https://api.github.com/users/shon-otmazgin/followers",
"following_url": "https://api.github.com/users/shon-otmazgin/following{/other_user}",
"gists_url": "https://api.github.com/users/shon-otmazgin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shon-otmazgin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shon-otmazgin/subscriptions",
"organizations_url": "https://api.github.com/users/shon-otmazgin/orgs",
"repos_url": "https://api.github.com/users/shon-otmazgin/repos",
"events_url": "https://api.github.com/users/shon-otmazgin/events{/privacy}",
"received_events_url": "https://api.github.com/users/shon-otmazgin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-20T12:37:45 | 2023-12-07T16:06:40 | 2023-12-07T16:06:39 |
NONE
| null |
### System Info
Python 3.8.16
langchain==0.0.268
### Who can help?
@hwchase17 @agola11
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
`ChatAnthropic` doesn't have `model_name` attribute. instead, it has a `model` attribute that specifies the name. Other chat models such as `ChatOpenAI`, `ChatVertexAI` has `model_name` attribute, this breaks the interface while integrating with multiple LLMs.
### Expected behavior
`llm = ChatAnthropic(model_name='claude-2')`
`print(llm.model_name)`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9510/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9510/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9509
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9509/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9509/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9509/events
|
https://github.com/langchain-ai/langchain/issues/9509
| 1,858,096,249 |
I_kwDOIPDwls5uwEx5
| 9,509 |
TimeOutError unhandled
|
{
"login": "moghadas76",
"id": 23231913,
"node_id": "MDQ6VXNlcjIzMjMxOTEz",
"avatar_url": "https://avatars.githubusercontent.com/u/23231913?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/moghadas76",
"html_url": "https://github.com/moghadas76",
"followers_url": "https://api.github.com/users/moghadas76/followers",
"following_url": "https://api.github.com/users/moghadas76/following{/other_user}",
"gists_url": "https://api.github.com/users/moghadas76/gists{/gist_id}",
"starred_url": "https://api.github.com/users/moghadas76/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moghadas76/subscriptions",
"organizations_url": "https://api.github.com/users/moghadas76/orgs",
"repos_url": "https://api.github.com/users/moghadas76/repos",
"events_url": "https://api.github.com/users/moghadas76/events{/privacy}",
"received_events_url": "https://api.github.com/users/moghadas76/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-20T11:50:21 | 2023-11-26T16:06:29 | 2023-11-26T16:06:28 |
NONE
| null |
### System Info
`ValueError Traceback (most recent call last)
Cell In[35], line 3
1 query = "What did the president say about the Supreme Court"
2 docs = db.similarity_search(query)
----> 3 chain.run(input_documents=docs, question=query)
File [~/.local/lib/python3.10/site-packages/langchain/chains/base.py:480](https://file+.vscode-resource.vscode-cdn.net/home/moghadas/toy_projects/~/.local/lib/python3.10/site-packages/langchain/chains/base.py:480), in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
475 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
476 _output_key
477 ]
479 if kwargs and not args:
--> 480 return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
481 _output_key
482 ]
484 if not kwargs and not args:
485 raise ValueError(
486 "`run` supported with either positional arguments or keyword arguments,"
487 " but none were provided."
488 )
File [~/.local/lib/python3.10/site-packages/langchain/chains/base.py:282](https://file+.vscode-resource.vscode-cdn.net/home/moghadas/toy_projects/~/.local/lib/python3.10/site-packages/langchain/chains/base.py:282), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, include_run_info)
280 except (KeyboardInterrupt, Exception) as e:
281 run_manager.on_chain_error(e)
--> 282 raise e
...
113 if self.client.task == "text-generation":
114 # Text generation return includes the starter text.
115 text = response[0]["generated_text"][len(prompt) :]
ValueError: Error raised by inference API: Model google/flan-t5-xl time out`
This exception should be handled
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
`query = "What did the president say about the Supreme Court"
docs = db.similarity_search(query)
chain.run(input_documents=docs, question=query)`
### Expected behavior
Retry mechanism, or caching
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9509/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9509/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9508
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9508/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9508/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9508/events
|
https://github.com/langchain-ai/langchain/pull/9508
| 1,858,044,596 |
PR_kwDOIPDwls5YUVp3
| 9,508 |
Fixing class calling error in the documentation of connecting_to_a_feature_store.ipynb
|
{
"login": "EpixMan",
"id": 65122296,
"node_id": "MDQ6VXNlcjY1MTIyMjk2",
"avatar_url": "https://avatars.githubusercontent.com/u/65122296?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EpixMan",
"html_url": "https://github.com/EpixMan",
"followers_url": "https://api.github.com/users/EpixMan/followers",
"following_url": "https://api.github.com/users/EpixMan/following{/other_user}",
"gists_url": "https://api.github.com/users/EpixMan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EpixMan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EpixMan/subscriptions",
"organizations_url": "https://api.github.com/users/EpixMan/orgs",
"repos_url": "https://api.github.com/users/EpixMan/repos",
"events_url": "https://api.github.com/users/EpixMan/events{/privacy}",
"received_events_url": "https://api.github.com/users/EpixMan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-20T08:45:05 | 2023-08-20T22:59:40 | 2023-08-20T22:59:40 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9508/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9508/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9508",
"html_url": "https://github.com/langchain-ai/langchain/pull/9508",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9508.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9508.patch",
"merged_at": "2023-08-20T22:59:40"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9507
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9507/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9507/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9507/events
|
https://github.com/langchain-ai/langchain/pull/9507
| 1,858,031,591 |
PR_kwDOIPDwls5YUTD4
| 9,507 |
Added In-Depth Langchain Agent Execution Guide
|
{
"login": "IlyaKIS1",
"id": 63134180,
"node_id": "MDQ6VXNlcjYzMTM0MTgw",
"avatar_url": "https://avatars.githubusercontent.com/u/63134180?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/IlyaKIS1",
"html_url": "https://github.com/IlyaKIS1",
"followers_url": "https://api.github.com/users/IlyaKIS1/followers",
"following_url": "https://api.github.com/users/IlyaKIS1/following{/other_user}",
"gists_url": "https://api.github.com/users/IlyaKIS1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/IlyaKIS1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/IlyaKIS1/subscriptions",
"organizations_url": "https://api.github.com/users/IlyaKIS1/orgs",
"repos_url": "https://api.github.com/users/IlyaKIS1/repos",
"events_url": "https://api.github.com/users/IlyaKIS1/events{/privacy}",
"received_events_url": "https://api.github.com/users/IlyaKIS1/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-20T08:00:04 | 2023-08-20T22:59:01 | 2023-08-20T22:59:01 |
CONTRIBUTOR
| null |
Made the notion document of how Langchain executes agents method by method in the codebase.
Can be helpful for developers that just started working with the Langchain codebase.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9507/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9507/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9507",
"html_url": "https://github.com/langchain-ai/langchain/pull/9507",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9507.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9507.patch",
"merged_at": "2023-08-20T22:59:01"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9506
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9506/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9506/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9506/events
|
https://github.com/langchain-ai/langchain/issues/9506
| 1,857,998,389 |
I_kwDOIPDwls5uvs41
| 9,506 |
how to improve the perfromance of agents to get better responses from the local model like gpt4all
|
{
"login": "Kuramdasu-ujwala-devi",
"id": 69832170,
"node_id": "MDQ6VXNlcjY5ODMyMTcw",
"avatar_url": "https://avatars.githubusercontent.com/u/69832170?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Kuramdasu-ujwala-devi",
"html_url": "https://github.com/Kuramdasu-ujwala-devi",
"followers_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/followers",
"following_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/following{/other_user}",
"gists_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/subscriptions",
"organizations_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/orgs",
"repos_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/repos",
"events_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/events{/privacy}",
"received_events_url": "https://api.github.com/users/Kuramdasu-ujwala-devi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 4899412369,
"node_id": "LA_kwDOIPDwls8AAAABJAcZkQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20agent",
"name": "area: agent",
"color": "BFD4F2",
"default": false,
"description": "Related to agents module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-20T06:25:58 | 2023-12-02T16:06:07 | 2023-12-02T16:06:06 |
NONE
| null |
how to improve the perfromance of agents to get better responses from the local model like gpt4all
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9506/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9506/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9505
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9505/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9505/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9505/events
|
https://github.com/langchain-ai/langchain/issues/9505
| 1,857,988,199 |
I_kwDOIPDwls5uvqZn
| 9,505 |
QAGenerationChain.run often ends in JSONDecodeError
|
{
"login": "joshuasundance-swca",
"id": 84336755,
"node_id": "MDQ6VXNlcjg0MzM2NzU1",
"avatar_url": "https://avatars.githubusercontent.com/u/84336755?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joshuasundance-swca",
"html_url": "https://github.com/joshuasundance-swca",
"followers_url": "https://api.github.com/users/joshuasundance-swca/followers",
"following_url": "https://api.github.com/users/joshuasundance-swca/following{/other_user}",
"gists_url": "https://api.github.com/users/joshuasundance-swca/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshuasundance-swca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshuasundance-swca/subscriptions",
"organizations_url": "https://api.github.com/users/joshuasundance-swca/orgs",
"repos_url": "https://api.github.com/users/joshuasundance-swca/repos",
"events_url": "https://api.github.com/users/joshuasundance-swca/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshuasundance-swca/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 5 | 2023-08-20T06:01:56 | 2023-10-03T13:43:01 | null |
CONTRIBUTOR
| null |
The `QAGenerationChain` as it is currently written is prone to a `JSONDecodeError`, as mentioned in https://github.com/langchain-ai/langchain/pull/9503. That was my naive attempt to fix the problem I was having, but as I explained in closing the PR, I think a `PydanticOutputParser` with a more instructive prompt or an auto-fixing parser would be more robust. Plus, I think the successful runs after implementing my fix were just luck. 🤣
In `QAGenerationChain._call`, after generation, `json.loads` frequently raises a `JSONDecodeError`. This is usually because the response is wrapped in Markdown code tags or prefaced with a message, as seen in the following traces:
- `ChatOpenAI` gpt-3.5-turbo: [successful trace](https://smith.langchain.com/public/6c42845c-bbe2-41c1-99a4-7669112f1504/r)
- `ChatOpenAI` gpt-4: [`JSONDecodeError` due to Markdown formatting](https://smith.langchain.com/public/d235ef1e-fb13-4177-adb3-6ddaf159bfea/r)
- `ChatAnthropic` Claude 2: [`JSONDecodeError` due to message before the JSON + Markdown formatting](https://smith.langchain.com/public/27eed20e-9ca5-4b4a-a3d3-71efde7aee3c/r)
- `ChatAnyscale` llama 2 70b: [successful trace](https://smith.langchain.com/public/e8f0b44c-424f-47ef-8cb3-31713b548d46/r?tab=0)
- `ChatAnyscale` llama 2 70b: [`JSONDecodeError` due to message before the JSON + Markdown formatting](https://smith.langchain.com/public/c89a7415-477d-4b82-a0a4-0a333b8b5680/r)
Each of these models had a mix of successful and failed runs. I probably should have lowered the temperature and tried non-chat models as well.

I would like to help however I could on this, I just want to be sure my fix aligns with the greater vision for this chain since it seems particularly useful. :)
### System Info
Version info from LangSmith:
```
RUNTIME
langchain_version: "0.0.268"
library: "langchain"
library_version: "0.0.268"
platform: "Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.36"
runtime: "python"
runtime_version: "3.11.4"
sdk_version: "0.0.25"
```
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [X] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.chains import QAGenerationChain
# tested with gpt-3.5-turbo, gpt-4, claude 2, and llama 2 70b
qagen = QAGenerationChain.from_llm(llm=llm)
question = qagen.run(docs[0].page_content)
# JSONDecodeError (sometimes)
```
The error is inconsistent, as seen in the screenshot above. This is for reasons we're all familiar with: perhaps the output is wrapped in Markdown code formatting with triple-backticks, maybe it's prefaced with a "sure, here's your JSON", etc.
Relevant examples from LangSmith:
- `ChatOpenAI` gpt-3.5-turbo: [successful trace](https://smith.langchain.com/public/6c42845c-bbe2-41c1-99a4-7669112f1504/r)
- `ChatOpenAI` gpt-4: [`JSONDecodeError` due to Markdown formatting](https://smith.langchain.com/public/d235ef1e-fb13-4177-adb3-6ddaf159bfea/r)
- `ChatAnthropic` Claude 2: [`JSONDecodeError` due to message before the JSON + Markdown formatting](https://smith.langchain.com/public/27eed20e-9ca5-4b4a-a3d3-71efde7aee3c/r)
- `ChatAnyscale` llama 2 70b: [successful trace](https://smith.langchain.com/public/e8f0b44c-424f-47ef-8cb3-31713b548d46/r?tab=0)
- `ChatAnyscale` llama 2 70b: [`JSONDecodeError` due to message before the JSON + Markdown formatting](https://smith.langchain.com/public/c89a7415-477d-4b82-a0a4-0a333b8b5680/r)
### Expected behavior
`QAGenerationChain.run` should return its expected output with no `JSONDecodeError`. I realize there's only so much we can do for the chain's default settings, and an LLM call can be inherently predictable, but some parsing and error handling would be nice. :)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9505/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9505/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9504
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9504/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9504/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9504/events
|
https://github.com/langchain-ai/langchain/issues/9504
| 1,857,958,938 |
I_kwDOIPDwls5uvjQa
| 9,504 |
LLM Chain: Unable to run OpenLM - unexpected keyword argument 'api_key' in Completion.create class
|
{
"login": "prazevj",
"id": 5722696,
"node_id": "MDQ6VXNlcjU3MjI2OTY=",
"avatar_url": "https://avatars.githubusercontent.com/u/5722696?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/prazevj",
"html_url": "https://github.com/prazevj",
"followers_url": "https://api.github.com/users/prazevj/followers",
"following_url": "https://api.github.com/users/prazevj/following{/other_user}",
"gists_url": "https://api.github.com/users/prazevj/gists{/gist_id}",
"starred_url": "https://api.github.com/users/prazevj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prazevj/subscriptions",
"organizations_url": "https://api.github.com/users/prazevj/orgs",
"repos_url": "https://api.github.com/users/prazevj/repos",
"events_url": "https://api.github.com/users/prazevj/events{/privacy}",
"received_events_url": "https://api.github.com/users/prazevj/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 6 | 2023-08-20T05:26:12 | 2023-11-27T16:07:11 | 2023-11-27T16:07:11 |
NONE
| null |
### System Info
! pip show langchain
Name: langchain
Version: 0.0.268
Summary: Building applications with LLMs through composability
Home-page: https://www.github.com/hwchase17/langchain
! pip show openlm
Name: openlm
Version: 0.0.5
Summary: Drop-in OpenAI-compatible that can call LLMs from other providers
Python 3.11.3
### Who can help?
@hwchase17 @agola11
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
`
! pip install openlm
! pip install langchain
from getpass import getpass
import os
from langchain.llms import OpenLM
from langchain import PromptTemplate, LLMChain
os.environ['OPENAI_API_KEY'] = "<openai-api-key>"
os.environ['HF_API_TOKEN'] = "<hf-api-key>"
if "OPENAI_API_KEY" not in os.environ:
print("Enter your OpenAI API key:")
os.environ["OPENAI_API_KEY"] = getpass()
if "HF_API_TOKEN" not in os.environ:
print("Enter your HuggingFace Hub API key:")
os.environ["HF_API_TOKEN"] = getpass()
question = "What is the capital of France?"
template = """Question: {question} Answer: Let's think step by step."""
prompt = PromptTemplate(template=template, input_variables=["question"])
for model in ["text-davinci-003", "huggingface.co/gpt2"]:
llm = OpenLM(model=model)
llm_chain = LLMChain(prompt=prompt, llm=llm)
result = llm_chain.run(question)
print( """Model: {} Result: {}""".format(model, result))
`
When I run the above code, I get the following error:
TypeError: Completion.create() got an unexpected keyword argument 'api_key'
Can I anyone help me to fix this issue ?
### Expected behavior
As mentioned the below document,
https://python.langchain.com/docs/integrations/llms/openlm
Model: text-davinci-003
Result: France is a country in Europe. The capital of France is Paris.
Model: huggingface.co/gpt2
Result: Question: What is the capital of France?
Answer: Let's think step by step. I am not going to lie, this is a complicated issue, and I don't see any solutions to all this, but it is still far more
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9504/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9504/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9503
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9503/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9503/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9503/events
|
https://github.com/langchain-ai/langchain/pull/9503
| 1,857,946,909 |
PR_kwDOIPDwls5YUA5y
| 9,503 |
Make QAGenerationChain.from_llm use SimpleJsonOutputParser
|
{
"login": "joshuasundance-swca",
"id": 84336755,
"node_id": "MDQ6VXNlcjg0MzM2NzU1",
"avatar_url": "https://avatars.githubusercontent.com/u/84336755?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/joshuasundance-swca",
"html_url": "https://github.com/joshuasundance-swca",
"followers_url": "https://api.github.com/users/joshuasundance-swca/followers",
"following_url": "https://api.github.com/users/joshuasundance-swca/following{/other_user}",
"gists_url": "https://api.github.com/users/joshuasundance-swca/gists{/gist_id}",
"starred_url": "https://api.github.com/users/joshuasundance-swca/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joshuasundance-swca/subscriptions",
"organizations_url": "https://api.github.com/users/joshuasundance-swca/orgs",
"repos_url": "https://api.github.com/users/joshuasundance-swca/repos",
"events_url": "https://api.github.com/users/joshuasundance-swca/events{/privacy}",
"received_events_url": "https://api.github.com/users/joshuasundance-swca/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-20T04:18:03 | 2023-08-20T04:57:02 | 2023-08-20T04:57:02 |
CONTRIBUTOR
| null |
- Description: Gives `QAGenerationChain.from_llm` an `output_parser` keyword argument; adds default `SimpleJsonOutputParser`
- Issue: Default prompts request structured json, but no output parser is used. In `QAGenerationChain._call`, after generation, `json.loads` raises a `JSONDecodeError`.
Edit: It occurs to me that perhaps this should be a `PydanticOutputParser` or similar, and in fact I'm not sure it solves the original problem. :( Closing this for now, but open to discussion.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9503/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9503/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9503",
"html_url": "https://github.com/langchain-ai/langchain/pull/9503",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9503.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9503.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9502
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9502/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9502/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9502/events
|
https://github.com/langchain-ai/langchain/issues/9502
| 1,857,932,992 |
I_kwDOIPDwls5uvc7A
| 9,502 |
Issue: Can't import HuggingFacePipeline
|
{
"login": "sahaavi",
"id": 55613672,
"node_id": "MDQ6VXNlcjU1NjEzNjcy",
"avatar_url": "https://avatars.githubusercontent.com/u/55613672?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sahaavi",
"html_url": "https://github.com/sahaavi",
"followers_url": "https://api.github.com/users/sahaavi/followers",
"following_url": "https://api.github.com/users/sahaavi/following{/other_user}",
"gists_url": "https://api.github.com/users/sahaavi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sahaavi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sahaavi/subscriptions",
"organizations_url": "https://api.github.com/users/sahaavi/orgs",
"repos_url": "https://api.github.com/users/sahaavi/repos",
"events_url": "https://api.github.com/users/sahaavi/events{/privacy}",
"received_events_url": "https://api.github.com/users/sahaavi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false | null |
[] | null | 10 | 2023-08-20T02:53:24 | 2024-01-04T12:54:06 | null |
NONE
| null |
> from langchain.llms import HuggingFacePipeline
`ImportError: cannot import name 'HuggingFacePipeline' from 'langchain.llms'`
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9502/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 3
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9502/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9501
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9501/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9501/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9501/events
|
https://github.com/langchain-ai/langchain/pull/9501
| 1,857,922,714 |
PR_kwDOIPDwls5YT8nT
| 9,501 |
Fast linters go first
|
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-20T01:49:01 | 2023-08-21T07:20:55 | 2023-08-21T07:20:55 |
COLLABORATOR
| null |
Proposal to reverse the order of linters based on the principle of running the
fast ones first.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9501/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9501/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9501",
"html_url": "https://github.com/langchain-ai/langchain/pull/9501",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9501.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9501.patch",
"merged_at": "2023-08-21T07:20:55"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9500
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9500/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9500/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9500/events
|
https://github.com/langchain-ai/langchain/pull/9500
| 1,857,874,177 |
PR_kwDOIPDwls5YTzlm
| 9,500 |
Fixed issue with metadata in query
|
{
"login": "ofermend",
"id": 1823547,
"node_id": "MDQ6VXNlcjE4MjM1NDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1823547?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ofermend",
"html_url": "https://github.com/ofermend",
"followers_url": "https://api.github.com/users/ofermend/followers",
"following_url": "https://api.github.com/users/ofermend/following{/other_user}",
"gists_url": "https://api.github.com/users/ofermend/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ofermend/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ofermend/subscriptions",
"organizations_url": "https://api.github.com/users/ofermend/orgs",
"repos_url": "https://api.github.com/users/ofermend/repos",
"events_url": "https://api.github.com/users/ofermend/events{/privacy}",
"received_events_url": "https://api.github.com/users/ofermend/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 4 | 2023-08-19T21:04:33 | 2023-08-20T23:00:14 | 2023-08-20T23:00:14 |
CONTRIBUTOR
| null |
- Description: Changed metadata retrieval so that it combines Vectara doc level and part level metadata
- Tag maintainer: @rlancemartin
- Twitter handle: @ofermend
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9500/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9500/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9500",
"html_url": "https://github.com/langchain-ai/langchain/pull/9500",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9500.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9500.patch",
"merged_at": "2023-08-20T23:00:14"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9499
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9499/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9499/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9499/events
|
https://github.com/langchain-ai/langchain/pull/9499
| 1,857,866,542 |
PR_kwDOIPDwls5YTyEz
| 9,499 |
fix typo in huggingface_hub.ipynb
|
{
"login": "bsenst",
"id": 8211411,
"node_id": "MDQ6VXNlcjgyMTE0MTE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8211411?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bsenst",
"html_url": "https://github.com/bsenst",
"followers_url": "https://api.github.com/users/bsenst/followers",
"following_url": "https://api.github.com/users/bsenst/following{/other_user}",
"gists_url": "https://api.github.com/users/bsenst/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bsenst/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bsenst/subscriptions",
"organizations_url": "https://api.github.com/users/bsenst/orgs",
"repos_url": "https://api.github.com/users/bsenst/repos",
"events_url": "https://api.github.com/users/bsenst/events{/privacy}",
"received_events_url": "https://api.github.com/users/bsenst/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-19T20:33:11 | 2023-08-19T21:50:13 | 2023-08-19T21:50:06 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9499/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9499/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9499",
"html_url": "https://github.com/langchain-ai/langchain/pull/9499",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9499.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9499.patch",
"merged_at": "2023-08-19T21:50:06"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9498
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9498/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9498/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9498/events
|
https://github.com/langchain-ai/langchain/issues/9498
| 1,857,854,089 |
I_kwDOIPDwls5uvJqJ
| 9,498 |
HuggingFaceInstructEmbeddings hangs in Docker container, but runs fine on MacOS
|
{
"login": "lauradang",
"id": 25867870,
"node_id": "MDQ6VXNlcjI1ODY3ODcw",
"avatar_url": "https://avatars.githubusercontent.com/u/25867870?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lauradang",
"html_url": "https://github.com/lauradang",
"followers_url": "https://api.github.com/users/lauradang/followers",
"following_url": "https://api.github.com/users/lauradang/following{/other_user}",
"gists_url": "https://api.github.com/users/lauradang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lauradang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lauradang/subscriptions",
"organizations_url": "https://api.github.com/users/lauradang/orgs",
"repos_url": "https://api.github.com/users/lauradang/repos",
"events_url": "https://api.github.com/users/lauradang/events{/privacy}",
"received_events_url": "https://api.github.com/users/lauradang/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5541144676,
"node_id": "LA_kwDOIPDwls8AAAABSkcoZA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20doc%20loader",
"name": "area: doc loader",
"color": "D4C5F9",
"default": false,
"description": "Related to document loader module (not documentation)"
},
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
open
| false | null |
[] | null | 8 | 2023-08-19T20:07:57 | 2023-11-23T01:51:04 | null |
NONE
| null |
### System Info
requirements.txt:
```
langchain==0.0.254
atlassian-python-api==3.36.0
chromadb==0.3.25
huggingface-hub==0.16.4
torch==2.0.1
sentence-transformers==2.2.2
InstructorEmbedding==1.0.0
p4python==2023.1.2454917
lxml==4.9.2
bs4==0.0.1
```
Dockerfile
```Dockerfile
FROM python:3.10
# Create a directory for your application
WORKDIR /app
COPY requirements.txt .
# Upgrade pip
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3.10 get-pip.py
RUN python3.10 -m pip install --upgrade pip
RUN python3.10 -m pip install -r requirements.txt
# RUN python3.10 preload.py
RUN python3.10 -m pip install openai tiktoken
RUN apt-get update && apt-get install -y vim
COPY . .
ENTRYPOINT sleep infinity;
```
Host where I am running Docker: (Am also running python3.10 on this)
```bash
Software:
System Software Overview:
System Version: macOS 13.4 (22F66)
Kernel Version: Darwin 22.5.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: Mac14,10
Chip: Apple M2 Pro
Total Number of Cores: 12 (8 performance and 4 efficiency)
Memory: 32 GB
```
### Who can help?
@agola11 @hwchase17
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [ ] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [X] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Run this script with above requirements.txt in docker container set up by Dockerfile
```python
from langchain.embeddings import HuggingFaceEmbeddings, HuggingFaceInstructEmbeddings
from langchain.embeddings import OpenAIEmbeddings
from langchain.document_loaders import ConfluenceLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
loader = ConfluenceLoader(...)
documents = loader.load(...)
text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0)
texts = text_splitter.split_documents(documents)
embeddings = HuggingFaceInstructEmbeddings(model_name= "hkunlp/instructor-large", model_kwargs={"device": "cpu"})
#Vector Database Storage: Store the generated embeddings in a vector database, allowing for efficient similarity searches.
db = Chroma.from_documents(texts, embeddings) # Stuck here
```
Successful runs where I am able to upload embeddings to db:
- Running this on my mac (no Docker)
- Running this in Docker container with OpenAIEmbeddings
Runs that get stuck:
- Running this in Docker container with HuggingFaceEmbeddings or HuggingFaceInstructEmbeddings
When I manually interrupt that stuck process, here is the traceback:
```bash
raceback (most recent call last):
File "/app/context.py", line 26, in <module>
ctx_manager.register_documents(paths, text_splitter_type, text_splitter_params,
File "/app/context_manager/context_manager/context_manager.py", line 197, in register_documents
self._vectordb_manager.add_documents(texts, embeddings,
File "/app/context_manager/db_managers/db_managers.py", line 92, in add_documents
vectorstore = Chroma.from_documents(
File "/usr/local/lib/python3.10/site-packages/langchain/vectorstores/chroma.py", line 603, in from_documents
return cls.from_texts(
File "/usr/local/lib/python3.10/site-packages/langchain/vectorstores/chroma.py", line 567, in from_texts
chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids)
File "/usr/local/lib/python3.10/site-packages/langchain/vectorstores/chroma.py", line 187, in add_texts
embeddings = self._embedding_function.embed_documents(texts)
File "/usr/local/lib/python3.10/site-packages/langchain/embeddings/huggingface.py", line 77, in embed_documents
embeddings = self.client.encode(texts, **self.encode_kwargs)
File "/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py", line 165, in encode
out_features = self.forward(features)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/container.py", line 217, in forward
input = module(input)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/sentence_transformers/models/Transformer.py", line 74, in forward
output_states = self.auto_model(**trans_features, return_dict=False)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/t5/modeling_t5.py", line 1935, in forward
encoder_outputs = self.encoder(
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/t5/modeling_t5.py", line 1094, in forward
layer_outputs = layer_module(
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/t5/modeling_t5.py", line 754, in forward
hidden_states = self.layer[-1](hidden_states)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/t5/modeling_t5.py", line 343, in forward
forwarded_states = self.DenseReluDense(forwarded_states)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/transformers/models/t5/modeling_t5.py", line 288, in forward
hidden_states = self.wi(hidden_states)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
KeyboardInterrupt
```
I thought it may be the CPU usage, but on my Mac, the CPU usage maxes out at around 270% and does not get stuck. However, in Docker, the CPU usage maxes out to 600% (reserved 6 CPUs), and still gets stuck. Memory is also lower than the limit in both environements.
### Expected behavior
Texts are supposed to get encoded then uploaded to vectorDB
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9498/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9498/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9497
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9497/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9497/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9497/events
|
https://github.com/langchain-ai/langchain/pull/9497
| 1,857,847,738 |
PR_kwDOIPDwls5YTt8G
| 9,497 |
Added misssing model name to GPT4AllEmbeddings.
|
{
"login": "sbarman-mi9",
"id": 14152255,
"node_id": "MDQ6VXNlcjE0MTUyMjU1",
"avatar_url": "https://avatars.githubusercontent.com/u/14152255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sbarman-mi9",
"html_url": "https://github.com/sbarman-mi9",
"followers_url": "https://api.github.com/users/sbarman-mi9/followers",
"following_url": "https://api.github.com/users/sbarman-mi9/following{/other_user}",
"gists_url": "https://api.github.com/users/sbarman-mi9/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sbarman-mi9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sbarman-mi9/subscriptions",
"organizations_url": "https://api.github.com/users/sbarman-mi9/orgs",
"repos_url": "https://api.github.com/users/sbarman-mi9/repos",
"events_url": "https://api.github.com/users/sbarman-mi9/events{/privacy}",
"received_events_url": "https://api.github.com/users/sbarman-mi9/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 6 | 2023-08-19T19:52:48 | 2023-10-30T14:47:36 | 2023-10-30T14:47:35 |
NONE
| null |
- Description: Added model name to `GPT4AllEmbeddings`. Apparently, when we use `CacheBackedEmbeddings`, we must provide a namespace so our doc embeddings with different model ids remain distinct. This change makes it easy to add name from the model.
https://python.langchain.com/docs/modules/data_connection/caching_embeddings
- Dependencies: None
- Tag maintainer: @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9497/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9497/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9497",
"html_url": "https://github.com/langchain-ai/langchain/pull/9497",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9497.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9497.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9496
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9496/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9496/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9496/events
|
https://github.com/langchain-ai/langchain/pull/9496
| 1,857,831,501 |
PR_kwDOIPDwls5YTq2W
| 9,496 |
Update pydantic combat guide
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-19T18:37:33 | 2023-08-19T21:44:20 | 2023-08-19T21:44:19 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9496/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9496/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9496",
"html_url": "https://github.com/langchain-ai/langchain/pull/9496",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9496.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9496.patch",
"merged_at": "2023-08-19T21:44:19"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9494
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9494/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9494/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9494/events
|
https://github.com/langchain-ai/langchain/pull/9494
| 1,857,809,616 |
PR_kwDOIPDwls5YTmVd
| 9,494 |
:bug: fix unexpected run of release workflow
|
{
"login": "zawakin",
"id": 13769670,
"node_id": "MDQ6VXNlcjEzNzY5Njcw",
"avatar_url": "https://avatars.githubusercontent.com/u/13769670?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zawakin",
"html_url": "https://github.com/zawakin",
"followers_url": "https://api.github.com/users/zawakin/followers",
"following_url": "https://api.github.com/users/zawakin/following{/other_user}",
"gists_url": "https://api.github.com/users/zawakin/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zawakin/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zawakin/subscriptions",
"organizations_url": "https://api.github.com/users/zawakin/orgs",
"repos_url": "https://api.github.com/users/zawakin/repos",
"events_url": "https://api.github.com/users/zawakin/events{/privacy}",
"received_events_url": "https://api.github.com/users/zawakin/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false |
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "obi1kenobi",
"id": 2348618,
"node_id": "MDQ6VXNlcjIzNDg2MTg=",
"avatar_url": "https://avatars.githubusercontent.com/u/2348618?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/obi1kenobi",
"html_url": "https://github.com/obi1kenobi",
"followers_url": "https://api.github.com/users/obi1kenobi/followers",
"following_url": "https://api.github.com/users/obi1kenobi/following{/other_user}",
"gists_url": "https://api.github.com/users/obi1kenobi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/obi1kenobi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/obi1kenobi/subscriptions",
"organizations_url": "https://api.github.com/users/obi1kenobi/orgs",
"repos_url": "https://api.github.com/users/obi1kenobi/repos",
"events_url": "https://api.github.com/users/obi1kenobi/events{/privacy}",
"received_events_url": "https://api.github.com/users/obi1kenobi/received_events",
"type": "User",
"site_admin": false
}
] | null | 7 | 2023-08-19T17:31:30 | 2023-08-23T01:50:02 | 2023-08-21T14:34:03 |
CONTRIBUTOR
| null |
I have discovered a bug located within `.github/workflows/_release.yml` which is the primary cause of continuous integration (CI) errors. The problem can be solved; therefore, I have constructed a PR to address the issue.
## The Issue
Access the following link to view the exact errors: [Langhain Release Workflow](https://github.com/langchain-ai/langchain/actions/workflows/langchain_release.yml)
The instances of these errors take place for **each PR** that updates `pyproject.toml`, excluding those specifically associated with bumping PRs.
See below for the specific error message:
```
Error: Error 422: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}
```
An image of the error can be viewed here:

The `_release.yml` document contains the following if-condition:
```yaml
if: |
${{ github.event.pull_request.merged == true }}
&& ${{ contains(github.event.pull_request.labels.*.name, 'release') }}
```
## The Root Cause
The above job constantly runs as the `if-condition` is always identified as `true`.
## The Logic
The `if-condition` can be defined as `if: ${{ b1 }} && ${{ b2 }}`, where `b1` and `b2` are boolean values. However, in terms of condition evaluation with GitHub Actions, `${{ false }}` is identified as a string value, thereby rendering it as truthy as per the [official documentation](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif).
I have run some tests regarding this behavior within my forked repository. You can consult my [debug PR](https://github.com/zawakin/langchain/pull/1) for reference.
Here is the result of the tests:
|If-Condition|Outcome|
|:--:|:--:|
|`if: true && ${{ false }}`|Execution|
|`if: ${{ false }}` |Skipped|
|`if: true && false` |Skipped|
|`if: false`|Skipped|
|`if: ${{ true && false }}` |Skipped|
In view of the first and second results, we can infer that `${{ false }}` can only be interpreted as `true` for conditions composed of some expressions.
It is consistent that the condition of `if: ${{ inputs.working-directory == 'libs/langchain' }}` works.
It is surprised to be skipped for the second case but it seems the spec of GitHub Actions 😓
Anyway, the PR would fix these errors, I believe 👍
Could you review this? @hwchase17 or @shoelsch , who is the author of [PR](https://github.com/langchain-ai/langchain/pull/360).
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9494/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9494/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9494",
"html_url": "https://github.com/langchain-ai/langchain/pull/9494",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9494.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9494.patch",
"merged_at": "2023-08-21T14:34:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9493
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9493/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9493/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9493/events
|
https://github.com/langchain-ai/langchain/pull/9493
| 1,857,805,597 |
PR_kwDOIPDwls5YTlhg
| 9,493 |
docs(readme): fixed badges with new github url
|
{
"login": "StanGirard",
"id": 19614572,
"node_id": "MDQ6VXNlcjE5NjE0NTcy",
"avatar_url": "https://avatars.githubusercontent.com/u/19614572?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StanGirard",
"html_url": "https://github.com/StanGirard",
"followers_url": "https://api.github.com/users/StanGirard/followers",
"following_url": "https://api.github.com/users/StanGirard/following{/other_user}",
"gists_url": "https://api.github.com/users/StanGirard/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StanGirard/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StanGirard/subscriptions",
"organizations_url": "https://api.github.com/users/StanGirard/orgs",
"repos_url": "https://api.github.com/users/StanGirard/repos",
"events_url": "https://api.github.com/users/StanGirard/events{/privacy}",
"received_events_url": "https://api.github.com/users/StanGirard/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-19T17:17:22 | 2023-08-19T21:51:39 | 2023-08-19T21:51:39 |
CONTRIBUTOR
| null |
Mainly created for the code space url that was broken but fixed the others in the same PR.
Now
<img width="941" alt="image" src="https://github.com/langchain-ai/langchain/assets/19614572/db918615-a9b9-4a47-96a4-1b709aa7c041">
Before
<img width="1802" alt="image" src="https://github.com/langchain-ai/langchain/assets/19614572/3c831729-692c-44aa-9375-0ac012f6e5fa">
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9493/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9493/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9493",
"html_url": "https://github.com/langchain-ai/langchain/pull/9493",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9493.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9493.patch",
"merged_at": "2023-08-19T21:51:39"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9492
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9492/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9492/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9492/events
|
https://github.com/langchain-ai/langchain/issues/9492
| 1,857,775,366 |
I_kwDOIPDwls5uu2cG
| 9,492 |
Issue: RetrievalQA runs twice faster than huggingface model call
|
{
"login": "Nikita-Sherstnev",
"id": 45091811,
"node_id": "MDQ6VXNlcjQ1MDkxODEx",
"avatar_url": "https://avatars.githubusercontent.com/u/45091811?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Nikita-Sherstnev",
"html_url": "https://github.com/Nikita-Sherstnev",
"followers_url": "https://api.github.com/users/Nikita-Sherstnev/followers",
"following_url": "https://api.github.com/users/Nikita-Sherstnev/following{/other_user}",
"gists_url": "https://api.github.com/users/Nikita-Sherstnev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Nikita-Sherstnev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Nikita-Sherstnev/subscriptions",
"organizations_url": "https://api.github.com/users/Nikita-Sherstnev/orgs",
"repos_url": "https://api.github.com/users/Nikita-Sherstnev/repos",
"events_url": "https://api.github.com/users/Nikita-Sherstnev/events{/privacy}",
"received_events_url": "https://api.github.com/users/Nikita-Sherstnev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541432778,
"node_id": "LA_kwDOIPDwls8AAAABSkuNyg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20vector%20store",
"name": "area: vector store",
"color": "D4C5F9",
"default": false,
"description": "Related to vector store module"
},
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 5 | 2023-08-19T15:26:52 | 2023-11-30T16:07:16 | 2023-11-30T16:07:15 |
NONE
| null |
### Issue you'd like to raise.
I have the following code:
```
pipe = transformers.pipeline(
model=llm_model,
tokenizer=tokenizer,
return_full_text=True,
task='text-generation',
temperature=0.2,
max_new_tokens=200
)
llm = HuggingFacePipeline(pipeline=pipe)
retriever = vector_db.as_retriever(search_kwargs={"k": 4})
qa = RetrievalQA.from_chain_type(llm=llm,
chain_type="stuff",
retriever=retriever,
return_source_documents=True)
```
When I call qa(query) it executes in about 24 seconds. But when I call llm with the same query and context obtained from retriever.get_relevant_documents method it gives me different result (but still relevant) and executes in 39 seconds, almost twice as long as qa. So i would like to understand what happens under the hood when I call RetrievalQA and why results are so different in speed.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9492/reactions",
"total_count": 2,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9492/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9491
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9491/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9491/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9491/events
|
https://github.com/langchain-ai/langchain/pull/9491
| 1,857,764,440 |
PR_kwDOIPDwls5YTdns
| 9,491 |
chatbots use case - fix broken collab URL
|
{
"login": "thatfiredev",
"id": 16766726,
"node_id": "MDQ6VXNlcjE2NzY2NzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/16766726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thatfiredev",
"html_url": "https://github.com/thatfiredev",
"followers_url": "https://api.github.com/users/thatfiredev/followers",
"following_url": "https://api.github.com/users/thatfiredev/following{/other_user}",
"gists_url": "https://api.github.com/users/thatfiredev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thatfiredev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thatfiredev/subscriptions",
"organizations_url": "https://api.github.com/users/thatfiredev/orgs",
"repos_url": "https://api.github.com/users/thatfiredev/repos",
"events_url": "https://api.github.com/users/thatfiredev/events{/privacy}",
"received_events_url": "https://api.github.com/users/thatfiredev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-19T14:45:57 | 2023-08-19T21:53:54 | 2023-08-19T21:53:54 |
CONTRIBUTOR
| null |
The current Collab URL returns a 404, since there is no `chatbots` directory under `use_cases`.
<!-- Thank you for contributing to LangChain!
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9491/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9491/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9491",
"html_url": "https://github.com/langchain-ai/langchain/pull/9491",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9491.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9491.patch",
"merged_at": "2023-08-19T21:53:54"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9490
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9490/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9490/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9490/events
|
https://github.com/langchain-ai/langchain/pull/9490
| 1,857,697,792 |
PR_kwDOIPDwls5YTQNo
| 9,490 |
Fix typo in apis.ipynb
|
{
"login": "eltociear",
"id": 22633385,
"node_id": "MDQ6VXNlcjIyNjMzMzg1",
"avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eltociear",
"html_url": "https://github.com/eltociear",
"followers_url": "https://api.github.com/users/eltociear/followers",
"following_url": "https://api.github.com/users/eltociear/following{/other_user}",
"gists_url": "https://api.github.com/users/eltociear/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eltociear/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eltociear/subscriptions",
"organizations_url": "https://api.github.com/users/eltociear/orgs",
"repos_url": "https://api.github.com/users/eltociear/repos",
"events_url": "https://api.github.com/users/eltociear/events{/privacy}",
"received_events_url": "https://api.github.com/users/eltociear/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700918,
"node_id": "LA_kwDOIPDwls8AAAABUpid9g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:documentation",
"name": "auto:documentation",
"color": "C5DEF5",
"default": false,
"description": "Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-19T12:34:02 | 2023-08-19T13:26:08 | 2023-08-19T13:26:08 |
CONTRIBUTOR
| null |
funtions -> functions
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- Description: a description of the change,
- Issue: the issue # it fixes (if applicable),
- Dependencies: any dependencies required for this change,
- Tag maintainer: for a quicker response, tag the relevant maintainer (see below),
- Twitter handle: we announce bigger features on Twitter. If your PR gets announced and you'd like a mention, we'll gladly shout you out!
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
See contribution guidelines for more information on how to write/run tests, lint, etc:
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
If you're adding a new integration, please include:
1. a test for the integration, preferably unit tests that do not rely on network access,
2. an example notebook showing its use. These live is docs/extras directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17, @rlancemartin.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9490/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9490/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9490",
"html_url": "https://github.com/langchain-ai/langchain/pull/9490",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9490.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9490.patch",
"merged_at": "2023-08-19T13:26:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9489
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9489/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9489/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9489/events
|
https://github.com/langchain-ai/langchain/issues/9489
| 1,857,687,357 |
I_kwDOIPDwls5uug89
| 9,489 |
Issue: RunnableWithFallbacks: Can't instantiate abstract class BaseLanguageModel ???
|
{
"login": "sbarman-mi9",
"id": 14152255,
"node_id": "MDQ6VXNlcjE0MTUyMjU1",
"avatar_url": "https://avatars.githubusercontent.com/u/14152255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sbarman-mi9",
"html_url": "https://github.com/sbarman-mi9",
"followers_url": "https://api.github.com/users/sbarman-mi9/followers",
"following_url": "https://api.github.com/users/sbarman-mi9/following{/other_user}",
"gists_url": "https://api.github.com/users/sbarman-mi9/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sbarman-mi9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sbarman-mi9/subscriptions",
"organizations_url": "https://api.github.com/users/sbarman-mi9/orgs",
"repos_url": "https://api.github.com/users/sbarman-mi9/repos",
"events_url": "https://api.github.com/users/sbarman-mi9/events{/privacy}",
"received_events_url": "https://api.github.com/users/sbarman-mi9/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
open
| false |
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"login": "eyurtsev",
"id": 3205522,
"node_id": "MDQ6VXNlcjMyMDU1MjI=",
"avatar_url": "https://avatars.githubusercontent.com/u/3205522?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/eyurtsev",
"html_url": "https://github.com/eyurtsev",
"followers_url": "https://api.github.com/users/eyurtsev/followers",
"following_url": "https://api.github.com/users/eyurtsev/following{/other_user}",
"gists_url": "https://api.github.com/users/eyurtsev/gists{/gist_id}",
"starred_url": "https://api.github.com/users/eyurtsev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eyurtsev/subscriptions",
"organizations_url": "https://api.github.com/users/eyurtsev/orgs",
"repos_url": "https://api.github.com/users/eyurtsev/repos",
"events_url": "https://api.github.com/users/eyurtsev/events{/privacy}",
"received_events_url": "https://api.github.com/users/eyurtsev/received_events",
"type": "User",
"site_admin": false
}
] | null | 11 | 2023-08-19T11:55:03 | 2023-11-09T23:19:25 | null |
NONE
| null |
### Issue you'd like to raise.
I bumped langchain to version 0.0.268 and encountered below error while implementing 'with_fallbacks'.
Error:
pydantic.error_wrappers.ValidationError: 1 validation error for LLMChain
llm
Can't instantiate abstract class BaseLanguageModel with abstract methods agenerate_prompt, apredict, apredict_messages, generate_prompt, invoke, predict, predict_messages (type=type_error)
Sample Code:
chat_llm = ChatOpenAI(model_name='gpt-3.5-turbo',
temperature=0,
model_kwargs={'top_p': 0.95},
max_tokens=512,
streaming=False,
verbose=False
)
fallback_llm = ChatOpenAI(model_name='gpt-4',
temperature=0,
model_kwargs={'top_p': 0.95},
max_tokens=512,
streaming=False,
verbose=False
)
chat_llm.with_fallbacks([fallback_llm], exceptions_to_handle=(Exception,))
Pydantic version: 1.10.12
Is this because of pydantic migration? Any immediate fixes or should i wait till Aug 25th for the migration to complete?
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9489/reactions",
"total_count": 6,
"+1": 6,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9489/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9488
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9488/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9488/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9488/events
|
https://github.com/langchain-ai/langchain/issues/9488
| 1,857,615,923 |
I_kwDOIPDwls5uuPgz
| 9,488 |
[ask]: about baiduwenxin LLM
|
{
"login": "ByteBuddyX",
"id": 71878676,
"node_id": "MDQ6VXNlcjcxODc4Njc2",
"avatar_url": "https://avatars.githubusercontent.com/u/71878676?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ByteBuddyX",
"html_url": "https://github.com/ByteBuddyX",
"followers_url": "https://api.github.com/users/ByteBuddyX/followers",
"following_url": "https://api.github.com/users/ByteBuddyX/following{/other_user}",
"gists_url": "https://api.github.com/users/ByteBuddyX/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ByteBuddyX/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ByteBuddyX/subscriptions",
"organizations_url": "https://api.github.com/users/ByteBuddyX/orgs",
"repos_url": "https://api.github.com/users/ByteBuddyX/repos",
"events_url": "https://api.github.com/users/ByteBuddyX/events{/privacy}",
"received_events_url": "https://api.github.com/users/ByteBuddyX/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700848,
"node_id": "LA_kwDOIPDwls8AAAABUpidsA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:question",
"name": "auto:question",
"color": "BFD4F2",
"default": false,
"description": "A specific question about the codebase, product, project, or how to use a feature"
},
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 2 | 2023-08-19T07:19:40 | 2023-11-25T16:06:48 | 2023-11-25T16:06:48 |
NONE
| null |
### Issue you'd like to raise.
May I ask if there are any plans to support baiduwenxin llm in the near future? I saw that the JavaScript version has baiduwenxin, but Python does not
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9488/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9488/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9487
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9487/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9487/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9487/events
|
https://github.com/langchain-ai/langchain/pull/9487
| 1,857,558,456 |
PR_kwDOIPDwls5YS0Q9
| 9,487 |
bump 269
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5010622926,
"node_id": "LA_kwDOIPDwls8AAAABKqgJzg",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/release",
"name": "release",
"color": "07D4BE",
"default": false,
"description": ""
},
{
"id": 5680700883,
"node_id": "LA_kwDOIPDwls8AAAABUpid0w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:nit",
"name": "auto:nit",
"color": "FEF2C0",
"default": false,
"description": "Small modifications/deletions, fixes, deps or improvements to existing code or docs"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-19T04:38:53 | 2023-08-21T15:34:17 | 2023-08-21T15:34:16 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9487/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9487/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9487",
"html_url": "https://github.com/langchain-ai/langchain/pull/9487",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9487.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9487.patch",
"merged_at": "2023-08-21T15:34:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9486
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9486/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9486/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9486/events
|
https://github.com/langchain-ai/langchain/issues/9486
| 1,857,522,891 |
I_kwDOIPDwls5ut4zL
| 9,486 |
Problem with embedding model
|
{
"login": "npk7264",
"id": 90046327,
"node_id": "MDQ6VXNlcjkwMDQ2MzI3",
"avatar_url": "https://avatars.githubusercontent.com/u/90046327?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/npk7264",
"html_url": "https://github.com/npk7264",
"followers_url": "https://api.github.com/users/npk7264/followers",
"following_url": "https://api.github.com/users/npk7264/following{/other_user}",
"gists_url": "https://api.github.com/users/npk7264/gists{/gist_id}",
"starred_url": "https://api.github.com/users/npk7264/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/npk7264/subscriptions",
"organizations_url": "https://api.github.com/users/npk7264/orgs",
"repos_url": "https://api.github.com/users/npk7264/repos",
"events_url": "https://api.github.com/users/npk7264/events{/privacy}",
"received_events_url": "https://api.github.com/users/npk7264/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5541141061,
"node_id": "LA_kwDOIPDwls8AAAABSkcaRQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20embeddings",
"name": "area: embeddings",
"color": "C5DEF5",
"default": false,
"description": "Related to text embedding models module"
},
{
"id": 5680700839,
"node_id": "LA_kwDOIPDwls8AAAABUpidpw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:bug",
"name": "auto:bug",
"color": "E99695",
"default": false,
"description": "Related to a bug, vulnerability, unexpected error with an existing feature"
}
] |
closed
| false | null |
[] | null | 12 | 2023-08-19T03:25:59 | 2023-12-02T16:06:12 | 2023-12-02T16:06:11 |
NONE
| null |
### Issue you'd like to raise.
I use embedding model from huggingface vinai/phobert-base:

Then it has this problem:
WARNING:sentence_transformers.SentenceTransformer:No sentence-transformers model found with name /root/.cache/torch/sentence_transformers/vinai_phobert-base. Creating a new one with MEAN pooling.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9486/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9486/timeline
| null |
not_planned
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/9485
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9485/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9485/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9485/events
|
https://github.com/langchain-ai/langchain/pull/9485
| 1,857,459,907 |
PR_kwDOIPDwls5YSehK
| 9,485 |
Bagatur/promptguard
|
{
"login": "baskaryan",
"id": 22008038,
"node_id": "MDQ6VXNlcjIyMDA4MDM4",
"avatar_url": "https://avatars.githubusercontent.com/u/22008038?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/baskaryan",
"html_url": "https://github.com/baskaryan",
"followers_url": "https://api.github.com/users/baskaryan/followers",
"following_url": "https://api.github.com/users/baskaryan/following{/other_user}",
"gists_url": "https://api.github.com/users/baskaryan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/baskaryan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/baskaryan/subscriptions",
"organizations_url": "https://api.github.com/users/baskaryan/orgs",
"repos_url": "https://api.github.com/users/baskaryan/repos",
"events_url": "https://api.github.com/users/baskaryan/events{/privacy}",
"received_events_url": "https://api.github.com/users/baskaryan/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700863,
"node_id": "LA_kwDOIPDwls8AAAABUpidvw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:enhancement",
"name": "auto:enhancement",
"color": "C2E0C6",
"default": false,
"description": "A large net-new component, integration, or chain. Use sparingly. The largest features"
},
{
"id": 5820539098,
"node_id": "LA_kwDOIPDwls8AAAABWu5g2g",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20models",
"name": "area: models",
"color": "bfdadc",
"default": false,
"description": "Related to LLMs or chat model modules"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-19T01:32:23 | 2023-08-21T21:59:54 | 2023-08-21T21:59:54 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9485/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9485/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9485",
"html_url": "https://github.com/langchain-ai/langchain/pull/9485",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9485.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9485.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9484
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/9484/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9484/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/9484/events
|
https://github.com/langchain-ai/langchain/pull/9484
| 1,857,415,812 |
PR_kwDOIPDwls5YSVD2
| 9,484 |
Let you specify run id in trace as chain group
|
{
"login": "hinthornw",
"id": 13333726,
"node_id": "MDQ6VXNlcjEzMzMzNzI2",
"avatar_url": "https://avatars.githubusercontent.com/u/13333726?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hinthornw",
"html_url": "https://github.com/hinthornw",
"followers_url": "https://api.github.com/users/hinthornw/followers",
"following_url": "https://api.github.com/users/hinthornw/following{/other_user}",
"gists_url": "https://api.github.com/users/hinthornw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hinthornw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hinthornw/subscriptions",
"organizations_url": "https://api.github.com/users/hinthornw/orgs",
"repos_url": "https://api.github.com/users/hinthornw/repos",
"events_url": "https://api.github.com/users/hinthornw/events{/privacy}",
"received_events_url": "https://api.github.com/users/hinthornw/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5680700873,
"node_id": "LA_kwDOIPDwls8AAAABUpidyQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/auto:improvement",
"name": "auto:improvement",
"color": "FBCA04",
"default": false,
"description": "Medium size change to existing code to handle new use-cases"
}
] |
closed
| false | null |
[] | null | 1 | 2023-08-19T00:16:53 | 2023-08-19T00:21:54 | 2023-08-19T00:21:53 |
COLLABORATOR
| null |
I think we'll deprecate this soon anyway but still nice to be able to fetch the run id
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/9484/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/9484/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/9484",
"html_url": "https://github.com/langchain-ai/langchain/pull/9484",
"diff_url": "https://github.com/langchain-ai/langchain/pull/9484.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/9484.patch",
"merged_at": "2023-08-19T00:21:53"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.