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/12362
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12362/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12362/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12362/events
|
https://github.com/langchain-ai/langchain/pull/12362
| 1,964,208,516 |
PR_kwDOIPDwls5d50vN
| 12,362 |
update chains how to
|
{
"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": 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-10-26T19:09:23 | 2023-10-26T19:21:04 | 2023-10-26T19:21:04 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12362/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/12362/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12362",
"html_url": "https://github.com/langchain-ai/langchain/pull/12362",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12362.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12362.patch",
"merged_at": "2023-10-26T19:21:03"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12361
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12361/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12361/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12361/events
|
https://github.com/langchain-ai/langchain/pull/12361
| 1,964,199,744 |
PR_kwDOIPDwls5d5yzo
| 12,361 |
Wfh/json edit dist
|
{
"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": 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-10-26T19:03:29 | 2023-10-27T01:10:30 | 2023-10-27T01:10:29 |
COLLABORATOR
| null |
Compare predicted json to reference. First canonicalize (sort keys, rm whitespace separators), then return normalized string edit distance.
Not a silver bullet but maybe an easy way to capture structure differences in a less flakey way
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12361/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/12361/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12361",
"html_url": "https://github.com/langchain-ai/langchain/pull/12361",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12361.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12361.patch",
"merged_at": "2023-10-27T01:10:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12360
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12360/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12360/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12360/events
|
https://github.com/langchain-ai/langchain/pull/12360
| 1,964,171,776 |
PR_kwDOIPDwls5d5sc5
| 12,360 |
Wfh/tree distance
|
{
"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": 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-10-26T18:50:41 | 2023-10-27T02:22:51 | 2023-10-27T02:22:51 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12360/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/12360/timeline
| null | null | true |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12360",
"html_url": "https://github.com/langchain-ai/langchain/pull/12360",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12360.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12360.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12358
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12358/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12358/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12358/events
|
https://github.com/langchain-ai/langchain/issues/12358
| 1,964,138,560 |
I_kwDOIPDwls51EmBA
| 12,358 |
Unable to extend BaseChatModel with pydantic 2
|
{
"login": "nikokaoja",
"id": 35523348,
"node_id": "MDQ6VXNlcjM1NTIzMzQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/35523348?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nikokaoja",
"html_url": "https://github.com/nikokaoja",
"followers_url": "https://api.github.com/users/nikokaoja/followers",
"following_url": "https://api.github.com/users/nikokaoja/following{/other_user}",
"gists_url": "https://api.github.com/users/nikokaoja/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nikokaoja/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nikokaoja/subscriptions",
"organizations_url": "https://api.github.com/users/nikokaoja/orgs",
"repos_url": "https://api.github.com/users/nikokaoja/repos",
"events_url": "https://api.github.com/users/nikokaoja/events{/privacy}",
"received_events_url": "https://api.github.com/users/nikokaoja/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"
},
{
"id": 5859754349,
"node_id": "LA_kwDOIPDwls8AAAABXUTBbQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/pydantic",
"name": "pydantic",
"color": "C990BA",
"default": false,
"description": "Issues related to pydantic migration"
}
] |
closed
| false | null |
[] | null | 3 | 2023-10-26T18:35:45 | 2023-10-26T19:36:52 | 2023-10-26T19:36:51 |
NONE
| null |
### System Info
`langchain` = 0.0.324
`pydantic` = 2.4.2
`python` = 3.11
`platform` = macos
In the project I have class `MyChat` which inherits `BaseChatModel` and further customize/extends it. Adding additional fields works fine with both pydantic v1 and v2, however adding a field and/or model validator fails with pydantic v2, raising `TypeError`:
```
TypeError: cannot pickle 'classmethod' object
```
Full error:
```
TypeError Traceback (most recent call last)
.../test.ipynb Cell 1 line 1
9 from pydantic import ConfigDict, Extra, Field, field_validator, model_validator
11 logger = logging.getLogger(__name__)
---> 13 class MyChat(BaseChatModel):
14 client: Any #: :meta private:
15 model_name: str = Field(default="gpt-35-turbo", alias="model")
File .../.venv/lib/python3.11/site-packages/pydantic/v1/main.py:221, in ModelMetaclass.__new__(mcs, name, bases, namespace, **kwargs)
219 elif is_valid_field(var_name) and var_name not in annotations and can_be_changed:
220 validate_field_name(bases, var_name)
--> 221 inferred = ModelField.infer(
222 name=var_name,
223 value=value,
224 annotation=annotations.get(var_name, Undefined),
225 class_validators=vg.get_validators(var_name),
226 config=config,
227 )
228 if var_name in fields:
229 if lenient_issubclass(inferred.type_, fields[var_name].type_):
File .../.venv/lib/python3.11/site-packages/pydantic/v1/fields.py:506, in ModelField.infer(cls, name, value, annotation, class_validators, config)
503 required = False
504 annotation = get_annotation_from_field_info(annotation, field_info, name, config.validate_assignment)
--> 506 return cls(
507 name=name,
508 type_=annotation,
509 alias=field_info.alias,
510 class_validators=class_validators,
511 default=value,
512 default_factory=field_info.default_factory,
513 required=required,
514 model_config=config,
515 field_info=field_info,
516 )
File .../.venv/lib/python3.11/site-packages/pydantic/v1/fields.py:436, in ModelField.__init__(self, name, type_, class_validators, model_config, default, default_factory, required, final, alias, field_info)
434 self.shape: int = SHAPE_SINGLETON
435 self.model_config.prepare_field(self)
--> 436 self.prepare()
File .../.venv/lib/python3.11/site-packages/pydantic/v1/fields.py:546, in ModelField.prepare(self)
539 def prepare(self) -> None:
540 """
541 Prepare the field but inspecting self.default, self.type_ etc.
542
543 Note: this method is **not** idempotent (because _type_analysis is not idempotent),
544 e.g. calling it it multiple times may modify the field and configure it incorrectly.
545 """
--> 546 self._set_default_and_type()
547 if self.type_.__class__ is ForwardRef or self.type_.__class__ is DeferredType:
548 # self.type_ is currently a ForwardRef and there's nothing we can do now,
549 # user will need to call model.update_forward_refs()
550 return
...
--> 161 rv = reductor(4)
162 else:
163 reductor = getattr(x, "__reduce__", None)
TypeError: cannot pickle 'classmethod' object
```
### 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
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
1. Install pydantic v2
2. Install langchain
3. Try running following in for example notebook:
```
import logging
from typing import ( Any,ClassVar,)
from langchain.chat_models.base import BaseChatModel
from pydantic import ConfigDict, Extra, Field, field_validator, model_validator
logger = logging.getLogger(__name__)
class MyChat(BaseChatModel):
client: Any #: :meta private:
model_name: str = Field(default="gpt-35-turbo", alias="model")
temperature: float = 0.0
model_kwargs: dict[str, Any] = Field(default_factory=dict)
request_timeout: float | tuple[float, float] | None = None
max_retries: int = 6
max_tokens: int | None = 2024
gpu: bool = False
model_config: ClassVar[ConfigDict] = ConfigDict(
populate_by_name=True, strict=False, extra="ignore"
)
@property
def _llm_type(self) -> str:
return "my-chat"
@field_validator("max_tokens", mode="before")
def check_max_tokens(cls, v: int, values: dict[str, Any]) -> int:
"""Validate max_tokens."""
if v is not None and v < 1:
raise ValueError("max_tokens must be greater than 0.")
return v
```
### Expected behavior
There should be no error.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12358/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/12358/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12357
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12357/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12357/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12357/events
|
https://github.com/langchain-ai/langchain/pull/12357
| 1,964,110,633 |
PR_kwDOIPDwls5d5ens
| 12,357 |
langserve doc
|
{
"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-10-26T18:20:58 | 2023-10-26T18:40:58 | 2023-10-26T18:40:57 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12357/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/12357/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12357",
"html_url": "https://github.com/langchain-ai/langchain/pull/12357",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12357.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12357.patch",
"merged_at": "2023-10-26T18:40:57"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12356
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12356/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12356/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12356/events
|
https://github.com/langchain-ai/langchain/pull/12356
| 1,964,102,825 |
PR_kwDOIPDwls5d5c2G
| 12,356 |
Update multi query template README, ntbk
|
{
"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
}
|
[
{
"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": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-26T18:17:41 | 2023-10-26T18:24:45 | 2023-10-26T18:24:44 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12356/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/12356/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12356",
"html_url": "https://github.com/langchain-ai/langchain/pull/12356",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12356.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12356.patch",
"merged_at": "2023-10-26T18:24:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12355
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12355/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12355/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12355/events
|
https://github.com/langchain-ai/langchain/pull/12355
| 1,964,063,683 |
PR_kwDOIPDwls5d5UKk
| 12,355 |
E2B tool - Improve description wuth uploaded files info
|
{
"login": "jakubno",
"id": 50249709,
"node_id": "MDQ6VXNlcjUwMjQ5NzA5",
"avatar_url": "https://avatars.githubusercontent.com/u/50249709?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jakubno",
"html_url": "https://github.com/jakubno",
"followers_url": "https://api.github.com/users/jakubno/followers",
"following_url": "https://api.github.com/users/jakubno/following{/other_user}",
"gists_url": "https://api.github.com/users/jakubno/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jakubno/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakubno/subscriptions",
"organizations_url": "https://api.github.com/users/jakubno/orgs",
"repos_url": "https://api.github.com/users/jakubno/repos",
"events_url": "https://api.github.com/users/jakubno/events{/privacy}",
"received_events_url": "https://api.github.com/users/jakubno/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 | 1 | 2023-10-26T17:53:44 | 2023-10-26T18:44:25 | 2023-10-26T18:44:25 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12355/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/12355/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12355",
"html_url": "https://github.com/langchain-ai/langchain/pull/12355",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12355.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12355.patch",
"merged_at": "2023-10-26T18:44:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12354
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12354/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12354/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12354/events
|
https://github.com/langchain-ai/langchain/pull/12354
| 1,964,024,756 |
PR_kwDOIPDwls5d5LoY
| 12,354 |
Improves the description of the installation command
|
{
"login": "ankur0904",
"id": 98346896,
"node_id": "U_kgDOBdynkA",
"avatar_url": "https://avatars.githubusercontent.com/u/98346896?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ankur0904",
"html_url": "https://github.com/ankur0904",
"followers_url": "https://api.github.com/users/ankur0904/followers",
"following_url": "https://api.github.com/users/ankur0904/following{/other_user}",
"gists_url": "https://api.github.com/users/ankur0904/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ankur0904/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ankur0904/subscriptions",
"organizations_url": "https://api.github.com/users/ankur0904/orgs",
"repos_url": "https://api.github.com/users/ankur0904/repos",
"events_url": "https://api.github.com/users/ankur0904/events{/privacy}",
"received_events_url": "https://api.github.com/users/ankur0904/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 | 3 | 2023-10-26T17:25:53 | 2023-10-31T03:46:23 | 2023-10-31T01:56:48 |
CONTRIBUTOR
| null |
- **Description:**
Before:
`
To install modules needed for the common LLM providers, run:
`
After:
`
To install modules needed for the common LLM providers, run the following command. Please bear in mind that this command is exclusively compatible with the `bash` shell:
`
> This is required for the user so that the user will know if this command is compatible with `zsh` or not.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12354/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/12354/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12354",
"html_url": "https://github.com/langchain-ai/langchain/pull/12354",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12354.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12354.patch",
"merged_at": "2023-10-31T01:56:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12353
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12353/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12353/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12353/events
|
https://github.com/langchain-ai/langchain/pull/12353
| 1,963,984,088 |
PR_kwDOIPDwls5d5CxH
| 12,353 |
Add template for Pinecone + Multi-Query
|
{
"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
}
|
[
{
"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"
},
{
"id": 5932474361,
"node_id": "LA_kwDOIPDwls8AAAABYZpf-Q",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20pinecone",
"name": "integration: pinecone",
"color": "BC53BE",
"default": false,
"description": "Related to Pinecone vector store integration"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-26T16:57:40 | 2023-10-26T17:12:24 | 2023-10-26T17:12:23 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12353/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/12353/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12353",
"html_url": "https://github.com/langchain-ai/langchain/pull/12353",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12353.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12353.patch",
"merged_at": "2023-10-26T17:12:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12352
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12352/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12352/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12352/events
|
https://github.com/langchain-ai/langchain/pull/12352
| 1,963,954,288 |
PR_kwDOIPDwls5d479g
| 12,352 |
bump 324 and 35
|
{
"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-10-26T16:45:13 | 2023-10-26T17:10:28 | 2023-10-26T17:10:27 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12352/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/12352/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12352",
"html_url": "https://github.com/langchain-ai/langchain/pull/12352",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12352.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12352.patch",
"merged_at": "2023-10-26T17:10:27"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12351
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12351/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12351/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12351/events
|
https://github.com/langchain-ai/langchain/issues/12351
| 1,963,933,380 |
I_kwDOIPDwls51Dz7E
| 12,351 |
InvalidRequestError: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?
|
{
"login": "Samirit",
"id": 73527396,
"node_id": "MDQ6VXNlcjczNTI3Mzk2",
"avatar_url": "https://avatars.githubusercontent.com/u/73527396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Samirit",
"html_url": "https://github.com/Samirit",
"followers_url": "https://api.github.com/users/Samirit/followers",
"following_url": "https://api.github.com/users/Samirit/following{/other_user}",
"gists_url": "https://api.github.com/users/Samirit/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Samirit/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Samirit/subscriptions",
"organizations_url": "https://api.github.com/users/Samirit/orgs",
"repos_url": "https://api.github.com/users/Samirit/repos",
"events_url": "https://api.github.com/users/Samirit/events{/privacy}",
"received_events_url": "https://api.github.com/users/Samirit/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": 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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-26T16:32:02 | 2023-10-26T16:50:36 | null |
NONE
| null |
### System Info
For this code:
from langchain import LLMMathChain, OpenAI, SerpAPIWrapper, SQLDatabase
from langchain_experimental.sql import SQLDatabaseChain
from langchain.agents import initialize_agent, Tool
from langchain.agents import AgentType
from langchain.chat_models import ChatOpenAI
from decouple import config
oak = openai_secret_key (witheld for sake of security)
openai_api_key = oak
llm = ChatOpenAI(temperature=0, model="babbage-002", openai_api_key=openai_api_key)
llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)
db = SQLDatabase.from_uri("sqlite:///maids.db")
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)
tools = [
Tool(
name="Yellowsense_Database",
func=db_chain.run,
description="useful for when you need to answer questions about maids/cooks/nannies."
)
]
agent = initialize_agent(
tools=tools, llm=llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)
user_input = input(
"""You can now chat with your database.
Please enter your question or type 'quit' to exit: """
)
agent.run(user_input) I am getting this error:
InvalidRequestError: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?
What all models can I use for chatmodel?
### 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
This is the code I am using: from langchain import LLMMathChain, OpenAI, SerpAPIWrapper, SQLDatabase
from langchain_experimental.sql import SQLDatabaseChain
from langchain.agents import initialize_agent, Tool
from langchain.agents import AgentType
from langchain.chat_models import ChatOpenAI
from decouple import config
a = "sk-wLQRwTr8RS"
b = "Z1ph7bIlovT3B"
c = "lbkFJe49s56n"
d = "KfeWgts8MpMQC"
oak = a + b + c + d
openai_api_key = oak
# create LLM model
llm = ChatOpenAI(temperature=0, model="babbage-002", openai_api_key=openai_api_key)
# create an LLM math tool
llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)
# connect to our database
db = SQLDatabase.from_uri("sqlite:///maids.db")
# create the database chain
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)
tools = [
Tool(
name="Maid_Database",
func=db_chain.run,
description="useful for when you need to answer questions about maids/cooks/nannies."
)
]
# creating the agent
agent = initialize_agent(
tools=tools, llm=llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)
user_input = input(
"""You can now chat with your database.
Please enter your question or type 'quit' to exit: """
)
# ask the LLM a question
agent.run(user_input)
### Expected behavior
I should be getting the answer using the model I selected
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12351/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/12351/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12349
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12349/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12349/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12349/events
|
https://github.com/langchain-ai/langchain/pull/12349
| 1,963,895,510 |
PR_kwDOIPDwls5d4vVg
| 12,349 |
fix self query constructor
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"default": false,
"description": ""
},
{
"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-10-26T16:08:05 | 2023-10-26T16:18:17 | 2023-10-26T16:18:16 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12349/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/12349/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12349",
"html_url": "https://github.com/langchain-ai/langchain/pull/12349",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12349.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12349.patch",
"merged_at": "2023-10-26T16:18:16"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12348
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12348/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12348/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12348/events
|
https://github.com/langchain-ai/langchain/issues/12348
| 1,963,840,031 |
I_kwDOIPDwls51DdIf
| 12,348 |
Fix rrror "Could not parse function call data" for JsonKeyOutputFunctionsParser (and other Json parsers) without additional LLM call
|
{
"login": "PavelAgurov",
"id": 37487002,
"node_id": "MDQ6VXNlcjM3NDg3MDAy",
"avatar_url": "https://avatars.githubusercontent.com/u/37487002?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/PavelAgurov",
"html_url": "https://github.com/PavelAgurov",
"followers_url": "https://api.github.com/users/PavelAgurov/followers",
"following_url": "https://api.github.com/users/PavelAgurov/following{/other_user}",
"gists_url": "https://api.github.com/users/PavelAgurov/gists{/gist_id}",
"starred_url": "https://api.github.com/users/PavelAgurov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/PavelAgurov/subscriptions",
"organizations_url": "https://api.github.com/users/PavelAgurov/orgs",
"repos_url": "https://api.github.com/users/PavelAgurov/repos",
"events_url": "https://api.github.com/users/PavelAgurov/events{/privacy}",
"received_events_url": "https://api.github.com/users/PavelAgurov/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"
}
] |
open
| false | null |
[] | null | 9 | 2023-10-26T15:34:55 | 2023-11-01T10:57:22 | null |
NONE
| null |
### Feature request
LangChain v0.0.323
Python 3.10.12
turbo-3.5
I use JsonKeyOutputFunctionsParser to parse JSON output:
```
extraction_functions = [convert_pydantic_to_openai_function(Information)]
extraction_model = llm.bind(functions=extraction_functions, function_call={"name": "Information"})
prompt = ChatPromptTemplate.from_messages([
("system", "Extract the relevant information, if not explicitly provided do not guess. Extract partial info"),
("human", "{input}")
])
extraction_chain = prompt | extraction_model | JsonKeyOutputFunctionsParser(key_name="people")
```
For some text (in my tests it's 1 from 500) we have wrong JSON, because there are wrong placed comma or JSON is wrapped by extra text and that can't be parsed by json.loads.
It seems we can use OutputFixingParser, but in most of cases it's not needed to call LLM - we can just fix it my regex.
I did special code to fix such JSONs:
```
class JsonFixOutputFunctionsParser(JsonOutputFunctionsParser):
"""Parse an output as the Json object."""
def get_fixed_json(self, text : str) -> str:
"""Fix LLM json"""
text = re.sub(r'",\s*}', '"}', text)
text = re.sub(r"},\s*]", "}]", text)
text = re.sub(r"}\s*{", "},{", text)
open_bracket = min(text.find('['), text.find('{'))
if open_bracket == -1:
return text
close_bracket = max(text.rfind(']'), text.rfind('}'))
if close_bracket == -1:
return text
return text[open_bracket:close_bracket+1]
def parse_result(self, result: List[Generation], *, partial: bool = False) -> Any:
.................
fixed_json = self.get_fixed_json(str(function_call["arguments"]))
return json.loads(fixed_json)
```
Now it works without error:
`extraction_chain_fixed = prompt | extraction_model | JsonFixOutputFunctionsParser()`
Code example with this bug and fix: https://colab.research.google.com/drive/1LiT6-ljO_g7xn4Y8qaXKZaUlcpVdEEGI?usp=sharing
### Motivation
With get_fixed_json we can avoid extra LLM call and easy and fast fix most of wrong Jsons.
I tested it on 9000 runs and it fixed all errors that I got.
### Your contribution
Feel free to use get_fixed_json function where we need to parse JSON, not only for function calls.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12348/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/12348/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12347
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12347/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12347/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12347/events
|
https://github.com/langchain-ai/langchain/pull/12347
| 1,963,827,069 |
PR_kwDOIPDwls5d4gZa
| 12,347 |
Gmail multiple encodings support when getting or searching for messages
|
{
"login": "halfag",
"id": 100271620,
"node_id": "U_kgDOBfoGBA",
"avatar_url": "https://avatars.githubusercontent.com/u/100271620?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/halfag",
"html_url": "https://github.com/halfag",
"followers_url": "https://api.github.com/users/halfag/followers",
"following_url": "https://api.github.com/users/halfag/following{/other_user}",
"gists_url": "https://api.github.com/users/halfag/gists{/gist_id}",
"starred_url": "https://api.github.com/users/halfag/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/halfag/subscriptions",
"organizations_url": "https://api.github.com/users/halfag/orgs",
"repos_url": "https://api.github.com/users/halfag/repos",
"events_url": "https://api.github.com/users/halfag/events{/privacy}",
"received_events_url": "https://api.github.com/users/halfag/received_events",
"type": "User",
"site_admin": false
}
|
[
{
"id": 5463330795,
"node_id": "LA_kwDOIPDwls8AAAABRaPP6w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/needs%20test",
"name": "needs test",
"color": "E99695",
"default": false,
"description": "PR needs to be updated with tests"
},
{
"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": 6232714104,
"node_id": "LA_kwDOIPDwls8AAAABc3-reA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XS",
"name": "size:XS",
"color": "C2E0C6",
"default": false,
"description": "This PR changes 0-9 lines, ignoring generated files."
}
] |
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-10-26T15:27:37 | 2024-01-02T16:53:09 | 2024-01-02T16:53:05 |
NONE
| null |
**Description:
This PR ensures better support for various email encodings. Encoding Support in search and get message functions: Integrated the decode_payload function to handle multiple email encodings gracefully. This ensures that emails with different charsets are decoded correctly without causing errors.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12347/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/12347/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12347",
"html_url": "https://github.com/langchain-ai/langchain/pull/12347",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12347.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12347.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12346
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12346/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12346/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12346/events
|
https://github.com/langchain-ai/langchain/pull/12346
| 1,963,824,340 |
PR_kwDOIPDwls5d4fzj
| 12,346 |
add docs for templates
|
{
"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-10-26T15:26:11 | 2023-10-26T15:28:02 | 2023-10-26T15:28:01 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12346/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/12346/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12346",
"html_url": "https://github.com/langchain-ai/langchain/pull/12346",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12346.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12346.patch",
"merged_at": "2023-10-26T15:28:01"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12345
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12345/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12345/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12345/events
|
https://github.com/langchain-ai/langchain/pull/12345
| 1,963,820,252 |
PR_kwDOIPDwls5d4e7C
| 12,345 |
e2b tool - fix initialization and improve tool description
|
{
"login": "mlejva",
"id": 5136688,
"node_id": "MDQ6VXNlcjUxMzY2ODg=",
"avatar_url": "https://avatars.githubusercontent.com/u/5136688?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mlejva",
"html_url": "https://github.com/mlejva",
"followers_url": "https://api.github.com/users/mlejva/followers",
"following_url": "https://api.github.com/users/mlejva/following{/other_user}",
"gists_url": "https://api.github.com/users/mlejva/gists{/gist_id}",
"starred_url": "https://api.github.com/users/mlejva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mlejva/subscriptions",
"organizations_url": "https://api.github.com/users/mlejva/orgs",
"repos_url": "https://api.github.com/users/mlejva/repos",
"events_url": "https://api.github.com/users/mlejva/events{/privacy}",
"received_events_url": "https://api.github.com/users/mlejva/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-10-26T15:24:01 | 2023-10-26T15:47:50 | 2023-10-26T15:47:50 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12345/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/12345/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12345",
"html_url": "https://github.com/langchain-ai/langchain/pull/12345",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12345.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12345.patch",
"merged_at": "2023-10-26T15:47:50"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12344
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12344/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12344/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12344/events
|
https://github.com/langchain-ai/langchain/pull/12344
| 1,963,810,286 |
PR_kwDOIPDwls5d4cxF
| 12,344 |
fix : replace openllm config params with user input rather than defau…
|
{
"login": "ABHISHEK03312",
"id": 59995387,
"node_id": "MDQ6VXNlcjU5OTk1Mzg3",
"avatar_url": "https://avatars.githubusercontent.com/u/59995387?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ABHISHEK03312",
"html_url": "https://github.com/ABHISHEK03312",
"followers_url": "https://api.github.com/users/ABHISHEK03312/followers",
"following_url": "https://api.github.com/users/ABHISHEK03312/following{/other_user}",
"gists_url": "https://api.github.com/users/ABHISHEK03312/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ABHISHEK03312/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ABHISHEK03312/subscriptions",
"organizations_url": "https://api.github.com/users/ABHISHEK03312/orgs",
"repos_url": "https://api.github.com/users/ABHISHEK03312/repos",
"events_url": "https://api.github.com/users/ABHISHEK03312/events{/privacy}",
"received_events_url": "https://api.github.com/users/ABHISHEK03312/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 | 5 | 2023-10-26T15:18:36 | 2023-11-08T11:30:04 | null |
NONE
| null |
**Description:** Configured to update OpenLLM server configs with user specified values for each parameter.
**Issue:** Currently user specified values for each parameter is overwritten by default values due to the mixed of order of python dictionary updates.
**Dependencies:** No additional dependencies
@baskaryan , @eyurtsev , @hwchase17
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12344/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/12344/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12344",
"html_url": "https://github.com/langchain-ai/langchain/pull/12344",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12344.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12344.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12343
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12343/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12343/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12343/events
|
https://github.com/langchain-ai/langchain/issues/12343
| 1,963,761,221 |
I_kwDOIPDwls51DJ5F
| 12,343 |
Langchain evaluate_strings should allow custom output parsing
|
{
"login": "nik1097",
"id": 20815651,
"node_id": "MDQ6VXNlcjIwODE1NjUx",
"avatar_url": "https://avatars.githubusercontent.com/u/20815651?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nik1097",
"html_url": "https://github.com/nik1097",
"followers_url": "https://api.github.com/users/nik1097/followers",
"following_url": "https://api.github.com/users/nik1097/following{/other_user}",
"gists_url": "https://api.github.com/users/nik1097/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nik1097/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nik1097/subscriptions",
"organizations_url": "https://api.github.com/users/nik1097/orgs",
"repos_url": "https://api.github.com/users/nik1097/repos",
"events_url": "https://api.github.com/users/nik1097/events{/privacy}",
"received_events_url": "https://api.github.com/users/nik1097/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-26T14:54:17 | 2023-10-26T14:56:36 | null |
CONTRIBUTOR
| null |
### Feature request
Currently, there's only a specific output type for the evaluate_strings function in langchain.
{
reasoning: "blah blah"
score: 0 or 1
value: "Y" or "N"
}
Ideally users should be able to override this with the type of request they would want.
### Motivation
It really ties you down when you have to go with the same type of output parser.
### Your contribution
I can work on a PR for the change.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12343/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/12343/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12342
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12342/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12342/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12342/events
|
https://github.com/langchain-ai/langchain/pull/12342
| 1,963,755,881 |
PR_kwDOIPDwls5d4Q29
| 12,342 |
Fix the exception from langchain.utilities import ArceeWrapper
|
{
"login": "gnakw",
"id": 43206128,
"node_id": "MDQ6VXNlcjQzMjA2MTI4",
"avatar_url": "https://avatars.githubusercontent.com/u/43206128?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/gnakw",
"html_url": "https://github.com/gnakw",
"followers_url": "https://api.github.com/users/gnakw/followers",
"following_url": "https://api.github.com/users/gnakw/following{/other_user}",
"gists_url": "https://api.github.com/users/gnakw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/gnakw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gnakw/subscriptions",
"organizations_url": "https://api.github.com/users/gnakw/orgs",
"repos_url": "https://api.github.com/users/gnakw/repos",
"events_url": "https://api.github.com/users/gnakw/events{/privacy}",
"received_events_url": "https://api.github.com/users/gnakw/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-10-26T14:51:39 | 2023-10-26T16:19:43 | 2023-10-26T16:19:43 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:** Fix the exception from langchain.utilities import ArceeWrapper
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12342/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/12342/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12342",
"html_url": "https://github.com/langchain-ai/langchain/pull/12342",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12342.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12342.patch",
"merged_at": "2023-10-26T16:19:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12341
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12341/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12341/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12341/events
|
https://github.com/langchain-ai/langchain/issues/12341
| 1,963,750,813 |
I_kwDOIPDwls51DHWd
| 12,341 |
i am trying to optimize the cost of SQLDatabaseToolkit calls
|
{
"login": "akashkumar398",
"id": 24894328,
"node_id": "MDQ6VXNlcjI0ODk0MzI4",
"avatar_url": "https://avatars.githubusercontent.com/u/24894328?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akashkumar398",
"html_url": "https://github.com/akashkumar398",
"followers_url": "https://api.github.com/users/akashkumar398/followers",
"following_url": "https://api.github.com/users/akashkumar398/following{/other_user}",
"gists_url": "https://api.github.com/users/akashkumar398/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akashkumar398/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akashkumar398/subscriptions",
"organizations_url": "https://api.github.com/users/akashkumar398/orgs",
"repos_url": "https://api.github.com/users/akashkumar398/repos",
"events_url": "https://api.github.com/users/akashkumar398/events{/privacy}",
"received_events_url": "https://api.github.com/users/akashkumar398/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"
}
] |
open
| false | null |
[] | null | 3 | 2023-10-26T14:49:05 | 2023-10-26T22:30:34 | null |
NONE
| null |
### System Info
aws
### 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
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
here's my PROMPT and code:
from langchain.prompts.chat import ChatPromptTemplate
updated_prompt = ChatPromptTemplate.from_messages(
[
("system",
"""
You are a knowledgeable AI assistant specializing in extracting information from the 'inquiry' table in the MySQL Database.
Your primary task is to perform a single query on the schema of the 'inquiry' table and table and retrieve the data using SQL.
When formulating SQL queries, keep the following context in mind:
- Filter records based on exact column value matches.
- If the user inquires about the Status of the inquiry fetch all these columns: status, name, and time values, and inform the user about these specific values.
- Limit query results to a maximum of 3 unless the user specifies otherwise.
- Only query necessary columns.
- Avoid querying for non-existent columns.
- Place the 'ORDER BY' clause after 'WHERE.'
- Do not add a semicolon at the end of the SQL.
If the query results in an empty set, respond with "information not found"
Use this format:
Question: The user's query
Thought: Your thought process
Action: SQL Query
Action Input: SQL query
Observation: Query results
... (repeat for multiple queries)
Thought: Summarize what you've learned
Final Answer: Provide the final answer
Begin!
"""),
("user", "{question}\n ai: "),
]
)
llm = ChatOpenAI(model=os.getenv("OPENAI_CHAT_MODEL"), temperature=0) # best result
sql_toolkit = SQLDatabaseToolkit(db=db, llm=llm)
sql_toolkit.get_tools()
sqldb_agent = create_sql_agent(
llm=llm,
toolkit=sql_toolkit,
agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
verbose=True,
handle_parsing_errors=True,
)
sqldb_agent.run(updated_prompt.format(
question="What is the status of inquiry 123?"
))
### Expected behavior
This is my current cost
response: The inquiry 123 is Completed on August 21, 2020, at 12 PM.
Total Tokens: 18566
Prompt Tokens: 18349
Completion Tokens: 217
Total Cost (USD): $0.055915
I want to reduce the cost to less than > $0.01
any suggestions will help.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12341/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/12341/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12339
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12339/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12339/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12339/events
|
https://github.com/langchain-ai/langchain/issues/12339
| 1,963,570,897 |
I_kwDOIPDwls51CbbR
| 12,339 |
Issue with OpenAI tokenizer not functioning as expected in streaming mode
|
{
"login": "OrelOfficely",
"id": 91012713,
"node_id": "MDQ6VXNlcjkxMDEyNzEz",
"avatar_url": "https://avatars.githubusercontent.com/u/91012713?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/OrelOfficely",
"html_url": "https://github.com/OrelOfficely",
"followers_url": "https://api.github.com/users/OrelOfficely/followers",
"following_url": "https://api.github.com/users/OrelOfficely/following{/other_user}",
"gists_url": "https://api.github.com/users/OrelOfficely/gists{/gist_id}",
"starred_url": "https://api.github.com/users/OrelOfficely/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OrelOfficely/subscriptions",
"organizations_url": "https://api.github.com/users/OrelOfficely/orgs",
"repos_url": "https://api.github.com/users/OrelOfficely/repos",
"events_url": "https://api.github.com/users/OrelOfficely/events{/privacy}",
"received_events_url": "https://api.github.com/users/OrelOfficely/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"
}
] |
open
| false | null |
[] | null | 3 | 2023-10-26T13:26:24 | 2024-01-16T22:33:08 | null |
NONE
| null |
### System Info
I am developing an app utilizing the streaming functionality in Python 3.10. I've crafted my own generator and callback for this purpose. However, I've stumbled upon an issue when setting llm.streaming to true and utilizing a callback - the OpenAI tokenizer appears to malfunction, displaying a token count of 0$ which is not the expected behavior.
### Who can help?
@agola11
@hwchase17
### 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
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [X] Callbacks/Tracing
- [ ] Async
### Reproduction
def arun(self, g, chat_history, query:str, config:dict, agent_id:str):
try:
llm = ChatOpenAI(
temperature=0,
verbose=False,
model='gpt-4',
streaming=True,
callbacks=[ChainStreamHandler(g)]
)
with get_openai_callback() as cb:
custom_agent = customAgent.run(g, llm, chat_history, query, config, agent_id)
print(cb)
return custom_agent
finally:
g.close()
Tokens Used: 0
Prompt Tokens: 0
Completion Tokens: 0
Successful Requests: 0
Total Cost (USD): $0.0
### Expected behavior
I aim to have the tokenizer working correctly to gauge the token usage and its corresponding cost. Any guidance or suggestions to rectify this problem would be greatly appreciated
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12339/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/12339/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12338
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12338/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12338/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12338/events
|
https://github.com/langchain-ai/langchain/pull/12338
| 1,963,514,428 |
PR_kwDOIPDwls5d3bnQ
| 12,338 |
fix typo
|
{
"login": "wongzc",
"id": 52870701,
"node_id": "MDQ6VXNlcjUyODcwNzAx",
"avatar_url": "https://avatars.githubusercontent.com/u/52870701?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/wongzc",
"html_url": "https://github.com/wongzc",
"followers_url": "https://api.github.com/users/wongzc/followers",
"following_url": "https://api.github.com/users/wongzc/following{/other_user}",
"gists_url": "https://api.github.com/users/wongzc/gists{/gist_id}",
"starred_url": "https://api.github.com/users/wongzc/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wongzc/subscriptions",
"organizations_url": "https://api.github.com/users/wongzc/orgs",
"repos_url": "https://api.github.com/users/wongzc/repos",
"events_url": "https://api.github.com/users/wongzc/events{/privacy}",
"received_events_url": "https://api.github.com/users/wongzc/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-10-26T13:00:08 | 2023-10-26T16:18:48 | 2023-10-26T16:18:48 |
CONTRIBUTOR
| null |
fixed a typo in docs/docs/integrations/toolkits/github.ipynb
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12338/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/12338/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12338",
"html_url": "https://github.com/langchain-ai/langchain/pull/12338",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12338.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12338.patch",
"merged_at": "2023-10-26T16:18:48"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12337
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12337/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12337/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12337/events
|
https://github.com/langchain-ai/langchain/issues/12337
| 1,963,492,115 |
I_kwDOIPDwls51CIMT
| 12,337 |
Issue: Update `anyio` dependency
|
{
"login": "francesca-raimondi-causalens",
"id": 104899047,
"node_id": "U_kgDOBkCh5w",
"avatar_url": "https://avatars.githubusercontent.com/u/104899047?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/francesca-raimondi-causalens",
"html_url": "https://github.com/francesca-raimondi-causalens",
"followers_url": "https://api.github.com/users/francesca-raimondi-causalens/followers",
"following_url": "https://api.github.com/users/francesca-raimondi-causalens/following{/other_user}",
"gists_url": "https://api.github.com/users/francesca-raimondi-causalens/gists{/gist_id}",
"starred_url": "https://api.github.com/users/francesca-raimondi-causalens/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/francesca-raimondi-causalens/subscriptions",
"organizations_url": "https://api.github.com/users/francesca-raimondi-causalens/orgs",
"repos_url": "https://api.github.com/users/francesca-raimondi-causalens/repos",
"events_url": "https://api.github.com/users/francesca-raimondi-causalens/events{/privacy}",
"received_events_url": "https://api.github.com/users/francesca-raimondi-causalens/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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-26T12:48:24 | 2023-10-27T18:22:08 | null |
NONE
| null |
### Issue you'd like to raise.
Since version `v0.0.299` `LangChain` depends on `anyio = "<4.0"`.
### Suggestion:
Could you please relax the `anyio` dependency to support a wider range of versions `<5.0` as `4.0.0` has been out since August?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12337/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/12337/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12336
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12336/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12336/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12336/events
|
https://github.com/langchain-ai/langchain/issues/12336
| 1,963,490,327 |
I_kwDOIPDwls51CHwX
| 12,336 |
load_summarize_chain ValidationError, str type expected
|
{
"login": "WaleedAlfaris",
"id": 92319577,
"node_id": "U_kgDOBYCvWQ",
"avatar_url": "https://avatars.githubusercontent.com/u/92319577?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/WaleedAlfaris",
"html_url": "https://github.com/WaleedAlfaris",
"followers_url": "https://api.github.com/users/WaleedAlfaris/followers",
"following_url": "https://api.github.com/users/WaleedAlfaris/following{/other_user}",
"gists_url": "https://api.github.com/users/WaleedAlfaris/gists{/gist_id}",
"starred_url": "https://api.github.com/users/WaleedAlfaris/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WaleedAlfaris/subscriptions",
"organizations_url": "https://api.github.com/users/WaleedAlfaris/orgs",
"repos_url": "https://api.github.com/users/WaleedAlfaris/repos",
"events_url": "https://api.github.com/users/WaleedAlfaris/events{/privacy}",
"received_events_url": "https://api.github.com/users/WaleedAlfaris/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"
},
{
"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-10-26T12:47:28 | 2023-10-27T11:19:25 | null |
NONE
| null |
### System Info
langchain 0.0.275
Ubuntu 20.04.6 LTS
llama-2-7b-chat.ggmlv3.q4_0.bin
llama-cpp-python 0.1.78
I am getting a validation error when trying to use the document summary chain. It is giving an error "str type expected". I am passing Document objects to the model. I have checked the type of all page contents and they are indeed strings.
**Error**
```bash
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
[/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb) Cell 9 line 5
[3](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224c4c4d227d/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2) docs = loader.load_and_split()
[4](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224c4c4d227d/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3) chain = load_summarize_chain(llm, chain_type='map_reduce')
----> [5](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224c4c4d227d/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4) summary = chain.run(docs[:1])
[6](vscode-notebook-cell://ssh-remote%2B7b22686f73744e616d65223a224c4c4d227d/home/waleedalfaris/localGPT/notebooks/doc_summary.ipynb#X34sdnNjb2RlLXJlbW90ZQ%3D%3D?line=5) print(summary)
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/base.py:475](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/base.py:475), in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
473 if len(args) != 1:
474 raise ValueError("`run` supports only one positional argument.")
--> 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 ]
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/base.py:282](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/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
283 run_manager.on_chain_end(outputs)
284 final_outputs: Dict[str, Any] = self.prep_outputs(
285 inputs, outputs, return_only_outputs
286 )
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/base.py:276](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/base.py:276), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, include_run_info)
270 run_manager = callback_manager.on_chain_start(
271 dumpd(self),
272 inputs,
273 )
274 try:
275 outputs = (
--> 276 self._call(inputs, run_manager=run_manager)
277 if new_arg_supported
278 else self._call(inputs)
279 )
280 except (KeyboardInterrupt, Exception) as e:
281 run_manager.on_chain_error(e)
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py:105](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py:105), in BaseCombineDocumentsChain._call(self, inputs, run_manager)
103 # Other keys are assumed to be needed for LLM prediction
104 other_keys = {k: v for k, v in inputs.items() if k != self.input_key}
--> 105 output, extra_return_dict = self.combine_docs(
106 docs, callbacks=_run_manager.get_child(), **other_keys
107 )
108 extra_return_dict[self.output_key] = output
109 return extra_return_dict
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/combine_documents/map_reduce.py:209](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/combine_documents/map_reduce.py:209), in MapReduceDocumentsChain.combine_docs(self, docs, token_max, callbacks, **kwargs)
197 def combine_docs(
198 self,
199 docs: List[Document],
(...)
202 **kwargs: Any,
203 ) -> Tuple[str, dict]:
204 """Combine documents in a map reduce manner.
205
206 Combine by mapping first chain over all documents, then reducing the results.
207 This reducing can be done recursively if needed (if there are many documents).
208 """
--> 209 map_results = self.llm_chain.apply(
210 # FYI - this is parallelized and so it is fast.
211 [{self.document_variable_name: d.page_content, **kwargs} for d in docs],
212 callbacks=callbacks,
213 )
214 question_result_key = self.llm_chain.output_key
215 result_docs = [
216 Document(page_content=r[question_result_key], metadata=docs[i].metadata)
217 # This uses metadata from the docs, and the textual results from `results`
218 for i, r in enumerate(map_results)
219 ]
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:189](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:189), in LLMChain.apply(self, input_list, callbacks)
187 except (KeyboardInterrupt, Exception) as e:
188 run_manager.on_chain_error(e)
--> 189 raise e
190 outputs = self.create_outputs(response)
191 run_manager.on_chain_end({"outputs": outputs})
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:186](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:186), in LLMChain.apply(self, input_list, callbacks)
181 run_manager = callback_manager.on_chain_start(
182 dumpd(self),
183 {"input_list": input_list},
184 )
185 try:
--> 186 response = self.generate(input_list, run_manager=run_manager)
187 except (KeyboardInterrupt, Exception) as e:
188 run_manager.on_chain_error(e)
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:101](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/chains/llm.py:101), in LLMChain.generate(self, input_list, run_manager)
99 """Generate LLM result from inputs."""
100 prompts, stop = self.prep_prompts(input_list, run_manager=run_manager)
--> 101 return self.llm.generate_prompt(
102 prompts,
103 stop,
104 callbacks=run_manager.get_child() if run_manager else None,
105 **self.llm_kwargs,
106 )
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:467](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:467), in BaseLLM.generate_prompt(self, prompts, stop, callbacks, **kwargs)
459 def generate_prompt(
460 self,
461 prompts: List[PromptValue],
(...)
464 **kwargs: Any,
465 ) -> LLMResult:
466 prompt_strings = [p.to_string() for p in prompts]
--> 467 return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:602](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:602), in BaseLLM.generate(self, prompts, stop, callbacks, tags, metadata, **kwargs)
593 raise ValueError(
594 "Asked to cache, but no cache found at `langchain.cache`."
595 )
596 run_managers = [
597 callback_manager.on_llm_start(
598 dumpd(self), [prompt], invocation_params=params, options=options
599 )[0]
600 for callback_manager, prompt in zip(callback_managers, prompts)
601 ]
--> 602 output = self._generate_helper(
603 prompts, stop, run_managers, bool(new_arg_supported), **kwargs
604 )
605 return output
606 if len(missing_prompts) > 0:
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:504](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:504), in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
502 for run_manager in run_managers:
503 run_manager.on_llm_error(e)
--> 504 raise e
505 flattened_outputs = output.flatten()
506 for manager, flattened_output in zip(run_managers, flattened_outputs):
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:491](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:491), in BaseLLM._generate_helper(self, prompts, stop, run_managers, new_arg_supported, **kwargs)
481 def _generate_helper(
482 self,
483 prompts: List[str],
(...)
487 **kwargs: Any,
488 ) -> LLMResult:
489 try:
490 output = (
--> 491 self._generate(
492 prompts,
493 stop=stop,
494 # TODO: support multiple run managers
495 run_manager=run_managers[0] if run_managers else None,
496 **kwargs,
497 )
498 if new_arg_supported
499 else self._generate(prompts, stop=stop)
500 )
501 except (KeyboardInterrupt, Exception) as e:
502 for run_manager in run_managers:
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:985](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/llms/base.py:985), in LLM._generate(self, prompts, stop, run_manager, **kwargs)
979 for prompt in prompts:
980 text = (
981 self._call(prompt, stop=stop, run_manager=run_manager, **kwargs)
982 if new_arg_supported
983 else self._call(prompt, stop=stop, **kwargs)
984 )
--> 985 generations.append([Generation(text=text)])
986 return LLMResult(generations=generations)
File [~/localGPT/venv/lib/python3.10/site-packages/langchain/load/serializable.py:74](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/langchain/load/serializable.py:74), in Serializable.__init__(self, **kwargs)
73 def __init__(self, **kwargs: Any) -> None:
---> 74 super().__init__(**kwargs)
75 self._lc_kwargs = kwargs
File [~/localGPT/venv/lib/python3.10/site-packages/pydantic/main.py:341](https://vscode-remote+ssh-002dremote-002b7b22686f73744e616d65223a224c4c4d227d.vscode-resource.vscode-cdn.net/home/waleedalfaris/localGPT/notebooks/~/localGPT/venv/lib/python3.10/site-packages/pydantic/main.py:341), in pydantic.main.BaseModel.__init__()
ValidationError: 1 validation error for Generation
text
str type expected (type=type_error.str)
```
### 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
- [ ] Output Parsers
- [ ] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
from langchain.chains.summarize import load_summarize_chain
from langchain.prompts import PromptTemplate
from langchain.document_loaders import PDFMinerLoader
from langchain.llms import LlamaCpp
kwargs = {
"model_path": model_path,
"n_ctx": 4096,
"max_tokens": 4096,
"seed": 42,
"n_gpu_layers": -1,
"verbose": True,
}
llm = LlamaCpp(**kwargs)
file = 'test_file.pdf'
loader = PDFMinerLoader(file)
docs = loader.load_and_split()
chain = load_summarize_chain(llm, chain_type='map_reduce')
summary = chain.run(docs)
print(summary)
```
### Expected behavior
The chain should provide a summary of the Documents provided
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12336/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/12336/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12335
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12335/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12335/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12335/events
|
https://github.com/langchain-ai/langchain/issues/12335
| 1,963,275,005 |
I_kwDOIPDwls51BTL9
| 12,335 |
Unable to filter results in Neo4j Vectorstore.as_retriever() method using filter paramter in search_kwargs
|
{
"login": "snatthani",
"id": 19748080,
"node_id": "MDQ6VXNlcjE5NzQ4MDgw",
"avatar_url": "https://avatars.githubusercontent.com/u/19748080?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/snatthani",
"html_url": "https://github.com/snatthani",
"followers_url": "https://api.github.com/users/snatthani/followers",
"following_url": "https://api.github.com/users/snatthani/following{/other_user}",
"gists_url": "https://api.github.com/users/snatthani/gists{/gist_id}",
"starred_url": "https://api.github.com/users/snatthani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/snatthani/subscriptions",
"organizations_url": "https://api.github.com/users/snatthani/orgs",
"repos_url": "https://api.github.com/users/snatthani/repos",
"events_url": "https://api.github.com/users/snatthani/events{/privacy}",
"received_events_url": "https://api.github.com/users/snatthani/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"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 7 | 2023-10-26T11:08:53 | 2023-12-04T23:41:57 | null |
NONE
| null |
### Issue you'd like to raise.
Hello Team,
I am trying to build a QA system with text files as its knowledge base. While creating embeddings I have provided different metadata tags to documents.
I want to use this metadata to filter documents before sending them to LLM to generate answer.
I am using as_retriever() method to filter the documents based on 'key':'value' pair. Code below
```
vectordb.as_retriever(
search_type="similarity",
search_kwargs = {
'filter' : {'key1' : 'value1'}
}
)
```
This method works great to filter out the documents when I am using ChromaDB as VectorStore, but does not work when I use Neo4j as VectorStore. It returns the same results with or without filter using Neo4j
To figure out the issue, I checked langchain's source code for implementation of ChromaDB and Neo4j Vectorstore.
In ChomaDB the similarity_search() method is implemented as follows -
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/vectorstores/chroma.py

Here the filter parameter is passed to the next function - self.similarity_search_with_score(query, k, filter=filter).
But when I checked the same method for Neo4j
https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/vectorstores/neo4j_vector.py

Here the filter parameter or the **kwargs is not passed to the next function -
self.similarity_search_by_vector(
embedding=embedding,
k=k,
query=query,
)
Please check if this is what is causing the issue.
Also let me know if something is wrong in my implementation.
Thanks in Advance
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12335/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/12335/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12334
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12334/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12334/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12334/events
|
https://github.com/langchain-ai/langchain/pull/12334
| 1,963,269,136 |
PR_kwDOIPDwls5d2kok
| 12,334 |
Update README.md
|
{
"login": "kushal34712",
"id": 98145879,
"node_id": "U_kgDOBdmWVw",
"avatar_url": "https://avatars.githubusercontent.com/u/98145879?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kushal34712",
"html_url": "https://github.com/kushal34712",
"followers_url": "https://api.github.com/users/kushal34712/followers",
"following_url": "https://api.github.com/users/kushal34712/following{/other_user}",
"gists_url": "https://api.github.com/users/kushal34712/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kushal34712/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kushal34712/subscriptions",
"organizations_url": "https://api.github.com/users/kushal34712/orgs",
"repos_url": "https://api.github.com/users/kushal34712/repos",
"events_url": "https://api.github.com/users/kushal34712/events{/privacy}",
"received_events_url": "https://api.github.com/users/kushal34712/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-10-26T11:05:33 | 2023-10-26T16:16:24 | 2023-10-26T16:16:23 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12334/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/12334/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12334",
"html_url": "https://github.com/langchain-ai/langchain/pull/12334",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12334.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12334.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12333
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12333/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12333/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12333/events
|
https://github.com/langchain-ai/langchain/pull/12333
| 1,963,239,930 |
PR_kwDOIPDwls5d2eLv
| 12,333 |
Fix typos in quickstart.mdx
|
{
"login": "LaurentAjdnik",
"id": 83899250,
"node_id": "MDQ6VXNlcjgzODk5MjUw",
"avatar_url": "https://avatars.githubusercontent.com/u/83899250?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/LaurentAjdnik",
"html_url": "https://github.com/LaurentAjdnik",
"followers_url": "https://api.github.com/users/LaurentAjdnik/followers",
"following_url": "https://api.github.com/users/LaurentAjdnik/following{/other_user}",
"gists_url": "https://api.github.com/users/LaurentAjdnik/gists{/gist_id}",
"starred_url": "https://api.github.com/users/LaurentAjdnik/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/LaurentAjdnik/subscriptions",
"organizations_url": "https://api.github.com/users/LaurentAjdnik/orgs",
"repos_url": "https://api.github.com/users/LaurentAjdnik/repos",
"events_url": "https://api.github.com/users/LaurentAjdnik/events{/privacy}",
"received_events_url": "https://api.github.com/users/LaurentAjdnik/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-10-26T10:48:14 | 2023-10-26T16:14:50 | 2023-10-26T16:14:50 |
CONTRIBUTOR
| null |
- **Description:** Fixes a few typos in quickstart.mdx
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12333/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/12333/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12333",
"html_url": "https://github.com/langchain-ai/langchain/pull/12333",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12333.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12333.patch",
"merged_at": "2023-10-26T16:14:50"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12441
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12441/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12441/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12441/events
|
https://github.com/langchain-ai/langchain/issues/12441
| 1,966,025,938 |
I_kwDOIPDwls51LyzS
| 12,441 |
langserve with Llamacpp
|
{
"login": "hamaadtahiir",
"id": 93662126,
"node_id": "U_kgDOBZUrrg",
"avatar_url": "https://avatars.githubusercontent.com/u/93662126?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/hamaadtahiir",
"html_url": "https://github.com/hamaadtahiir",
"followers_url": "https://api.github.com/users/hamaadtahiir/followers",
"following_url": "https://api.github.com/users/hamaadtahiir/following{/other_user}",
"gists_url": "https://api.github.com/users/hamaadtahiir/gists{/gist_id}",
"starred_url": "https://api.github.com/users/hamaadtahiir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hamaadtahiir/subscriptions",
"organizations_url": "https://api.github.com/users/hamaadtahiir/orgs",
"repos_url": "https://api.github.com/users/hamaadtahiir/repos",
"events_url": "https://api.github.com/users/hamaadtahiir/events{/privacy}",
"received_events_url": "https://api.github.com/users/hamaadtahiir/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": 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"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[
{
"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 | 7 | 2023-10-26T10:44:09 | 2023-11-09T13:09:03 | null |
NONE
| null |
I am trying to use langserve with langchain llamacpp like this (chain.py):
```from flask import Flask, jsonify, request
from langchain.chains import RetrievalQA,ConversationalRetrievalChain
from langchain.embeddings import HuggingFaceInstructEmbeddings
from langchain.llms import LlamaCpp
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from prompt_template_utils import get_prompt_template
from langchain.vectorstores import Chroma, FAISS
from werkzeug.utils import secure_filename
from constants import CHROMA_SETTINGS, EMBEDDING_MODEL_NAME, PERSIST_DIRECTORY, MODEL_ID, MODEL_BASENAME
DEVICE_TYPE = "cuda" if torch.cuda.is_available() else "cpu"
SHOW_SOURCES = True
logging.info(f"Running on: {DEVICE_TYPE}")
logging.info(f"Display Source Documents set to: {SHOW_SOURCES}")
MODEL_PATH = '../llama-2-7b-32k-instruct.Q6_K.gguf'
def load_model():
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])
n_gpu_layers = 30 # Change this value based on your model and your GPU VRAM pool.
n_batch = 512 # Should be between 1 and n_ctx, consider the amount of VRAM in your GPU.
llm = LlamaCpp(
model_path=MODEL_PATH,
n_ctx = 8192,
n_gpu_layers=n_gpu_layers,
n_batch=n_batch,
repeat_penalty=1,
temperature=0.2,
max_tokens=100,
top_p=0.9,
top_k = 50,
rope_freq_scale=0.125,
stop = ["[INST]"],
# callback_manager=callback_manager,
streaming=True,
verbose=True, # Verbose is required to pass to the callback manager
)
return llm
EMBEDDINGS = HuggingFaceInstructEmbeddings(model_name=EMBEDDING_MODEL_NAME,
model_kwargs={"device": DEVICE_TYPE})
DB = FAISS.load_local(PERSIST_DIRECTORY, EMBEDDINGS)
RETRIEVER = DB.as_retriever(search_kwargs={'k': 16})
template = """\
[INST] <<SYS>>
{context}
<</SYS>>
[/INST]
[INST]{question}[/INST]
"""
LLM = load_model()#load_model(device_type=DEVICE_TYPE, model_id=MODEL_ID, model_basename=MODEL_BASENAME)
QA_CHAIN_PROMPT = PromptTemplate.from_template(template)
QA = ConversationalRetrievalChain.from_llm(LLM, retriever=RETRIEVER,
combine_docs_chain_kwargs={"prompt": QA_CHAIN_PROMPT})
```
The app.py file has this:
```
from fastapi import FastAPI
from langserve import add_routes
from chain import QA
app = FastAPI(title="Retrieval App")
add_routes(app, QA)
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)`
However when running /stream route, I get this warning:
NFO: Started server process [491117]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:48024 - "GET /docs HTTP/1.1" 200 OK
INFO: 127.0.0.1:48024 - "GET /openapi.json HTTP/1.1" 200 OK
INFO: 127.0.0.1:53430 - "POST /stream HTTP/1.1" 200 OK
/home/zeeshan/miniconda3/envs/llama/lib/python3.10/site-packages/langchain/llms/llamacpp.py:352: RuntimeWarning: coroutine 'AsyncCallbackManagerForLLMRun.on_llm_new_token' was never awaited
run_manager.on_llm_new_token(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
```
And the output is like this:

This seems not to be streaming output tokens. Does langserve even support langchain llamacpp or I am doing something wrong?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12441/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/12441/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12332
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12332/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12332/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12332/events
|
https://github.com/langchain-ai/langchain/pull/12332
| 1,963,142,886 |
PR_kwDOIPDwls5d2I5i
| 12,332 |
Fix json key output parser in partial (streaming) mode
|
{
"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": 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-10-26T09:54:28 | 2023-10-26T16:45:06 | 2023-10-26T16:45:05 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12332/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/12332/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12332",
"html_url": "https://github.com/langchain-ai/langchain/pull/12332",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12332.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12332.patch",
"merged_at": "2023-10-26T16:45:05"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12331
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12331/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12331/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12331/events
|
https://github.com/langchain-ai/langchain/pull/12331
| 1,963,046,737 |
PR_kwDOIPDwls5d1z32
| 12,331 |
Add `openaichat` to llms class mapping
|
{
"login": "bowenliang123",
"id": 1935105,
"node_id": "MDQ6VXNlcjE5MzUxMDU=",
"avatar_url": "https://avatars.githubusercontent.com/u/1935105?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bowenliang123",
"html_url": "https://github.com/bowenliang123",
"followers_url": "https://api.github.com/users/bowenliang123/followers",
"following_url": "https://api.github.com/users/bowenliang123/following{/other_user}",
"gists_url": "https://api.github.com/users/bowenliang123/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bowenliang123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bowenliang123/subscriptions",
"organizations_url": "https://api.github.com/users/bowenliang123/orgs",
"repos_url": "https://api.github.com/users/bowenliang123/repos",
"events_url": "https://api.github.com/users/bowenliang123/events{/privacy}",
"received_events_url": "https://api.github.com/users/bowenliang123/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"
}
] |
open
| false | null |
[] | null | 4 | 2023-10-26T09:03:12 | 2023-10-26T16:36:03 | null |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
- **Description:**
The `get_type_to_cls_dict` method provides type to class mapping. This PR fixes the missing `openaichat` type for importer for `OpenAIChat`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12331/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/12331/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12331",
"html_url": "https://github.com/langchain-ai/langchain/pull/12331",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12331.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12331.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12330
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12330/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12330/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12330/events
|
https://github.com/langchain-ai/langchain/issues/12330
| 1,962,991,552 |
I_kwDOIPDwls51AN_A
| 12,330 |
Issue: Can't get verbose output in a variable in python
|
{
"login": "ChiragM-Hexaware",
"id": 102511728,
"node_id": "U_kgDOBhw0cA",
"avatar_url": "https://avatars.githubusercontent.com/u/102511728?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ChiragM-Hexaware",
"html_url": "https://github.com/ChiragM-Hexaware",
"followers_url": "https://api.github.com/users/ChiragM-Hexaware/followers",
"following_url": "https://api.github.com/users/ChiragM-Hexaware/following{/other_user}",
"gists_url": "https://api.github.com/users/ChiragM-Hexaware/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ChiragM-Hexaware/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChiragM-Hexaware/subscriptions",
"organizations_url": "https://api.github.com/users/ChiragM-Hexaware/orgs",
"repos_url": "https://api.github.com/users/ChiragM-Hexaware/repos",
"events_url": "https://api.github.com/users/ChiragM-Hexaware/events{/privacy}",
"received_events_url": "https://api.github.com/users/ChiragM-Hexaware/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-10-26T08:31:31 | 2023-10-26T08:49:06 | null |
NONE
| null |
### Need Route Name : Coming in console but not in output
I am using Router chain to route my chain with MultiPromptChain. It gets routed and shows in console to which route it went but it doesn't come in output variable. It just shows in console. I want that in a variable. I used every available method like return_intermediate_steps=True and return_route_name=True, But it is not working
Below is the code:
`destination_chains = {}
for p_info in prompt_infos:
name = p_info["name"]
prompt_template = p_info["prompt_template"]
prompt = ChatPromptTemplate.from_template(template=prompt_template)
chain = LLMChain(llm=llm, prompt=prompt)
destination_chains[name] = chain
destinations = [f"{p['name']}: {p['description']}" for p in prompt_infos]
destinations_str = "\n".join(destinations)
default_prompt = ChatPromptTemplate.from_template("{input}")
default_chain = LLMChain(llm=llm, prompt=default_prompt)
MULTI_PROMPT_ROUTER_TEMPLATE = """Given a text input to a \
language model select the model prompt best suited for the input. \
You will be given the names of the available prompts and a \
description of what the prompt is best suited for. \
<< FORMATTING >>
Return a markdown code snippet with a JSON object formatted to look like:
```json
{{{{
"destination": string \ name of the prompt to use or "DEFAULT"
"next_inputs": string \ a potentially modified version of the original input
}}}}
```
REMEMBER: "destination" MUST be one of the candidate prompt \
names specified below.
REMEMBER: "next_inputs" can just be the original input \
if you don't think any modifications are needed.
<< CANDIDATE PROMPTS >>
{destinations}
<< INPUT >>
{{input}}
Output should be only in below format:
Destination used: Output of it
"""
router_template = MULTI_PROMPT_ROUTER_TEMPLATE.format(
destinations=destinations_str
)
router_prompt = PromptTemplate(
template=router_template,
input_variables=["input"],
output_parser=RouterOutputParser(),
)
router_chain = LLMRouterChain.from_llm(llm, router_prompt)
chain = MultiPromptChain(router_chain=router_chain,
destination_chains=destination_chains,
default_chain=default_chain, verbose=True
)
inputQues="How to turn on TV"
output = chain.run(input=inputQues)`
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12330/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/12330/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12329
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12329/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12329/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12329/events
|
https://github.com/langchain-ai/langchain/issues/12329
| 1,962,983,060 |
I_kwDOIPDwls51AL6U
| 12,329 |
return_source documents does not work
|
{
"login": "Vanekkk1",
"id": 91801007,
"node_id": "U_kgDOBXjFrw",
"avatar_url": "https://avatars.githubusercontent.com/u/91801007?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Vanekkk1",
"html_url": "https://github.com/Vanekkk1",
"followers_url": "https://api.github.com/users/Vanekkk1/followers",
"following_url": "https://api.github.com/users/Vanekkk1/following{/other_user}",
"gists_url": "https://api.github.com/users/Vanekkk1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Vanekkk1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Vanekkk1/subscriptions",
"organizations_url": "https://api.github.com/users/Vanekkk1/orgs",
"repos_url": "https://api.github.com/users/Vanekkk1/repos",
"events_url": "https://api.github.com/users/Vanekkk1/events{/privacy}",
"received_events_url": "https://api.github.com/users/Vanekkk1/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-10-26T08:26:40 | 2023-10-26T15:47:17 | null |
NONE
| null |
### System Info
Mac os sonoma
### 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
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Just use any chain that supports return_source_documents, try setting it to true.
### Expected behavior
I will say too many output keys and throw the error, please fix this otherwise metadata for items does not make sense, since you cannot return source docs anyway.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12329/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/12329/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12328
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12328/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12328/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12328/events
|
https://github.com/langchain-ai/langchain/pull/12328
| 1,962,961,898 |
PR_kwDOIPDwls5d1hiC
| 12,328 |
add allowed_operators property in QdrantTranslator
|
{
"login": "xieqihui",
"id": 21073184,
"node_id": "MDQ6VXNlcjIxMDczMTg0",
"avatar_url": "https://avatars.githubusercontent.com/u/21073184?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/xieqihui",
"html_url": "https://github.com/xieqihui",
"followers_url": "https://api.github.com/users/xieqihui/followers",
"following_url": "https://api.github.com/users/xieqihui/following{/other_user}",
"gists_url": "https://api.github.com/users/xieqihui/gists{/gist_id}",
"starred_url": "https://api.github.com/users/xieqihui/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/xieqihui/subscriptions",
"organizations_url": "https://api.github.com/users/xieqihui/orgs",
"repos_url": "https://api.github.com/users/xieqihui/repos",
"events_url": "https://api.github.com/users/xieqihui/events{/privacy}",
"received_events_url": "https://api.github.com/users/xieqihui/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": 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-10-26T08:14:06 | 2023-10-27T03:24:39 | 2023-10-26T16:18:29 |
CONTRIBUTOR
| null |
- **Description:**
This PR adds `allowd_operators` property to `QdrantTranslator` to fix the `TypeError: can only join an iterable` bug. This property is required in `get_query_constructor_prompt` in `query_constructor\base.py`:
```
allowed_operators=" | ".join(allowed_operators),
```
- **Issue:**
#12061
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12328/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/12328/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12328",
"html_url": "https://github.com/langchain-ai/langchain/pull/12328",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12328.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12328.patch",
"merged_at": "2023-10-26T16:18:29"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12327
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12327/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12327/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12327/events
|
https://github.com/langchain-ai/langchain/pull/12327
| 1,962,923,456 |
PR_kwDOIPDwls5d1ZQv
| 12,327 |
Feature/implement multi query rerank fusion retrieval
|
{
"login": "dmenini",
"id": 48685774,
"node_id": "MDQ6VXNlcjQ4Njg1Nzc0",
"avatar_url": "https://avatars.githubusercontent.com/u/48685774?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dmenini",
"html_url": "https://github.com/dmenini",
"followers_url": "https://api.github.com/users/dmenini/followers",
"following_url": "https://api.github.com/users/dmenini/following{/other_user}",
"gists_url": "https://api.github.com/users/dmenini/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dmenini/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dmenini/subscriptions",
"organizations_url": "https://api.github.com/users/dmenini/orgs",
"repos_url": "https://api.github.com/users/dmenini/repos",
"events_url": "https://api.github.com/users/dmenini/events{/privacy}",
"received_events_url": "https://api.github.com/users/dmenini/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-26T07:51:00 | 2023-11-06T13:18:40 | null |
CONTRIBUTOR
| null |
Hi, I added the `MultiQueryRankFusionRetriever`, which inherits from the `MultiQueryRetriever` but uses a different merge strategy, i.e. rerank fusion instead of unique union. For the rerank algorithm itself I reused the implementation in EnsembleRetriever (I moved it in a separate file to reuse it).
To save some code duplication, I adapted the return types of the `retrieve_documents` function to return a `List[List[Document]]`, so that the rerank fusion works out of the box.
Additional changes:
* Optionally append original query to query variations
* Fix docstrings
* Use kwargs in classmethod to allow some freedom in the class creation
Thanks for your reviews @hwchase17, @baskaryan
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12327/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/12327/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12327",
"html_url": "https://github.com/langchain-ai/langchain/pull/12327",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12327.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12327.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12326
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12326/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12326/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12326/events
|
https://github.com/langchain-ai/langchain/issues/12326
| 1,962,901,400 |
I_kwDOIPDwls50_3-Y
| 12,326 |
Issue: Similarity_search on Vector Store does not work.
|
{
"login": "franva",
"id": 5151146,
"node_id": "MDQ6VXNlcjUxNTExNDY=",
"avatar_url": "https://avatars.githubusercontent.com/u/5151146?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/franva",
"html_url": "https://github.com/franva",
"followers_url": "https://api.github.com/users/franva/followers",
"following_url": "https://api.github.com/users/franva/following{/other_user}",
"gists_url": "https://api.github.com/users/franva/gists{/gist_id}",
"starred_url": "https://api.github.com/users/franva/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/franva/subscriptions",
"organizations_url": "https://api.github.com/users/franva/orgs",
"repos_url": "https://api.github.com/users/franva/repos",
"events_url": "https://api.github.com/users/franva/events{/privacy}",
"received_events_url": "https://api.github.com/users/franva/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"
},
{
"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": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
open
| false | null |
[] | null | 11 | 2023-10-26T07:37:18 | 2023-11-02T01:19:25 | null |
NONE
| null |
### Issue you'd like to raise.
I am using Langchain + Chroma to do a Q&A program with a csv document as its knowledge base.
The CSV file looks like below:
[![enter image description here][1]][1]
Here is the CSV file:
https://1drv.ms/u/s!Asflam6BEzhjgbkdegCGfZ7FI4O1Og?e=2X6ior
And code for creating embedding:
from langchain.document_loaders.csv_loader import CSVLoader
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores.chroma import Chroma
from langchain.text_splitter import RecursiveCharacterTextSplitter as RCTS
file_path = "Test.csv"
doc_pages = []
csv_loader = CSVLoader(file_path)
doc_pages = csv_loader.load()
print(f"Extracted {file_path} with {len(doc_pages)} pages...")
splitter = RCTS(chunk_size = 3000, chunk_overlap = 300)
splitted_docs = splitter.split_documents(doc_pages)
embedding = OpenAIEmbeddings()
persist_directory = "docs_t/chroma/"
vectordb = Chroma.from_documents(
documents=splitted_docs,
embedding=embedding,
persist_directory=persist_directory
)
vectordb.persist()
print(vectordb._collection.count())
Here is the Testing code:
result = vectordb.similarity_search("what is the Support Item Name for 01_003_0107_1_1", k=3)
for r in result:
print(r.page_content, end="\n\n")
And I see this testing code returns all other non-relevant information.
Which part leads to this issue?
[1]: https://i.stack.imgur.com/Ev3cn.png
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12326/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/12326/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12324
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12324/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12324/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12324/events
|
https://github.com/langchain-ai/langchain/pull/12324
| 1,962,818,790 |
PR_kwDOIPDwls5d1Cbv
| 12,324 |
Qianfan/arguments pass through
|
{
"login": "Dobiichi-Origami",
"id": 56953648,
"node_id": "MDQ6VXNlcjU2OTUzNjQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/56953648?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Dobiichi-Origami",
"html_url": "https://github.com/Dobiichi-Origami",
"followers_url": "https://api.github.com/users/Dobiichi-Origami/followers",
"following_url": "https://api.github.com/users/Dobiichi-Origami/following{/other_user}",
"gists_url": "https://api.github.com/users/Dobiichi-Origami/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Dobiichi-Origami/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Dobiichi-Origami/subscriptions",
"organizations_url": "https://api.github.com/users/Dobiichi-Origami/orgs",
"repos_url": "https://api.github.com/users/Dobiichi-Origami/repos",
"events_url": "https://api.github.com/users/Dobiichi-Origami/events{/privacy}",
"received_events_url": "https://api.github.com/users/Dobiichi-Origami/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 | 6 | 2023-10-26T06:45:54 | 2023-11-16T20:54:52 | 2023-11-16T20:54:51 |
NONE
| null |
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **Description:** Add `init_kwargs` to qianfan endpoints' parameter list,
- **Issue:** None,
- **Dependencies:** None,
- **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below),
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12324/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/12324/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12324",
"html_url": "https://github.com/langchain-ai/langchain/pull/12324",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12324.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12324.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12323
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12323/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12323/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12323/events
|
https://github.com/langchain-ai/langchain/issues/12323
| 1,962,808,683 |
I_kwDOIPDwls50_hVr
| 12,323 |
GPT-4 reads the images
|
{
"login": "K1yomi",
"id": 78726603,
"node_id": "MDQ6VXNlcjc4NzI2NjAz",
"avatar_url": "https://avatars.githubusercontent.com/u/78726603?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/K1yomi",
"html_url": "https://github.com/K1yomi",
"followers_url": "https://api.github.com/users/K1yomi/followers",
"following_url": "https://api.github.com/users/K1yomi/following{/other_user}",
"gists_url": "https://api.github.com/users/K1yomi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/K1yomi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/K1yomi/subscriptions",
"organizations_url": "https://api.github.com/users/K1yomi/orgs",
"repos_url": "https://api.github.com/users/K1yomi/repos",
"events_url": "https://api.github.com/users/K1yomi/events{/privacy}",
"received_events_url": "https://api.github.com/users/K1yomi/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": 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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-26T06:38:05 | 2023-10-26T07:02:19 | null |
NONE
| null |
### System Info
GPT-4 can now read images. How to combine images and text in PDF or WORD when calling the API?
### Who can help?
_No response_
### Information
- [X] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [X] Document Loaders
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
document loader?
### Expected behavior
maybe we can have a document loader that loads text and images at the same time.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12323/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/12323/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12322
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12322/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12322/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12322/events
|
https://github.com/langchain-ai/langchain/issues/12322
| 1,962,804,701 |
I_kwDOIPDwls50_gXd
| 12,322 |
How do I define the stop logic for a custom llm in agent
|
{
"login": "shanfeiyang",
"id": 44645563,
"node_id": "MDQ6VXNlcjQ0NjQ1NTYz",
"avatar_url": "https://avatars.githubusercontent.com/u/44645563?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shanfeiyang",
"html_url": "https://github.com/shanfeiyang",
"followers_url": "https://api.github.com/users/shanfeiyang/followers",
"following_url": "https://api.github.com/users/shanfeiyang/following{/other_user}",
"gists_url": "https://api.github.com/users/shanfeiyang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shanfeiyang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shanfeiyang/subscriptions",
"organizations_url": "https://api.github.com/users/shanfeiyang/orgs",
"repos_url": "https://api.github.com/users/shanfeiyang/repos",
"events_url": "https://api.github.com/users/shanfeiyang/events{/privacy}",
"received_events_url": "https://api.github.com/users/shanfeiyang/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": 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 | 1 | 2023-10-26T06:35:00 | 2023-10-26T06:46:04 | null |
NONE
| null |
I defined a custom LLM and a custom search, and used the agent for testing, but I found some problems in parsing the llm response, which was prone to result parsing errors after multiple rounds of dialogue. I suspect that there is something wrong with the stop logic of the custom llm, please help me analyze it.
```
if __name__ == '__main__':
gpt35_llm = gpt35_llm()
tools = [GoogleSearchTool(), BaiduSearchTool()]
agent = initialize_agent(tools, gpt35_llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True,verbose=True)
print(agent.run('杭州亚运会的奖牌榜前三名是哪些国家?杭州亚运会的第一枚金牌是谁获得的?'))
```
```
class gpt35_llm(LLM):
model: str = "gpt-3.5"
@property
def _llm_type(self) -> str:
return "gpt-3.5"
def _call(
self,
prompt: str,
stop: Optional[List[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
**kwargs: Any,
) -> str:
response = gpt_35_chat(prompt, None)
if stop is not None:
print(f'stop:{stop}')
content = response['content']
output = content[:content.find(stop[0])]
return output
if response['code'] != 200:
raise ValueError(response['content'])
return response['content']
@property
def _identifying_params(self) -> Mapping[str, Any]:
"""Get the identifying parameters."""
return {"model": self.model}```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12322/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/12322/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12321
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12321/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12321/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12321/events
|
https://github.com/langchain-ai/langchain/pull/12321
| 1,962,749,683 |
PR_kwDOIPDwls5d0zn9
| 12,321 |
Adds linter in templates
|
{
"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": 5454193895,
"node_id": "LA_kwDOIPDwls8AAAABRRhk5w",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/lgtm",
"name": "lgtm",
"color": "0E8A16",
"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 |
{
"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
}
|
[
{
"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
}
] | null | 1 | 2023-10-26T05:47:39 | 2023-10-26T20:55:09 | 2023-10-26T20:55:08 |
CONTRIBUTOR
| null |
Did not actually run/fix errors yet @efriis
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12321/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/12321/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12321",
"html_url": "https://github.com/langchain-ai/langchain/pull/12321",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12321.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12321.patch",
"merged_at": "2023-10-26T20:55:08"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12320
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12320/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12320/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12320/events
|
https://github.com/langchain-ai/langchain/pull/12320
| 1,962,723,927 |
PR_kwDOIPDwls5d0uEi
| 12,320 |
Fix Typo in CONTRIBUTING.md
|
{
"login": "kishanrajput23",
"id": 70385488,
"node_id": "MDQ6VXNlcjcwMzg1NDg4",
"avatar_url": "https://avatars.githubusercontent.com/u/70385488?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kishanrajput23",
"html_url": "https://github.com/kishanrajput23",
"followers_url": "https://api.github.com/users/kishanrajput23/followers",
"following_url": "https://api.github.com/users/kishanrajput23/following{/other_user}",
"gists_url": "https://api.github.com/users/kishanrajput23/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kishanrajput23/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kishanrajput23/subscriptions",
"organizations_url": "https://api.github.com/users/kishanrajput23/orgs",
"repos_url": "https://api.github.com/users/kishanrajput23/repos",
"events_url": "https://api.github.com/users/kishanrajput23/events{/privacy}",
"received_events_url": "https://api.github.com/users/kishanrajput23/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-10-26T05:19:23 | 2023-10-26T15:56:28 | 2023-10-26T15:56:28 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
I have corrected the typos, grammar, and formatting issues.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12320/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/12320/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12320",
"html_url": "https://github.com/langchain-ai/langchain/pull/12320",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12320.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12320.patch",
"merged_at": "2023-10-26T15:56:28"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12319
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12319/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12319/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12319/events
|
https://github.com/langchain-ai/langchain/issues/12319
| 1,962,704,317 |
I_kwDOIPDwls50_H29
| 12,319 |
Conversation Buffer Memory clear histroy
|
{
"login": "surabhi-cb",
"id": 116259947,
"node_id": "U_kgDOBu38aw",
"avatar_url": "https://avatars.githubusercontent.com/u/116259947?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/surabhi-cb",
"html_url": "https://github.com/surabhi-cb",
"followers_url": "https://api.github.com/users/surabhi-cb/followers",
"following_url": "https://api.github.com/users/surabhi-cb/following{/other_user}",
"gists_url": "https://api.github.com/users/surabhi-cb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/surabhi-cb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/surabhi-cb/subscriptions",
"organizations_url": "https://api.github.com/users/surabhi-cb/orgs",
"repos_url": "https://api.github.com/users/surabhi-cb/repos",
"events_url": "https://api.github.com/users/surabhi-cb/events{/privacy}",
"received_events_url": "https://api.github.com/users/surabhi-cb/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": 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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-26T04:56:32 | 2023-10-26T05:06:59 | null |
NONE
| null |
### System Info
langchain version: 0.0320
python version: 3.10
### 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
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
I want to clear history of ConversationBufferMemory. I used ConversationBufferMemory to maintain chat history but right now I don't know how can I delete history of that . If anyone knows these please help me out of this.
### Expected behavior
ConversationBufferMemory history should be clear.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12319/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/12319/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12318
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12318/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12318/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12318/events
|
https://github.com/langchain-ai/langchain/pull/12318
| 1,962,695,255 |
PR_kwDOIPDwls5d0n6I
| 12,318 |
Fix SupbaseVectoreStore write operation timeout
|
{
"login": "j1philli",
"id": 3744255,
"node_id": "MDQ6VXNlcjM3NDQyNTU=",
"avatar_url": "https://avatars.githubusercontent.com/u/3744255?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/j1philli",
"html_url": "https://github.com/j1philli",
"followers_url": "https://api.github.com/users/j1philli/followers",
"following_url": "https://api.github.com/users/j1philli/following{/other_user}",
"gists_url": "https://api.github.com/users/j1philli/gists{/gist_id}",
"starred_url": "https://api.github.com/users/j1philli/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/j1philli/subscriptions",
"organizations_url": "https://api.github.com/users/j1philli/orgs",
"repos_url": "https://api.github.com/users/j1philli/repos",
"events_url": "https://api.github.com/users/j1philli/events{/privacy}",
"received_events_url": "https://api.github.com/users/j1philli/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 | 5 | 2023-10-26T04:46:24 | 2023-11-08T06:14:56 | 2023-10-26T21:19:18 |
CONTRIBUTOR
| null |
**Description**
This small change will make chunk_size a configurable parameter for loading documents into a Supabase database.
**Issue**
https://github.com/langchain-ai/langchain/issues/11422
**Dependencies**
No chanages
**Twitter**
@ j1philli
**Reminder**
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12318/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/12318/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12318",
"html_url": "https://github.com/langchain-ai/langchain/pull/12318",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12318.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12318.patch",
"merged_at": "2023-10-26T21:19:18"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12317
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12317/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12317/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12317/events
|
https://github.com/langchain-ai/langchain/issues/12317
| 1,962,658,507 |
I_kwDOIPDwls50-8rL
| 12,317 |
should be @search.rerankerScore, not @search.score for hybrid semantic search (Azure Cognitive Search)
|
{
"login": "DataAIDevOps",
"id": 852904,
"node_id": "MDQ6VXNlcjg1MjkwNA==",
"avatar_url": "https://avatars.githubusercontent.com/u/852904?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DataAIDevOps",
"html_url": "https://github.com/DataAIDevOps",
"followers_url": "https://api.github.com/users/DataAIDevOps/followers",
"following_url": "https://api.github.com/users/DataAIDevOps/following{/other_user}",
"gists_url": "https://api.github.com/users/DataAIDevOps/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DataAIDevOps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DataAIDevOps/subscriptions",
"organizations_url": "https://api.github.com/users/DataAIDevOps/orgs",
"repos_url": "https://api.github.com/users/DataAIDevOps/repos",
"events_url": "https://api.github.com/users/DataAIDevOps/events{/privacy}",
"received_events_url": "https://api.github.com/users/DataAIDevOps/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 | 1 | 2023-10-26T04:00:06 | 2023-10-26T04:07:57 | null |
NONE
| null |
### System Info
latest langchain code AzureSearch at langchain/libs/langchain/langchain/vectorstores/azuresearch.py:
semantic_hybrid_search_with_score function, when returning search result, the score should be @search.rerankerScore, not @search.score for hybrid semantic search, according to the latest Azure Doc here: https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking
### Who can help?
@hwchase17
### 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
the code is not following the latest Azure Search document: https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking
### Expected behavior
float(result["@search.rerankerScore"]) (instead of float(result["@search.score"]))
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12317/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/12317/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12316
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12316/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12316/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12316/events
|
https://github.com/langchain-ai/langchain/pull/12316
| 1,962,647,877 |
PR_kwDOIPDwls5d0dtW
| 12,316 |
Fix a typo in the summarization use case.
|
{
"login": "season179",
"id": 3291108,
"node_id": "MDQ6VXNlcjMyOTExMDg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3291108?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/season179",
"html_url": "https://github.com/season179",
"followers_url": "https://api.github.com/users/season179/followers",
"following_url": "https://api.github.com/users/season179/following{/other_user}",
"gists_url": "https://api.github.com/users/season179/gists{/gist_id}",
"starred_url": "https://api.github.com/users/season179/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/season179/subscriptions",
"organizations_url": "https://api.github.com/users/season179/orgs",
"repos_url": "https://api.github.com/users/season179/repos",
"events_url": "https://api.github.com/users/season179/events{/privacy}",
"received_events_url": "https://api.github.com/users/season179/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-10-26T03:49:00 | 2023-10-30T03:10:26 | 2023-10-26T16:35:12 |
CONTRIBUTOR
| null |
- **Description:** Fix a tiny typo in the summarization use case Jupyter notebook.
- **Issue:** N/A
- **Dependencies:** N/A
- **Tag maintainer:** @hwchase17
- **Twitter handle:** @seasonsaw
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12316/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/12316/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12316",
"html_url": "https://github.com/langchain-ai/langchain/pull/12316",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12316.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12316.patch",
"merged_at": "2023-10-26T16:35:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12315
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12315/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12315/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12315/events
|
https://github.com/langchain-ai/langchain/pull/12315
| 1,962,623,183 |
PR_kwDOIPDwls5d0Ya6
| 12,315 |
Allow index name customization via env var in rag-conversation
|
{
"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"
},
{
"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-10-26T03:16:19 | 2023-10-26T05:11:14 | 2023-10-26T05:11:13 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12315/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/12315/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12315",
"html_url": "https://github.com/langchain-ai/langchain/pull/12315",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12315.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12315.patch",
"merged_at": "2023-10-26T05:11:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12314
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12314/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12314/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12314/events
|
https://github.com/langchain-ai/langchain/issues/12314
| 1,962,600,617 |
I_kwDOIPDwls50-uip
| 12,314 |
OpenAIEmbeddings vector different from the openai library and changes from time to time
|
{
"login": "KanaSukita",
"id": 32619535,
"node_id": "MDQ6VXNlcjMyNjE5NTM1",
"avatar_url": "https://avatars.githubusercontent.com/u/32619535?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KanaSukita",
"html_url": "https://github.com/KanaSukita",
"followers_url": "https://api.github.com/users/KanaSukita/followers",
"following_url": "https://api.github.com/users/KanaSukita/following{/other_user}",
"gists_url": "https://api.github.com/users/KanaSukita/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KanaSukita/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KanaSukita/subscriptions",
"organizations_url": "https://api.github.com/users/KanaSukita/orgs",
"repos_url": "https://api.github.com/users/KanaSukita/repos",
"events_url": "https://api.github.com/users/KanaSukita/events{/privacy}",
"received_events_url": "https://api.github.com/users/KanaSukita/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-26T02:45:52 | 2023-10-26T07:09:39 | null |
NONE
| null |
### System Info
I got different embedding results using OpenAIEmbeddings and the original openai library. Besides the embeddings from both OpenAIEmbeddings and openai change from time to time. Sometimes it returns the same results but sometimes it returns differently , especially after I exceeds the time limit.
I am using langchain-0.0.321. I tried dig a little deeper in the OpenAIEmbeddings source code and find that there is a process using the tokenizer. I tried use the same tokenizer in the original openai library and get the same result compared to not using it, so I think this is not the problem. Can someone explain a little bit why the results in different libraries and different requests may change?
### 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
- [ ] Vector Stores / Retrievers
- [ ] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
```python
import openai
from langchain.embeddings.openai import OpenAIEmbeddings
text = 'where are you going'
vec1 = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY).embed_query(text)
vec2 = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY).embed_query(text)
if not vec1 == vec2:
print('vec1:', vec1[:3])
print('vec2:', vec2[:3])
vec3 = openai.Embedding.create(input=[text], model='text-embedding-ada-002')['data'][0]['embedding']
if not (vec1 == vec3 or vec2 == vec3):
print('vec1:', vec1[:3])
print('vec2:', vec2[:3])
print('vec3:', vec3[:3])
```
### Expected behavior
the results are as below
```
vec1: [0.0004729258755920449, -0.011402048647760918, -0.012062848996486476]
vec2: [0.00046853933082822383, -0.01143268296919534, -0.012086534739296315]
vec1: [0.0004729258755920449, -0.011402048647760918, -0.012062848996486476]
vec2: [0.00046853933082822383, -0.01143268296919534, -0.012086534739296315]
vec3: [0.00040566621464677155, -0.011434691026806831, -0.012049459852278233]
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12314/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/12314/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12313
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12313/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12313/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12313/events
|
https://github.com/langchain-ai/langchain/pull/12313
| 1,962,572,634 |
PR_kwDOIPDwls5d0N7Z
| 12,313 |
Templates CI
|
{
"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": 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-10-26T02:09:04 | 2023-10-27T03:29:38 | 2023-10-27T03:29:37 |
COLLABORATOR
| null |
Adds a `langchain-location` param to lint, so we can properly locate it.
Regular langchain and experimental lint steps are passing, so default value seems to be working.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12313/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/12313/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12313",
"html_url": "https://github.com/langchain-ai/langchain/pull/12313",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12313.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12313.patch",
"merged_at": "2023-10-27T03:29:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12312
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12312/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12312/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12312/events
|
https://github.com/langchain-ai/langchain/issues/12312
| 1,962,571,837 |
I_kwDOIPDwls50-ng9
| 12,312 |
Elevenlabs-langchain API should integrate very important parameter 'voice'
|
{
"login": "agilebean",
"id": 28497542,
"node_id": "MDQ6VXNlcjI4NDk3NTQy",
"avatar_url": "https://avatars.githubusercontent.com/u/28497542?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/agilebean",
"html_url": "https://github.com/agilebean",
"followers_url": "https://api.github.com/users/agilebean/followers",
"following_url": "https://api.github.com/users/agilebean/following{/other_user}",
"gists_url": "https://api.github.com/users/agilebean/gists{/gist_id}",
"starred_url": "https://api.github.com/users/agilebean/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/agilebean/subscriptions",
"organizations_url": "https://api.github.com/users/agilebean/orgs",
"repos_url": "https://api.github.com/users/agilebean/repos",
"events_url": "https://api.github.com/users/agilebean/events{/privacy}",
"received_events_url": "https://api.github.com/users/agilebean/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"
}
] |
open
| false | null |
[] | null | 0 | 2023-10-26T02:08:00 | 2023-10-26T02:10:08 | null |
NONE
| null |
### Feature request
The langchain API integration Elevenlabs should accomodate the very important parameter `voice`.
### Motivation
Without the voice parameter, the Elevenlabs langchain integration is unusable because `play()` switches the voice randomly with every execution.
### Your contribution
I tracked down the releveant code in the [Elevenlabs-langchain integration API](https://api.python.langchain.com/en/latest/_modules/langchain/tools/eleven_labs/text2speech.html#ElevenLabsText2SpeechTool.stream_speech) down to this section:
```
def _run(
self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None
) -> str:
"""Use the tool."""
elevenlabs = _import_elevenlabs()
try:
speech = elevenlabs.generate(text=query, model=self.model)
with tempfile.NamedTemporaryFile(
mode="bx", suffix=".wav", delete=False
) as f:
f.write(speech)
return f.name
except Exception as e:
raise RuntimeError(f"Error while running ElevenLabsText2SpeechTool: {e}")
[[docs]](https://api.python.langchain.com/en/latest/tools/langchain.tools.eleven_labs.text2speech.ElevenLabsText2SpeechTool.html#langchain.tools.eleven_labs.text2speech.ElevenLabsText2SpeechTool.play) def play(self, speech_file: str) -> None:
"""Play the text as speech."""
elevenlabs = _import_elevenlabs()
with open(speech_file, mode="rb") as f:
speech = f.read()
elevenlabs.play(speech)
[[docs]](https://api.python.langchain.com/en/latest/tools/langchain.tools.eleven_labs.text2speech.ElevenLabsText2SpeechTool.html#langchain.tools.eleven_labs.text2speech.ElevenLabsText2SpeechTool.stream_speech) def stream_speech(self, query: str) -> None:
"""Stream the text as speech as it is generated.
Play the text in your speakers."""
elevenlabs = _import_elevenlabs()
speech_stream = elevenlabs.generate(text=query, model=self.model, stream=True)
elevenlabs.stream(speech_stream)
```
The calls to `elevenlabs.generate` and `elevenlabs.play` must be extended with the `voice` parameter.
After this change, the langchain calls `run`, `play`, and importantly, `stream_speech`, could be made analogue the calls from the ElevenLabs API, e.g. seen [in this repo](https://github.com/langchain-ai/langchain/issues/1076#issuecomment-1552363555):
```
prediction = agent_chain.run(input=user_input.text)
audio = generate(
text=prediction,
voice="Adam",
model="eleven_monolingual_v1"
)
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12312/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/12312/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12311
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12311/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12311/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12311/events
|
https://github.com/langchain-ai/langchain/pull/12311
| 1,962,543,885 |
PR_kwDOIPDwls5d0ID0
| 12,311 |
CLI Git Improvements
|
{
"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": 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-10-26T01:28:38 | 2023-10-26T01:30:03 | 2023-10-26T01:30:02 |
COLLABORATOR
| null |
- delete repo sources like pip
- git dep fixes
- error messaging
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12311/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/12311/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12311",
"html_url": "https://github.com/langchain-ai/langchain/pull/12311",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12311.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12311.patch",
"merged_at": "2023-10-26T01:30:02"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12310
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12310/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12310/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12310/events
|
https://github.com/langchain-ai/langchain/pull/12310
| 1,962,517,339 |
PR_kwDOIPDwls5d0Cmi
| 12,310 |
Docs: Add lcel to combine_docs chains
|
{
"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-10-26T00:50:31 | 2023-10-26T18:05:38 | 2023-10-26T18:05:37 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12310/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/12310/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12310",
"html_url": "https://github.com/langchain-ai/langchain/pull/12310",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12310.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12310.patch",
"merged_at": "2023-10-26T18:05:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12309
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12309/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12309/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12309/events
|
https://github.com/langchain-ai/langchain/pull/12309
| 1,962,469,330 |
PR_kwDOIPDwls5dz4Mk
| 12,309 |
Update code_understanding.ipynb
|
{
"login": "kengoodridge",
"id": 1097460,
"node_id": "MDQ6VXNlcjEwOTc0NjA=",
"avatar_url": "https://avatars.githubusercontent.com/u/1097460?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kengoodridge",
"html_url": "https://github.com/kengoodridge",
"followers_url": "https://api.github.com/users/kengoodridge/followers",
"following_url": "https://api.github.com/users/kengoodridge/following{/other_user}",
"gists_url": "https://api.github.com/users/kengoodridge/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kengoodridge/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kengoodridge/subscriptions",
"organizations_url": "https://api.github.com/users/kengoodridge/orgs",
"repos_url": "https://api.github.com/users/kengoodridge/repos",
"events_url": "https://api.github.com/users/kengoodridge/events{/privacy}",
"received_events_url": "https://api.github.com/users/kengoodridge/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-10-25T23:50:19 | 2023-10-26T16:35:38 | 2023-10-26T16:35:38 |
CONTRIBUTOR
| null |
- **Description:** Super simple fix for colab link on code_understanding.ipynb,
- **Issue:** not applicable
- **Dependencies:** none,
- **Tag maintainer:** ,
- **Twitter handle:** @kengoodridge
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12309/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/12309/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12309",
"html_url": "https://github.com/langchain-ai/langchain/pull/12309",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12309.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12309.patch",
"merged_at": "2023-10-26T16:35:38"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12308
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12308/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12308/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12308/events
|
https://github.com/langchain-ai/langchain/pull/12308
| 1,962,459,471 |
PR_kwDOIPDwls5dz2Fg
| 12,308 |
Enhance GoogleDriveLoader to Support Spreadsheets when loading documents from ids (issue #3637)
|
{
"login": "lumenintellects",
"id": 71561396,
"node_id": "MDQ6VXNlcjcxNTYxMzk2",
"avatar_url": "https://avatars.githubusercontent.com/u/71561396?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lumenintellects",
"html_url": "https://github.com/lumenintellects",
"followers_url": "https://api.github.com/users/lumenintellects/followers",
"following_url": "https://api.github.com/users/lumenintellects/following{/other_user}",
"gists_url": "https://api.github.com/users/lumenintellects/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lumenintellects/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lumenintellects/subscriptions",
"organizations_url": "https://api.github.com/users/lumenintellects/orgs",
"repos_url": "https://api.github.com/users/lumenintellects/repos",
"events_url": "https://api.github.com/users/lumenintellects/events{/privacy}",
"received_events_url": "https://api.github.com/users/lumenintellects/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"
}
] |
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 | 1 | 2023-10-25T23:37:47 | 2023-10-31T02:08:39 | null |
NONE
| null |
**Issue**: [#3637]
**Summary**:
The codebase includes a private method `_load_sheet_from_id` that can handle Google Sheets, which is currently only invoked when loading documents from a folder. This PR aims to unify the document loading approach, ensuring both individual IDs and folders consider the `mimeType` to determine the document type.
**Changes**:
1. Introduced `_process_file_by_mimetype` function to handle the processing logic based on file `mimeType`, reducing code repetition.
2. Refactored `_load_documents_from_ids` and `_load_documents_from_folder` to utilize the new `_process_file_by_mimetype` function, ensuring consistent behavior.
Reminder
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12308/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/12308/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12308",
"html_url": "https://github.com/langchain-ai/langchain/pull/12308",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12308.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12308.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12307
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12307/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12307/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12307/events
|
https://github.com/langchain-ai/langchain/pull/12307
| 1,962,348,105 |
PR_kwDOIPDwls5dzckb
| 12,307 |
removed CardLists for LLMs and ChatModels
|
{
"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-10-25T22:22:54 | 2023-10-26T03:27:05 | 2023-10-26T02:13:44 |
COLLABORATOR
| null |
Problem statement:
In the `integrations/llms` and `integrations/chat` pages, we have a sidebar with ToC, and we also have a ToC at the end of the page.
The ToC at the end of the page is not necessary, and it is confusing when we mix the index page styles; moreover, it requires manual work.
So, I removed ToC at the end of the page (it was discussed with and approved by @baskaryan)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12307/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/12307/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12307",
"html_url": "https://github.com/langchain-ai/langchain/pull/12307",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12307.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12307.patch",
"merged_at": "2023-10-26T02:13:44"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12305
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12305/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12305/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12305/events
|
https://github.com/langchain-ai/langchain/pull/12305
| 1,962,311,288 |
PR_kwDOIPDwls5dzUDq
| 12,305 |
Rm langchain server
|
{
"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": 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-10-25T22:03:09 | 2023-10-25T22:26:47 | 2023-10-25T22:26:47 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12305/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/12305/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12305",
"html_url": "https://github.com/langchain-ai/langchain/pull/12305",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12305.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12305.patch",
"merged_at": "2023-10-25T22:26:47"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12304
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12304/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12304/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12304/events
|
https://github.com/langchain-ai/langchain/issues/12304
| 1,962,296,260 |
I_kwDOIPDwls509kPE
| 12,304 |
AttributeError: 'CustomTool' object has no attribute 'fields_set'
|
{
"login": "usersina",
"id": 44204957,
"node_id": "MDQ6VXNlcjQ0MjA0OTU3",
"avatar_url": "https://avatars.githubusercontent.com/u/44204957?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/usersina",
"html_url": "https://github.com/usersina",
"followers_url": "https://api.github.com/users/usersina/followers",
"following_url": "https://api.github.com/users/usersina/following{/other_user}",
"gists_url": "https://api.github.com/users/usersina/gists{/gist_id}",
"starred_url": "https://api.github.com/users/usersina/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/usersina/subscriptions",
"organizations_url": "https://api.github.com/users/usersina/orgs",
"repos_url": "https://api.github.com/users/usersina/repos",
"events_url": "https://api.github.com/users/usersina/events{/privacy}",
"received_events_url": "https://api.github.com/users/usersina/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"
},
{
"id": 5859754349,
"node_id": "LA_kwDOIPDwls8AAAABXUTBbQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/pydantic",
"name": "pydantic",
"color": "C990BA",
"default": false,
"description": "Issues related to pydantic migration"
}
] |
closed
| false | null |
[] | null | 6 | 2023-10-25T21:55:37 | 2023-11-25T18:37:22 | 2023-10-26T12:20:52 |
NONE
| null |
### System Info
python=`3.11`
langchain=`0.0.314`
pydantic=`2.3.0`
pydantic_core=`2.6.3`
### 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
- [ ] Agents / Agent Executors
- [X] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
From the documentation, I can create a fake tool that works as follows:
```python
# Define the tool
class FakeSearchTool(BaseTool):
name: str | None = "custom_search"
description: str | None = "useful for when you need to answer questions about current events"
def _run(
self, query: str
) -> str:
"""Use the tool."""
print("Query:", query)
return "Used the tool, and got the answer!"
async def _arun(
self, query: str
) -> str:
"""Use the tool asynchronously."""
raise NotImplementedError("custom_search does not support async")
# Test if the tool is working
search_tool = FakeSearchTool()
print(search_tool("What is my answer?"))
```
> Query: What is my answer?
> Used the tool, and got the answer!
My case however requires me to give an initial configuration object to every tool, something like this:
```python
from langchain.tools.base import BaseTool
# Create the config class
class Config:
def __init__(self, init_arg1: str, init_arg2: str):
self.init_arg1 = init_arg1
self.init_arg2 = init_arg2
# Create the tool
class FakeSearchTool(BaseTool):
name: str | None = "custom_search"
description: str | None = "useful for when you need to answer questions about current events"
config: Config
def __init__(self, config: Config):
self.config = config
def _run(
self, query: str
) -> str:
"""Use the tool."""
print("Query:", query)
print("Obtained config:", self.config.init_arg1, self.config.init_arg2)
return "Used the tool, and got the answer using the config!"
async def _arun(
self, query: str
) -> str:
"""Use the tool asynchronously."""
raise NotImplementedError("custom_search does not support async")
# Test if the tool is working
search_tool = FakeSearchTool(
config=Config(init_arg1="arg1", init_arg2="arg2")
)
print(search_tool("What is my answer?"))
```
However, this does not work and return the following error:
> AttributeError: 'FakeSearchTool' object has no attribute '__fields_set__'
<details>
<summary>Stack Trace</summary>
```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/ai-service/notebooks/agent-with-elasticsearch-tool.ipynb Cell 18 line 2
20 """Use the tool asynchronously."""
21 raise NotImplementedError("custom_search does not support async")
---> 23 search_tool = FakeSearchTool(
24 config=Config(init_arg1="arg1", init_arg2="arg2")
25 )
26 print(search_tool("What is my answer?"))
/ai-service/notebooks/agent-with-elasticsearch-tool.ipynb Cell 18 line 7
6 def __init__(self, config: Config):
----> 7 self.config = config
File ~/.pyenv/versions/3.11.5/envs/ai-service/lib/python3.11/site-packages/pydantic/v1/main.py:405, in BaseModel.__setattr__(self, name, value)
402 else:
403 self.__dict__[name] = value
--> 405 self.__fields_set__.add(name)
AttributeError: 'FakeSearchTool' object has no attribute '__fields_set__'
```
</details>
### Expected behavior
I expect to get the following output out of the tool:
> Query: What is my answer?
> Obtained config: arg1 arg2
> Used the tool, and got the answer using the config!
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12304/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/12304/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12303
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12303/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12303/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12303/events
|
https://github.com/langchain-ai/langchain/pull/12303
| 1,962,273,708 |
PR_kwDOIPDwls5dzLfx
| 12,303 |
Better wrap traceable
|
{
"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-10-25T21:40:03 | 2023-10-25T23:34:24 | 2023-10-25T23:34:23 |
COLLABORATOR
| null |
If user function is wrapped as a traceable function, this will help hand off the trace between the two.
Also update handling fields to reflect optional values
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12303/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/12303/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12303",
"html_url": "https://github.com/langchain-ai/langchain/pull/12303",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12303.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12303.patch",
"merged_at": "2023-10-25T23:34:23"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12302
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12302/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12302/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12302/events
|
https://github.com/langchain-ai/langchain/issues/12302
| 1,962,205,964 |
I_kwDOIPDwls509OMM
| 12,302 |
Error querying DocArrayInMemorySearch
|
{
"login": "rreben",
"id": 4026131,
"node_id": "MDQ6VXNlcjQwMjYxMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/4026131?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rreben",
"html_url": "https://github.com/rreben",
"followers_url": "https://api.github.com/users/rreben/followers",
"following_url": "https://api.github.com/users/rreben/following{/other_user}",
"gists_url": "https://api.github.com/users/rreben/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rreben/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rreben/subscriptions",
"organizations_url": "https://api.github.com/users/rreben/orgs",
"repos_url": "https://api.github.com/users/rreben/repos",
"events_url": "https://api.github.com/users/rreben/events{/privacy}",
"received_events_url": "https://api.github.com/users/rreben/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-10-25T20:49:36 | 2023-12-03T17:16:59 | null |
NONE
| null |
### System Info
I start a jupyter notebook with
```python
file = 'OutdoorClothingCatalog_1000.csv'
loader = CSVLoader(file_path=file)
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])
query ="Please list all your shirts with sun protection \
in a table in markdown and summarize each one."
esponse = index.query(query)
```
Unfortunately this leads to
```log
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
[/workspaces/langchaintutorial/L4-QnA.ipynb](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/workspaces/langchaintutorial/L4-QnA.ipynb) Zelle 17 line 1
----> [1](vscode-notebook-cell://codespaces%2Bautomatic-funicular-qpwv7xqr7j249j6/workspaces/langchaintutorial/L4-QnA.ipynb#X20sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0) response = index.query(query)
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/indexes/vectorstore.py:45](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/indexes/vectorstore.py:45), in VectorStoreIndexWrapper.query(self, question, llm, retriever_kwargs, **kwargs)
41 retriever_kwargs = retriever_kwargs or {}
42 chain = RetrievalQA.from_chain_type(
43 llm, retriever=self.vectorstore.as_retriever(**retriever_kwargs), **kwargs
44 )
---> 45 return chain.run(question)
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:505](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:505), in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
503 if len(args) != 1:
504 raise ValueError("`run` supports only one positional argument.")
--> 505 return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
506 _output_key
507 ]
509 if kwargs and not args:
510 return self(kwargs, callbacks=callbacks, tags=tags, metadata=metadata)[
511 _output_key
512 ]
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:310](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:310), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
308 except BaseException as e:
309 run_manager.on_chain_error(e)
--> 310 raise e
311 run_manager.on_chain_end(outputs)
312 final_outputs: Dict[str, Any] = self.prep_outputs(
313 inputs, outputs, return_only_outputs
314 )
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:304](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/base.py:304), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
297 run_manager = callback_manager.on_chain_start(
298 dumpd(self),
299 inputs,
300 name=run_name,
301 )
302 try:
303 outputs = (
--> 304 self._call(inputs, run_manager=run_manager)
305 if new_arg_supported
306 else self._call(inputs)
307 )
308 except BaseException as e:
309 run_manager.on_chain_error(e)
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/retrieval_qa/base.py:136](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/retrieval_qa/base.py:136), in BaseRetrievalQA._call(self, inputs, run_manager)
132 accepts_run_manager = (
133 "run_manager" in inspect.signature(self._get_docs).parameters
134 )
135 if accepts_run_manager:
--> 136 docs = self._get_docs(question, run_manager=_run_manager)
137 else:
138 docs = self._get_docs(question) # type: ignore[call-arg]
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/retrieval_qa/base.py:216](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/chains/retrieval_qa/base.py:216), in RetrievalQA._get_docs(self, question, run_manager)
209 def _get_docs(
210 self,
211 question: str,
212 *,
213 run_manager: CallbackManagerForChainRun,
214 ) -> List[Document]:
215 """Get docs."""
--> 216 return self.retriever.get_relevant_documents(
217 question, callbacks=run_manager.get_child()
218 )
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/retriever.py:211](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/retriever.py:211), in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs)
209 except Exception as e:
210 run_manager.on_retriever_error(e)
--> 211 raise e
212 else:
213 run_manager.on_retriever_end(
214 result,
215 **kwargs,
216 )
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/retriever.py:204](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/retriever.py:204), in BaseRetriever.get_relevant_documents(self, query, callbacks, tags, metadata, run_name, **kwargs)
202 _kwargs = kwargs if self._expects_other_args else {}
203 if self._new_arg_supported:
--> 204 result = self._get_relevant_documents(
205 query, run_manager=run_manager, **_kwargs
206 )
207 else:
208 result = self._get_relevant_documents(query, **_kwargs)
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/vectorstore.py:585](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/schema/vectorstore.py:585), in VectorStoreRetriever._get_relevant_documents(self, query, run_manager)
581 def _get_relevant_documents(
582 self, query: str, *, run_manager: CallbackManagerForRetrieverRun
583 ) -> List[Document]:
584 if self.search_type == "similarity":
--> 585 docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
586 elif self.search_type == "similarity_score_threshold":
587 docs_and_similarities = (
588 self.vectorstore.similarity_search_with_relevance_scores(
589 query, **self.search_kwargs
590 )
591 )
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/vectorstores/docarray/base.py:127](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/vectorstores/docarray/base.py:127), in DocArrayIndex.similarity_search(self, query, k, **kwargs)
115 def similarity_search(
116 self, query: str, k: int = 4, **kwargs: Any
117 ) -> List[Document]:
118 """Return docs most similar to query.
119
120 Args:
(...)
125 List of Documents most similar to the query.
126 """
--> 127 results = self.similarity_search_with_score(query, k=k, **kwargs)
128 return [doc for doc, _ in results]
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/vectorstores/docarray/base.py:106](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/langchain/vectorstores/docarray/base.py:106), in DocArrayIndex.similarity_search_with_score(self, query, k, **kwargs)
94 """Return docs most similar to query.
95
96 Args:
(...)
103 Lower score represents more similarity.
104 """
105 query_embedding = self.embedding.embed_query(query)
--> 106 query_doc = self.doc_cls(embedding=query_embedding) # type: ignore
107 docs, scores = self.doc_index.find(query_doc, search_field="embedding", limit=k)
109 result = [
110 (Document(page_content=doc.text, metadata=doc.metadata), score)
111 for doc, score in zip(docs, scores)
112 ]
File [/usr/local/python/3.10.8/lib/python3.10/site-packages/pydantic/main.py:164](https://vscode-remote+codespaces-002bautomatic-002dfunicular-002dqpwv7xqr7j249j6.vscode-resource.vscode-cdn.net/usr/local/python/3.10.8/lib/python3.10/site-packages/pydantic/main.py:164), in BaseModel.__init__(__pydantic_self__, **data)
162 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks
163 __tracebackhide__ = True
--> 164 __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
ValidationError: 2 validation errors for DocArrayDoc
text
Field required [type=missing, input_value={'embedding': [0.00328089... -0.021201754016760964]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
metadata
Field required [type=missing, input_value={'embedding': [0.00328089... -0.021201754016760964]}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
```
### Who can help?
@agola11
### 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
```python
file = 'OutdoorClothingCatalog_1000.csv'
loader = CSVLoader(file_path=file)
from langchain.indexes import VectorstoreIndexCreator
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])
query ="Please list all your shirts with sun protection \
in a table in markdown and summarize each one."
esponse = index.query(query)
```
### Expected behavior
List of articles with sun protection. The script is an example from deeplearning.ai
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12302/reactions",
"total_count": 6,
"+1": 5,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12302/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12301
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12301/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12301/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12301/events
|
https://github.com/langchain-ai/langchain/pull/12301
| 1,962,166,653 |
PR_kwDOIPDwls5dy0Qy
| 12,301 |
Update telegram.py
|
{
"login": "ATaylorAerospace",
"id": 112668339,
"node_id": "U_kgDOBrcusw",
"avatar_url": "https://avatars.githubusercontent.com/u/112668339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ATaylorAerospace",
"html_url": "https://github.com/ATaylorAerospace",
"followers_url": "https://api.github.com/users/ATaylorAerospace/followers",
"following_url": "https://api.github.com/users/ATaylorAerospace/following{/other_user}",
"gists_url": "https://api.github.com/users/ATaylorAerospace/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ATaylorAerospace/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ATaylorAerospace/subscriptions",
"organizations_url": "https://api.github.com/users/ATaylorAerospace/orgs",
"repos_url": "https://api.github.com/users/ATaylorAerospace/repos",
"events_url": "https://api.github.com/users/ATaylorAerospace/events{/privacy}",
"received_events_url": "https://api.github.com/users/ATaylorAerospace/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-10-25T20:20:42 | 2023-10-25T20:26:41 | 2023-10-25T20:26:41 |
NONE
| null |
This will add the message URL to the existing data returned by TelegramChatApiLoader without needing to modify much else in the source code.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **This will add the message URL to the existing data returned by TelegramChatApiLoader without needing to modify much else in the source code.:** a description of the change,
- **12246** 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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12301/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/12301/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12301",
"html_url": "https://github.com/langchain-ai/langchain/pull/12301",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12301.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12301.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12300
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12300/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12300/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12300/events
|
https://github.com/langchain-ai/langchain/pull/12300
| 1,962,158,685 |
PR_kwDOIPDwls5dyyj0
| 12,300 |
Relax type annotation for custom input/output types
|
{
"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-10-25T20:14:48 | 2023-10-25T23:00:23 | 2023-10-25T23:00:22 |
COLLABORATOR
| null |
This is needed to be able to do stuff like:
```python
runnable.with_types(input_type=List[str])
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12300/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/12300/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12300",
"html_url": "https://github.com/langchain-ai/langchain/pull/12300",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12300.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12300.patch",
"merged_at": "2023-10-25T23:00:22"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12299
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12299/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12299/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12299/events
|
https://github.com/langchain-ai/langchain/pull/12299
| 1,962,140,558 |
PR_kwDOIPDwls5dyuqN
| 12,299 |
15 Oct Update telegram.py
|
{
"login": "ATaylorAerospace",
"id": 112668339,
"node_id": "U_kgDOBrcusw",
"avatar_url": "https://avatars.githubusercontent.com/u/112668339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ATaylorAerospace",
"html_url": "https://github.com/ATaylorAerospace",
"followers_url": "https://api.github.com/users/ATaylorAerospace/followers",
"following_url": "https://api.github.com/users/ATaylorAerospace/following{/other_user}",
"gists_url": "https://api.github.com/users/ATaylorAerospace/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ATaylorAerospace/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ATaylorAerospace/subscriptions",
"organizations_url": "https://api.github.com/users/ATaylorAerospace/orgs",
"repos_url": "https://api.github.com/users/ATaylorAerospace/repos",
"events_url": "https://api.github.com/users/ATaylorAerospace/events{/privacy}",
"received_events_url": "https://api.github.com/users/ATaylorAerospace/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-10-25T20:03:24 | 2023-10-25T20:05:19 | 2023-10-25T20:05:19 |
NONE
| null |
Update Telegram.py This will add the message URL to the existing data returned by TelegramChatApiLoader without needing to modify much else in the source code.
<!-- Thank you for contributing to LangChain!
Replace this entire comment with:
- **This will add the message URL to the existing data returned by TelegramChatApiLoader without needing to modify much else in the source code.:** a description of the change,
- **12246:** 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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12299/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/12299/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12299",
"html_url": "https://github.com/langchain-ai/langchain/pull/12299",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12299.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12299.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12298
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12298/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12298/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12298/events
|
https://github.com/langchain-ai/langchain/pull/12298
| 1,962,120,048 |
PR_kwDOIPDwls5dyqMG
| 12,298 |
feat: Add Google Speech to Text API Document Loader
|
{
"login": "holtskinner",
"id": 13262395,
"node_id": "MDQ6VXNlcjEzMjYyMzk1",
"avatar_url": "https://avatars.githubusercontent.com/u/13262395?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/holtskinner",
"html_url": "https://github.com/holtskinner",
"followers_url": "https://api.github.com/users/holtskinner/followers",
"following_url": "https://api.github.com/users/holtskinner/following{/other_user}",
"gists_url": "https://api.github.com/users/holtskinner/gists{/gist_id}",
"starred_url": "https://api.github.com/users/holtskinner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/holtskinner/subscriptions",
"organizations_url": "https://api.github.com/users/holtskinner/orgs",
"repos_url": "https://api.github.com/users/holtskinner/repos",
"events_url": "https://api.github.com/users/holtskinner/events{/privacy}",
"received_events_url": "https://api.github.com/users/holtskinner/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 | 3 | 2023-10-25T19:50:35 | 2023-10-27T17:14:59 | 2023-10-27T16:34:26 |
CONTRIBUTOR
| null |
- Add Document Loader for Google Speech to Text
- Similar Structure to [Assembly AI Document Loader][1]
[1]: https://python.langchain.com/docs/integrations/document_loaders/assemblyai
<!-- 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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12298/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/12298/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12298",
"html_url": "https://github.com/langchain-ai/langchain/pull/12298",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12298.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12298.patch",
"merged_at": "2023-10-27T16:34:26"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12297
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12297/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12297/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12297/events
|
https://github.com/langchain-ai/langchain/pull/12297
| 1,962,099,017 |
PR_kwDOIPDwls5dylm7
| 12,297 |
Strips leading/trailing whitespace before parsing xml
|
{
"login": "donatoaz",
"id": 127527,
"node_id": "MDQ6VXNlcjEyNzUyNw==",
"avatar_url": "https://avatars.githubusercontent.com/u/127527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/donatoaz",
"html_url": "https://github.com/donatoaz",
"followers_url": "https://api.github.com/users/donatoaz/followers",
"following_url": "https://api.github.com/users/donatoaz/following{/other_user}",
"gists_url": "https://api.github.com/users/donatoaz/gists{/gist_id}",
"starred_url": "https://api.github.com/users/donatoaz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/donatoaz/subscriptions",
"organizations_url": "https://api.github.com/users/donatoaz/orgs",
"repos_url": "https://api.github.com/users/donatoaz/repos",
"events_url": "https://api.github.com/users/donatoaz/events{/privacy}",
"received_events_url": "https://api.github.com/users/donatoaz/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-10-25T19:36:49 | 2023-10-25T20:34:59 | 2023-10-25T20:34:59 |
CONTRIBUTOR
| null |
**Description:** When llms output leading or trailing whitespace for xml (when using XMLOutputParser) the parser would raise a `ValueError: Could not parse output: ...`. However, leading or trailing whitespace are "ignorable" in the sense of XML standard.
**Issue:** I did not find an issue related.
**Dependencies:** None
**Tag maintainer:**
**Twitter handle:** donatoaz
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
Done, updated unit test and ran `make docker_test`.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12297/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/12297/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12297",
"html_url": "https://github.com/langchain-ai/langchain/pull/12297",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12297.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12297.patch",
"merged_at": "2023-10-25T20:34:59"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12296
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12296/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12296/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12296/events
|
https://github.com/langchain-ai/langchain/pull/12296
| 1,962,037,915 |
PR_kwDOIPDwls5dyYYt
| 12,296 |
CLI Point to Templates
|
{
"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": 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-10-25T18:57:39 | 2023-10-25T22:08:10 | 2023-10-25T22:08:09 |
COLLABORATOR
| null |
Fixes
- points to langserve-templates branch by default for pulling templates
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12296/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/12296/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12296",
"html_url": "https://github.com/langchain-ai/langchain/pull/12296",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12296.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12296.patch",
"merged_at": "2023-10-25T22:08:09"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12295
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12295/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12295/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12295/events
|
https://github.com/langchain-ai/langchain/issues/12295
| 1,962,036,029 |
I_kwDOIPDwls508ks9
| 12,295 |
SQLDatabaseChain Error
|
{
"login": "awsgirib",
"id": 89321916,
"node_id": "MDQ6VXNlcjg5MzIxOTE2",
"avatar_url": "https://avatars.githubusercontent.com/u/89321916?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/awsgirib",
"html_url": "https://github.com/awsgirib",
"followers_url": "https://api.github.com/users/awsgirib/followers",
"following_url": "https://api.github.com/users/awsgirib/following{/other_user}",
"gists_url": "https://api.github.com/users/awsgirib/gists{/gist_id}",
"starred_url": "https://api.github.com/users/awsgirib/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/awsgirib/subscriptions",
"organizations_url": "https://api.github.com/users/awsgirib/orgs",
"repos_url": "https://api.github.com/users/awsgirib/repos",
"events_url": "https://api.github.com/users/awsgirib/events{/privacy}",
"received_events_url": "https://api.github.com/users/awsgirib/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-25T18:56:26 | 2023-11-22T04:01:51 | null |
NONE
| null |
### System Info
Langchain version == 0.0.323
python == 3.10
```
I have a simple code to query a postgres DB:
from langchain.llms import Bedrock
from langchain_experimental.sql import SQLDatabaseChain
db = SQLDatabase.from_uri(database_uri="postgresql://xxx:yyy:zzzzz")
llm = Bedrock(
credentials_profile_name="langchain",
model_id="anthropic.claude-v2"
)
db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True)
db_chain.run("how many lab reports are there?")
```
Get the following error:
```
Entering new SQLDatabaseChain chain...
how many lab reports are there?
SQLQuery:Here is the query and response for your question:
Question: how many lab reports are there?
SQLQuery: SELECT COUNT(*) FROM lab_reportsTraceback (most recent call last):
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
self.dialect.do_execute(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.SyntaxError: syntax error at or near "Here"
LINE 1: Here is the query and response for your question:
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ec2-user/environment/Langchain/langchain-sql.py", line 12, in <module>
db_chain.run("how many lab reports are there?")
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain/chains/base.py", line 505, in run
return self(args[0], callbacks=callbacks, tags=tags, metadata=metadata)[
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain/chains/base.py", line 310, in __call__
raise e
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain/chains/base.py", line 304, in __call__
self._call(inputs, run_manager=run_manager)
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain_experimental/sql/base.py", line 198, in _call
raise exc
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain_experimental/sql/base.py", line 143, in _call
result = self.database.run(sql_cmd)
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain/utilities/sql_database.py", line 429, in run
result = self._execute(command, fetch)
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/langchain/utilities/sql_database.py", line 407, in _execute
cursor = connection.execute(text(command))
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1416, in execute
return meth(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 516, in _execute_on_connection
return connection._execute_clauseelement(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1639, in _execute_clauseelement
ret = self._execute_context(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1848, in _execute_context
return self._exec_single_context(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1988, in _exec_single_context
self._handle_dbapi_exception(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2343, in _handle_dbapi_exception
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
self.dialect.do_execute(
File "/home/ec2-user/miniconda3/envs/langchain3.10/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.SyntaxError) syntax error at or near "Here"
LINE 1: Here is the query and response for your question:
^
[SQL: Here is the query and response for your question:
Question: how many lab reports are there?
SQLQuery: SELECT COUNT(*) FROM lab_reports]
(Background on this error at: https://sqlalche.me/e/20/f405)
```
### 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
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Execute the code with a postgres DB
### Expected behavior
Expect the query to execute and get results.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12295/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/12295/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12294
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12294/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12294/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12294/events
|
https://github.com/langchain-ai/langchain/pull/12294
| 1,962,035,116 |
PR_kwDOIPDwls5dyXzI
| 12,294 |
Templates
|
{
"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": 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 | 1 | 2023-10-25T18:55:50 | 2023-10-26T01:47:43 | 2023-10-26T01:47:43 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12294/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/12294/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12294",
"html_url": "https://github.com/langchain-ai/langchain/pull/12294",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12294.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12294.patch",
"merged_at": "2023-10-26T01:47:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12293
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12293/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12293/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12293/events
|
https://github.com/langchain-ai/langchain/pull/12293
| 1,962,023,731 |
PR_kwDOIPDwls5dyVX4
| 12,293 |
rm .html from local doc links
|
{
"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-10-25T18:48:04 | 2023-10-25T19:09:43 | 2023-10-25T19:09:42 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12293/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/12293/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12293",
"html_url": "https://github.com/langchain-ai/langchain/pull/12293",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12293.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12293.patch",
"merged_at": "2023-10-25T19:09:42"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12292
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12292/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12292/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12292/events
|
https://github.com/langchain-ai/langchain/pull/12292
| 1,962,011,348 |
PR_kwDOIPDwls5dySuf
| 12,292 |
fix some stuff
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-25T18:40:00 | 2023-10-26T20:30:37 | 2023-10-26T20:30:37 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12292/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/12292/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12292",
"html_url": "https://github.com/langchain-ai/langchain/pull/12292",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12292.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12292.patch",
"merged_at": "2023-10-26T20:30:36"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12291
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12291/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12291/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12291/events
|
https://github.com/langchain-ai/langchain/pull/12291
| 1,961,978,551 |
PR_kwDOIPDwls5dyLzu
| 12,291 |
dev 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-10-25T18:17:58 | 2023-10-25T19:28:44 | 2023-10-25T19:28:43 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12291/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/12291/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12291",
"html_url": "https://github.com/langchain-ai/langchain/pull/12291",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12291.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12291.patch",
"merged_at": "2023-10-25T19:28:43"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12290
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12290/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12290/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12290/events
|
https://github.com/langchain-ai/langchain/issues/12290
| 1,961,978,458 |
I_kwDOIPDwls508Wpa
| 12,290 |
Not able to print verbose result in interface.
|
{
"login": "masteryodaa",
"id": 72997705,
"node_id": "MDQ6VXNlcjcyOTk3NzA1",
"avatar_url": "https://avatars.githubusercontent.com/u/72997705?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/masteryodaa",
"html_url": "https://github.com/masteryodaa",
"followers_url": "https://api.github.com/users/masteryodaa/followers",
"following_url": "https://api.github.com/users/masteryodaa/following{/other_user}",
"gists_url": "https://api.github.com/users/masteryodaa/gists{/gist_id}",
"starred_url": "https://api.github.com/users/masteryodaa/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/masteryodaa/subscriptions",
"organizations_url": "https://api.github.com/users/masteryodaa/orgs",
"repos_url": "https://api.github.com/users/masteryodaa/repos",
"events_url": "https://api.github.com/users/masteryodaa/events{/privacy}",
"received_events_url": "https://api.github.com/users/masteryodaa/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": 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-10-25T18:17:54 | 2023-10-25T22:19:51 | null |
NONE
| null |
### Issue you'd like to raise.
Terminal Output:
> Entering new SQLDatabaseChain chain...
how many tracks have pop genre?
SQLQuery:SELECT COUNT(*) FROM tracks WHERE "GenreId" = 3 LIMIT 5;
SQLResult: [(374,)]
Answer:374 tracks have pop genre.
> Finished chain.
How do I access and print the SQLQuery, SQLResult in my ui?
im only able to print the Answer here in response
with st.chat_message("bot"):
st.markdown(response)
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12290/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/12290/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12289
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12289/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12289/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12289/events
|
https://github.com/langchain-ai/langchain/pull/12289
| 1,961,971,418 |
PR_kwDOIPDwls5dyKRY
| 12,289 |
chat loader doc titles
|
{
"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": 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-10-25T18:13:10 | 2023-10-25T18:47:52 | 2023-10-25T18:47:51 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12289/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/12289/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12289",
"html_url": "https://github.com/langchain-ai/langchain/pull/12289",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12289.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12289.patch",
"merged_at": "2023-10-25T18:47:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12288
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12288/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12288/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12288/events
|
https://github.com/langchain-ai/langchain/pull/12288
| 1,961,939,364 |
PR_kwDOIPDwls5dyDVA
| 12,288 |
fixes to cli
|
{
"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": 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-10-25T17:54:45 | 2023-10-25T18:04:52 | 2023-10-25T18:04:51 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12288/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/12288/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12288",
"html_url": "https://github.com/langchain-ai/langchain/pull/12288",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12288.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12288.patch",
"merged_at": "2023-10-25T18:04:51"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12287
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12287/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12287/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12287/events
|
https://github.com/langchain-ai/langchain/issues/12287
| 1,961,919,942 |
I_kwDOIPDwls508IXG
| 12,287 |
langchain-experimental csv_agent how to?
|
{
"login": "quaid281",
"id": 38232238,
"node_id": "MDQ6VXNlcjM4MjMyMjM4",
"avatar_url": "https://avatars.githubusercontent.com/u/38232238?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/quaid281",
"html_url": "https://github.com/quaid281",
"followers_url": "https://api.github.com/users/quaid281/followers",
"following_url": "https://api.github.com/users/quaid281/following{/other_user}",
"gists_url": "https://api.github.com/users/quaid281/gists{/gist_id}",
"starred_url": "https://api.github.com/users/quaid281/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quaid281/subscriptions",
"organizations_url": "https://api.github.com/users/quaid281/orgs",
"repos_url": "https://api.github.com/users/quaid281/repos",
"events_url": "https://api.github.com/users/quaid281/events{/privacy}",
"received_events_url": "https://api.github.com/users/quaid281/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": 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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-25T17:41:30 | 2023-10-25T17:49:34 | null |
NONE
| null |
### Issue with current documentation:
How can I use csv_agent with langchain-experimental being that importing csv_agent from langchain.agents now produces this error:
On 2023-10-27 this module will be be deprecated from langchain, and will be available from the langchain-experimental package.This code is already available in langchain-experimental.See https://github.com/langchain-ai/langchain/discussions/11680.
### Idea or request for content:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12287/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/12287/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12286
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12286/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12286/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12286/events
|
https://github.com/langchain-ai/langchain/pull/12286
| 1,961,913,820 |
PR_kwDOIPDwls5dx946
| 12,286 |
Update README.md
|
{
"login": "RS-labhub",
"id": 117426013,
"node_id": "U_kgDOBv_HXQ",
"avatar_url": "https://avatars.githubusercontent.com/u/117426013?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RS-labhub",
"html_url": "https://github.com/RS-labhub",
"followers_url": "https://api.github.com/users/RS-labhub/followers",
"following_url": "https://api.github.com/users/RS-labhub/following{/other_user}",
"gists_url": "https://api.github.com/users/RS-labhub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RS-labhub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RS-labhub/subscriptions",
"organizations_url": "https://api.github.com/users/RS-labhub/orgs",
"repos_url": "https://api.github.com/users/RS-labhub/repos",
"events_url": "https://api.github.com/users/RS-labhub/events{/privacy}",
"received_events_url": "https://api.github.com/users/RS-labhub/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-10-25T17:37:27 | 2023-10-25T19:59:30 | 2023-10-25T19:59:30 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12286/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/12286/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12286",
"html_url": "https://github.com/langchain-ai/langchain/pull/12286",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12286.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12286.patch",
"merged_at": "2023-10-25T19:59:30"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12285
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12285/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12285/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12285/events
|
https://github.com/langchain-ai/langchain/pull/12285
| 1,961,901,699 |
PR_kwDOIPDwls5dx7VN
| 12,285 |
README.md
|
{
"login": "RS-labhub",
"id": 117426013,
"node_id": "U_kgDOBv_HXQ",
"avatar_url": "https://avatars.githubusercontent.com/u/117426013?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/RS-labhub",
"html_url": "https://github.com/RS-labhub",
"followers_url": "https://api.github.com/users/RS-labhub/followers",
"following_url": "https://api.github.com/users/RS-labhub/following{/other_user}",
"gists_url": "https://api.github.com/users/RS-labhub/gists{/gist_id}",
"starred_url": "https://api.github.com/users/RS-labhub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/RS-labhub/subscriptions",
"organizations_url": "https://api.github.com/users/RS-labhub/orgs",
"repos_url": "https://api.github.com/users/RS-labhub/repos",
"events_url": "https://api.github.com/users/RS-labhub/events{/privacy}",
"received_events_url": "https://api.github.com/users/RS-labhub/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-10-25T17:28:42 | 2023-10-25T17:33:38 | 2023-10-25T17:33:38 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12285/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/12285/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12285",
"html_url": "https://github.com/langchain-ai/langchain/pull/12285",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12285.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12285.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12284
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12284/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12284/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12284/events
|
https://github.com/langchain-ai/langchain/pull/12284
| 1,961,882,997 |
PR_kwDOIPDwls5dx3X3
| 12,284 |
CLI
|
{
"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": 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-10-25T17:16:59 | 2023-10-25T18:06:59 | 2023-10-25T18:06:58 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12284/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/12284/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12284",
"html_url": "https://github.com/langchain-ai/langchain/pull/12284",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12284.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12284.patch",
"merged_at": "2023-10-25T18:06:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12283
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12283/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12283/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12283/events
|
https://github.com/langchain-ai/langchain/pull/12283
| 1,961,801,878 |
PR_kwDOIPDwls5dxl2X
| 12,283 |
Remove CLI
|
{
"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": 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"
}
] |
closed
| false | null |
[] | null | 1 | 2023-10-25T16:25:25 | 2023-10-25T17:33:53 | 2023-10-25T17:33:52 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12283/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/12283/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12283",
"html_url": "https://github.com/langchain-ai/langchain/pull/12283",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12283.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12283.patch",
"merged_at": "2023-10-25T17:33:52"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12281
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12281/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12281/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12281/events
|
https://github.com/langchain-ai/langchain/pull/12281
| 1,961,761,891 |
PR_kwDOIPDwls5dxdIn
| 12,281 |
Pop max concurrency when recursing
|
{
"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-10-25T16:01:48 | 2023-10-25T17:03:59 | 2023-10-25T17:03:58 |
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/langchain-ai/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. It lives in `docs/extras` directory.
If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17.
-->
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12281/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/12281/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12281",
"html_url": "https://github.com/langchain-ai/langchain/pull/12281",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12281.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12281.patch",
"merged_at": "2023-10-25T17:03:58"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12280
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12280/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12280/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12280/events
|
https://github.com/langchain-ai/langchain/issues/12280
| 1,961,752,705 |
I_kwDOIPDwls507fiB
| 12,280 |
DOC: Error in code for splitting and summarizing in a single chain
|
{
"login": "sgordon16",
"id": 38845299,
"node_id": "MDQ6VXNlcjM4ODQ1Mjk5",
"avatar_url": "https://avatars.githubusercontent.com/u/38845299?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/sgordon16",
"html_url": "https://github.com/sgordon16",
"followers_url": "https://api.github.com/users/sgordon16/followers",
"following_url": "https://api.github.com/users/sgordon16/following{/other_user}",
"gists_url": "https://api.github.com/users/sgordon16/gists{/gist_id}",
"starred_url": "https://api.github.com/users/sgordon16/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/sgordon16/subscriptions",
"organizations_url": "https://api.github.com/users/sgordon16/orgs",
"repos_url": "https://api.github.com/users/sgordon16/repos",
"events_url": "https://api.github.com/users/sgordon16/events{/privacy}",
"received_events_url": "https://api.github.com/users/sgordon16/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"
},
{
"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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-25T15:56:28 | 2023-10-25T19:29:06 | null |
NONE
| null |
### Issue with current documentation:
There is an error in the code. [link](https://python.langchain.com/docs/use_cases/summarization#splitting-and-summarizing-in-a-single-chain)
```
from langchain.chains import AnalyzeDocumentChain
summarize_document_chain = AnalyzeDocumentChain(combine_docs_chain=chain, text_splitter=text_splitter)
summarize_document_chain.run(docs[0])
```
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[17], line 4
1 from langchain.chains import AnalyzeDocumentChain
3 summarize_document_chain = AnalyzeDocumentChain(combine_docs_chain=chain, text_splitter=text_splitter)
----> 4 summarize_document_chain.run(docs[0])
File ~/langchain/libs/langchain/langchain/chains/base.py:496, in Chain.run(self, callbacks, tags, metadata, *args, **kwargs)
459 """Convenience method for executing chain.
460
461 The main difference between this method and `Chain.__call__` is that this
(...)
493 # -> "The temperature in Boise is..."
494 """
495 # Run at start to make sure this is possible/defined
--> 496 _output_key = self._run_output_key
498 if args and not kwargs:
499 if len(args) != 1:
File ~/langchain/libs/langchain/langchain/chains/base.py:445, in Chain._run_output_key(self)
442 @property
443 def _run_output_key(self) -> str:
444 if len(self.output_keys) != 1:
--> 445 raise ValueError(
446 f"`run` not supported when there is not exactly "
447 f"one output key. Got {self.output_keys}."
448 )
449 return self.output_keys[0]
ValueError: `run` not supported when there is not exactly one output key. Got ['output_text', 'intermediate_steps'].
```
### Idea or request for content:
There is nothing missing but the code needs to be accurate so the code returns the expected output.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12280/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/12280/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12279
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12279/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12279/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12279/events
|
https://github.com/langchain-ai/langchain/issues/12279
| 1,961,749,463 |
I_kwDOIPDwls507evX
| 12,279 |
Langchain js - can't get token usage
|
{
"login": "poetsmeniet",
"id": 24319539,
"node_id": "MDQ6VXNlcjI0MzE5NTM5",
"avatar_url": "https://avatars.githubusercontent.com/u/24319539?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/poetsmeniet",
"html_url": "https://github.com/poetsmeniet",
"followers_url": "https://api.github.com/users/poetsmeniet/followers",
"following_url": "https://api.github.com/users/poetsmeniet/following{/other_user}",
"gists_url": "https://api.github.com/users/poetsmeniet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/poetsmeniet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/poetsmeniet/subscriptions",
"organizations_url": "https://api.github.com/users/poetsmeniet/orgs",
"repos_url": "https://api.github.com/users/poetsmeniet/repos",
"events_url": "https://api.github.com/users/poetsmeniet/events{/privacy}",
"received_events_url": "https://api.github.com/users/poetsmeniet/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": 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-10-25T15:54:36 | 2023-10-25T17:45:16 | null |
NONE
| null |
### System Info
Langchain JS 0.0.172 on DEbian Linux 12 using Nodejs 18.15.0
With the following code I don't get the tokenUsage back from the chain/ call. I checked the docs, asked the AI and did a google search. Am I doing anything wrong?
`const chain = RetrievalQAChain.fromLLM(
model,
vectorStore.asRetriever(),
{
verbose: true,
}
)
const res = await chain.call({
context: "You assist a Systems Engineer. Be as concise as possible.",
query: prompt,
})
console.log('usage:', res.tokenUsage);
`
### Who can help?
@hwchase17
### 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
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
import { DirectoryLoader } from "langchain/document_loaders/fs/directory";
import { TextLoader } from "langchain/document_loaders/fs/text";
import { JSONLoader } from "langchain/document_loaders/fs/json";
import { CSVLoader } from "langchain/document_loaders/fs/csv";
import { OpenAI } from "langchain/llms/openai";
import { RetrievalQAChain, loadQARefineChain } from "langchain/chains";
import { HNSWLib } from "langchain/vectorstores/hnswlib";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";
import { RecursiveCharacterTextSplitter } from "langchain/text_splitter";
import * as dotenv from 'dotenv';
dotenv.config()
const loader = new DirectoryLoader("./docs", {
".json": (path) => new JSONLoader(path),
".csv": (path) => new CSVLoader(path),
".txt": (path) => new TextLoader(path)
})
const normalizeDocuments = (docs) => {
return docs.map((doc) => {
if (typeof doc.pageContent === "string") {
return doc.pageContent;
} else if (Array.isArray(doc.pageContent)) {
return doc.pageContent.join("\n");
}
});
}
const VECTOR_STORE_PATH = "Documents.index";
export const run = async (params) => {
console.log("Loading docs...")
const docs = await loader.load();
console.log('Processing...')
const model = new OpenAI({
openAIApiKey: process.env.OPENAI_API_KEY,
modelName: "gpt-3.5-turbo",
maxTokens: 2500,
temperature: 0.1,
maxConcurrency: 1,
});
let vectorStore;
try{
console.log("Checking for local vectorStore");
const embeddings = new OpenAIEmbeddings(process.env.OPENAI_API_KEY);
vectorStore = await HNSWLib.load(VECTOR_STORE_PATH, embeddings);
}catch(e){
console.log('Creating new vector store...')
const textSplitter = new RecursiveCharacterTextSplitter({
chunkSize: 3000,
});
const normalizedDocs = normalizeDocuments(docs);
const splitDocs = await textSplitter.createDocuments(normalizedDocs);
console.log('splitdos : ',splitDocs)
// 8. Generate the vector store from the documents
vectorStore = await HNSWLib.fromDocuments(
splitDocs,
new OpenAIEmbeddings()
);
await vectorStore.save(VECTOR_STORE_PATH);
console.log("Vector store created.")
}
console.log("Creating retrieval chain...")
const chain = RetrievalQAChain.fromLLM(
model,
vectorStore.asRetriever(),
{
verbose: true,
}
)
//const promptStart = `rewrite all requirements using the following guidelines:`;
const promptStart = ``;
//const reWrite = `Rewrite the Requirement Text so that is does comply.`;
const reWrite = ``;
const prompts = [
`R3: Requirements should be consistent with each other and should not contain contradictions or conflicts. Report the Id\'s for those that do not comply. Rewrite the Requirement Text so that is does comply with R3 `,
];
prompts.forEach(async prompt => {
//console.log("Querying chain...")
const res = await chain.call({
context: "You assist a Systems Engineer. Be as concise as possible.",
query: prompt,
})
console.log('usage:', res.tokenUsage);
console.log(prompt);
console.log('Reply: ',res, '\n')
});
}
run(process.argv.slice(2))
### Expected behavior
I expect the res object to return the token usage
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12279/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/12279/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12278
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12278/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12278/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12278/events
|
https://github.com/langchain-ai/langchain/pull/12278
| 1,961,745,269 |
PR_kwDOIPDwls5dxZhp
| 12,278 |
bump 323
|
{
"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-10-25T15:52:14 | 2023-10-25T16:06:13 | 2023-10-25T16:06:12 |
COLLABORATOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12278/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/12278/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12278",
"html_url": "https://github.com/langchain-ai/langchain/pull/12278",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12278.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12278.patch",
"merged_at": "2023-10-25T16:06:12"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12277
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12277/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12277/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12277/events
|
https://github.com/langchain-ai/langchain/pull/12277
| 1,961,684,616 |
PR_kwDOIPDwls5dxMVK
| 12,277 |
feat: Add page metadata on PDFMinerLoader
|
{
"login": "blue-hope",
"id": 38323921,
"node_id": "MDQ6VXNlcjM4MzIzOTIx",
"avatar_url": "https://avatars.githubusercontent.com/u/38323921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/blue-hope",
"html_url": "https://github.com/blue-hope",
"followers_url": "https://api.github.com/users/blue-hope/followers",
"following_url": "https://api.github.com/users/blue-hope/following{/other_user}",
"gists_url": "https://api.github.com/users/blue-hope/gists{/gist_id}",
"starred_url": "https://api.github.com/users/blue-hope/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blue-hope/subscriptions",
"organizations_url": "https://api.github.com/users/blue-hope/orgs",
"repos_url": "https://api.github.com/users/blue-hope/repos",
"events_url": "https://api.github.com/users/blue-hope/events{/privacy}",
"received_events_url": "https://api.github.com/users/blue-hope/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": 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 |
{
"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 | 3 | 2023-10-25T15:19:37 | 2023-11-01T15:25:37 | 2023-11-01T15:25:37 |
CONTRIBUTOR
| null |
- **Description:** #12273 's suggestion PR
Like other PDFLoader, loading pdf per each page and giving page metadata.
- **Issue:** #12273
- **Twitter handle:** @blue0_0hope
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12277/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 2,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12277/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12277",
"html_url": "https://github.com/langchain-ai/langchain/pull/12277",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12277.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12277.patch",
"merged_at": "2023-11-01T15:25:37"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12276
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12276/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12276/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12276/events
|
https://github.com/langchain-ai/langchain/issues/12276
| 1,961,655,309 |
I_kwDOIPDwls507HwN
| 12,276 |
LLM (chain) output parsing in MultiRetrievalQAChain: OutputParserException Got invalid JSON object
|
{
"login": "vecorro",
"id": 49245780,
"node_id": "MDQ6VXNlcjQ5MjQ1Nzgw",
"avatar_url": "https://avatars.githubusercontent.com/u/49245780?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/vecorro",
"html_url": "https://github.com/vecorro",
"followers_url": "https://api.github.com/users/vecorro/followers",
"following_url": "https://api.github.com/users/vecorro/following{/other_user}",
"gists_url": "https://api.github.com/users/vecorro/gists{/gist_id}",
"starred_url": "https://api.github.com/users/vecorro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vecorro/subscriptions",
"organizations_url": "https://api.github.com/users/vecorro/orgs",
"repos_url": "https://api.github.com/users/vecorro/repos",
"events_url": "https://api.github.com/users/vecorro/events{/privacy}",
"received_events_url": "https://api.github.com/users/vecorro/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"
},
{
"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"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-25T15:07:03 | 2023-10-25T17:59:09 | null |
NONE
| null |
### System Info
System:
LangChain 0.0.321
Python 3.10
I'm trying to build a MultiRetrievalQAChain using only Llama2 chat models served by vLLM (no OpenAI). For that end I have created a ConversationChain that acts as the default chain for the MultiRetrievalQAChain. I have customized the prompts for both chains to meet LLama 2 Chat format requirements. It looks like the routing chain works properly but I'm getting the following exception:
```
[chain/error] [1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain] [7.00s] Chain run errored with error:
"OutputParserException(\"Parsing text ... raised following error:\\nGot invalid JSON object. Error: Expecting value: line 1 column 1 (char 0)\")"
```
Here the routing and generation trace:
```
[32;1m[1;3m[chain/start][0m [1m[1:chain:MultiRetrievalQAChain] Entering Chain run with input:
[0m{
"input": "What is prompt injection?"
}
[32;1m[1;3m[chain/start][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain] Entering Chain run with input:
[0m{
"input": "What is prompt injection?"
}
[32;1m[1;3m[chain/start][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain > 3:chain:LLMChain] Entering Chain run with input:
[0m{
"input": "What is prompt injection?"
}
[32;1m[1;3m[llm/start][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain > 3:chain:LLMChain > 4:llm:VLLMOpenAI] Entering LLM run with input:
[0m{
"prompts": [
"Given a query to a question answering system select the system best suited for the input. You will be given the names of the available systems and a description of what questions the system is best suited for. You may also revise the original input if you think that revising it will ultimately lead to a better response.\n\n<< FORMATTING >>\nReturn a markdown code snippet with a JSON object formatted to look like:\n```json\n{\n \"destination\": string \\ name of the question answering system to use or \"DEFAULT\"\n \"next_inputs\": string \\ a potentially modified version of the original input\n}\n```\n\nREMEMBER: \"destination\" MUST be one of the candidate prompt names specified below OR it can be \"DEFAULT\" if the input is not well suited for any of the candidate prompts.\nREMEMBER: \"next_inputs\" can just be the original input if you don't think any modifications are needed.\n\n<< CANDIDATE PROMPTS >>\nNIST AI Risk Management Framework: Guidelines provided by the NIST for organizations and people to manage risks associated with the use of AI. \n The NIST risk management framework consists of four cyclical tasks: Govern, Map, Measure and Manage.\nOWASP Top 10 for LLM Applications: Provides practical security guidance to navigate the complex and evolving terrain of LLM security focusing on the top 10 vulnerabilities of LLM applications. These are 1) Prompt Injection, 2) Insecure Output Handling, 3) Training Data Poisoning, 4) Model Denial of Service, 5) Supply Chain Vulnerabilities, 6) Sensitive Information Disclosure, 7) Insecure Plugin Design\n 8) Excessive Agency, 9) Overreliance, and 10) Model Theft\n \nThreat Modeling LLM Applications: A high-level example from Gavin Klondike on how to build a threat model for LLM applications utilizing the STRIDE modeling framework based on trust boundaries.\n\n<< INPUT >>\nWhat is prompt injection?\n\n<< OUTPUT >>"
]
}
/home/vmuser/miniconda3/envs/llm-env2/lib/python3.10/site-packages/langchain/chains/llm.py:280: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain.
warnings.warn(
[36;1m[1;3m[llm/end][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain > 3:chain:LLMChain > 4:llm:VLLMOpenAI] [7.00s] Exiting LLM run with output:
[0m{
"generations": [
[
{
"text": "Prompt injection is a security vulnerability in LLM applications where an attacker can manipulate the input prompts to an LLM model to elicit a specific response from the model. This can be done by exploiting the lack of proper input validation and sanitization in the model's architecture. \n",
"generation_info": {
"finish_reason": "length",
"logprobs": null
}
}
]
],
"llm_output": {
"token_usage": {
"prompt_tokens": 488,
"completion_tokens": 512,
"total_tokens": 1000
},
"model_name": "meta-llama/Llama-2-7b-chat-hf"
},
"run": null
}
[36;1m[1;3m[chain/end][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain > 3:chain:LLMChain] [7.00s] Exiting Chain run with output:
[0m{
"text": "Prompt injection is a security vulnerability in LLM applications where an attacker can manipulate the input prompts to an LLM model to elicit a specific response from the model. This can be done by exploiting the lack of proper input validation and sanitization in the model's architecture.\n"
}
[31;1m[1;3m[chain/error][0m [1m[1:chain:MultiRetrievalQAChain > 2:chain:LLMRouterChain] [7.00s] Chain run errored with error:
[0m"OutputParserException(\"Parsing text\\nPrompt injection is a security vulnerability in LLM applications where an attacker can manipulate the input prompts to an LLM model to elicit a specific response from the model. This can be done by exploiting the lack of proper input validation and sanitization in the model's architecture.\\\n\\n raised following error:\\nGot invalid JSON object. Error: Expecting value: line 1 column 1 (char 0)\")"
[0;31m---------------------------------------------------------------------------[0m
[0;31mJSONDecodeError[0m Traceback (most recent call last)
File [0;32m~/miniconda3/envs/llm-env2/lib/python3.10/site-packages/langchain/output_parsers/json.py:163[0m, in [0;36mparse_and_check_json_markdown[0;34m(text, expected_keys)[0m
[1;32m 162[0m [38;5;28;01mtry[39;00m:
[0;32m--> 163[0m json_obj [38;5;241m=[39m [43mparse_json_markdown[49m[43m([49m[43mtext[49m[43m)[49m
[1;32m 164[0m [38;5;28;01mexcept[39;00m json[38;5;241m.[39mJSONDecodeError [38;5;28;01mas[39;00m e:
raised following error:
Got invalid JSON object. Error: Expecting value: line 1 column 1 (char 0)
```
The issue seems to be related to a warning that I'm also getting: `llm.py:280: UserWarning: The predict_and_parse method is deprecated, instead pass an output parser directly to LLMChain.`
Unfortunately it is unclear how one is supposed to implement an output parser for the LLM (ConversationChain) chain that meets expectations from the MultiRetrievalQAChain. The documentation for these chains relies a lot on OpenAI models to do the formatting but there's no much guidance on how to do it with other LLMs.
Any guidance on how to move forward would be appreciated.
Here my code:
```
import torch
import langchain
langchain.debug = True
from langchain.llms import VLLMOpenAI
from langchain.document_loaders import PyPDFLoader
from langchain.prompts import PromptTemplate
# Import for retrieval-augmented generation RAG
from langchain import hub
from langchain.chains import ConversationChain, MultiRetrievalQAChain
from langchain.vectorstores import Chroma
from langchain.text_splitter import SentenceTransformersTokenTextSplitter
from langchain.embeddings.sentence_transformer import SentenceTransformerEmbeddings
#%%
# URL for the vLLM service
INFERENCE_SRV_URL = "http://localhost:8000/v1"
def setup_chat_llm(vllm_url, max_tokens=512, temperature=0):
"""
Intializes the vLLM service object.
:param vllm_url: vLLM service URL
:param max_tokens: Max number of tokens to get generated by the LLM
:param temperature: Temperature of the generation process
:return: The vLLM service object
"""
chat = VLLMOpenAI(
model_name="meta-llama/Llama-2-7b-chat-hf",
openai_api_key="EMPTY",
openai_api_base=vllm_url,
temperature=temperature,
max_tokens=max_tokens,
)
return chat
#%%
# Initialize LLM service
llm = setup_chat_llm(vllm_url=INFERENCE_SRV_URL)
#%%
%%time
# Set up the embedding encoder (Sentence Transformers) and vector store
model_name = "all-mpnet-base-v2"
model_kwargs = {'device': 'cuda' if torch.cuda.is_available() else 'cpu'}
encode_kwargs = {'normalize_embeddings': False}
embeddings = SentenceTransformerEmbeddings(
model_name=model_name,
model_kwargs=model_kwargs,
encode_kwargs=encode_kwargs
)
# Set up the document splitter
text_splitter = SentenceTransformersTokenTextSplitter(chunk_size=500, chunk_overlap=0)
# Load PDF documents
loader = PyPDFLoader(file_path="../data/AI_RMF_Playbook.pdf")
rmf_splits = loader.load_and_split()
rmf_retriever = Chroma.from_documents(documents=rmf_splits, embedding=embeddings)
loader = PyPDFLoader(file_path="../data/OWASP-Top-10-for-LLM-Applications-v101.pdf")
owasp_splits = loader.load_and_split()
owasp_retriever = Chroma.from_documents(documents=owasp_splits, embedding=embeddings)
loader = PyPDFLoader(file_path="../data/Threat Modeling LLM Applications - AI Village.pdf")
ai_village_splits = loader.load_and_split()
ai_village_retriever = Chroma.from_documents(documents=ai_village_splits, embedding=embeddings)
#%%
retrievers_info = [
{
"name": "NIST AI Risk Management Framework",
"description": """Guidelines provided by the NIST for organizations and people to manage risks associated with the use of AI.
The NIST risk management framework consists of four cyclical tasks: Govern, Map, Measure and Manage.""",
"retriever": rmf_retriever.as_retriever()
},
{
"name": "OWASP Top 10 for LLM Applications",
"description": """Provides practical security guidance to navigate the complex and evolving terrain of LLM security focusing on the top 10 vulnerabilities of LLM applications. These are 1) Prompt Injection, 2) Insecure Output Handling, 3) Training Data Poisoning, 4) Model Denial of Service, 5) Supply Chain Vulnerabilities, 6) Sensitive Information Disclosure, 7) Insecure Plugin Design
8) Excessive Agency, 9) Overreliance, and 10) Model Theft
""",
"retriever": owasp_retriever.as_retriever()
},
{
"name": "Threat Modeling LLM Applications",
"description": "A high-level example from Gavin Klondike on how to build a threat model for LLM applications utilizing the STRIDE modeling framework based on trust boundaries.",
"retriever": ai_village_retriever.as_retriever()
}
]
#%%
prompt_template = (
""" [INST]<<SYS>> You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise.<</SYS>>
Question: {query}
Context: {history}
Answer: [/INST]
""")
prompt = PromptTemplate(template=prompt_template, input_variables=['history', 'query'])
routing_prompt_template = (
"""
[INST]<<SYS>> Given a query to a question answering system select the system best suited for the input. You will be given the names of the available systems and a description of what questions the system is best suited for. You could also revise the original input if you think that revising it will ultimately lead to a better response.
Return a markdown code snippet with a JSON object formatted as follows:
\```json
\{
"destination": "destination_key_value"
"next_inputs": "revised_or_original_input"
\}
\```
WHERE:
- The "destination" key value MUST be a text string matching one of the candidate prompt names specified below OR it can be "DEFAULT" if the input is not well suited for any of the candidate prompts.
- The "next_inputs" key value can just be the original input string if you don't think any modifications are needed.
<</SYS>>
<< CANDIDATE PROMPTS >>
{destinations}
<< INPUT >>
{input}
<< OUTPUT >>
[/INST]
""")
routing_prompt = PromptTemplate(template=routing_prompt_template, input_variables=['destinations', 'input'])
#%%
default_chain = ConversationChain(
llm=llm, # Your own LLM
prompt=prompt, # Your own prompt
input_key="query",
output_key="result",
verbose=True,
)
multi_retriever_chain = MultiRetrievalQAChain.from_retrievers(
llm=llm,
retriever_infos=retrievers_info,
default_chain=default_chain,
default_prompt=routing_prompt,
default_retriever=rmf_retriever.as_retriever(),
verbose=True
)
#%%
question = "What is prompt injection?"
result = multi_retriever_chain.run(question)
#%%
result
#%%
#%%
from langchain.chains.router.multi_retrieval_prompt import (
MULTI_RETRIEVAL_ROUTER_TEMPLATE,
)
MULTI_RETRIEVAL_ROUTER_TEMPLATE
#%%
print(MULTI_RETRIEVAL_ROUTER_TEMPLATE)
#%%
```
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [X] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [ ] Embedding Models
- [X] 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
I included the entire script I'm using
### Expected behavior
Proper query/question routing to the retriever better suited to provide the content required by the LLM to answer a question.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12276/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/12276/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12275
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12275/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12275/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12275/events
|
https://github.com/langchain-ai/langchain/pull/12275
| 1,961,635,175 |
PR_kwDOIPDwls5dxBXc
| 12,275 |
CohereEmbeddings: Add max_retries and request_timeout
|
{
"login": "ephe-meral",
"id": 1501017,
"node_id": "MDQ6VXNlcjE1MDEwMTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1501017?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ephe-meral",
"html_url": "https://github.com/ephe-meral",
"followers_url": "https://api.github.com/users/ephe-meral/followers",
"following_url": "https://api.github.com/users/ephe-meral/following{/other_user}",
"gists_url": "https://api.github.com/users/ephe-meral/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ephe-meral/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ephe-meral/subscriptions",
"organizations_url": "https://api.github.com/users/ephe-meral/orgs",
"repos_url": "https://api.github.com/users/ephe-meral/repos",
"events_url": "https://api.github.com/users/ephe-meral/events{/privacy}",
"received_events_url": "https://api.github.com/users/ephe-meral/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 | null |
[] | null | 1 | 2023-10-25T14:59:13 | 2023-10-27T17:32:36 | 2023-10-25T17:37:25 |
CONTRIBUTOR
| null |
Add max_retries and request_timeout to CohereEmbeddings, akin to how it works in OpenAIEmbeddings.
Since the Cohere client already implements these parameters, we can simply pass them down.
Uses parameters from these two cohere client objects:
https://github.com/cohere-ai/cohere-python/blob/main/cohere/client.py
https://github.com/cohere-ai/cohere-python/blob/main/cohere/client_async.py
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12275/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/12275/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12275",
"html_url": "https://github.com/langchain-ai/langchain/pull/12275",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12275.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12275.patch",
"merged_at": "2023-10-25T17:37:25"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12274
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12274/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12274/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12274/events
|
https://github.com/langchain-ai/langchain/pull/12274
| 1,961,618,375 |
PR_kwDOIPDwls5dw9oj
| 12,274 |
Add Cube Semantic Layer Agent
|
{
"login": "maiqingqiang",
"id": 1825679,
"node_id": "MDQ6VXNlcjE4MjU2Nzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1825679?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/maiqingqiang",
"html_url": "https://github.com/maiqingqiang",
"followers_url": "https://api.github.com/users/maiqingqiang/followers",
"following_url": "https://api.github.com/users/maiqingqiang/following{/other_user}",
"gists_url": "https://api.github.com/users/maiqingqiang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/maiqingqiang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/maiqingqiang/subscriptions",
"organizations_url": "https://api.github.com/users/maiqingqiang/orgs",
"repos_url": "https://api.github.com/users/maiqingqiang/repos",
"events_url": "https://api.github.com/users/maiqingqiang/events{/privacy}",
"received_events_url": "https://api.github.com/users/maiqingqiang/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"
},
{
"id": 6232714144,
"node_id": "LA_kwDOIPDwls8AAAABc3-roA",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/size:XXL",
"name": "size:XXL",
"color": "5319E7",
"default": false,
"description": "This PR changes 1000+ lines, ignoring generated files."
}
] |
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 | 13 | 2023-10-25T14:51:49 | 2023-12-11T13:18:30 | null |
CONTRIBUTOR
| null |
- **Description:** SQL Chains and Agents support building and running SQL queries based on natural language prompts. However, when faced with complex queries, they may not perform well in producing results.
Now, I'm providing a Cube Semantic Layer Agent, which can better support complex queries. A Cube data model is used to transform raw data into meaningful business definitions and pre-aggregate data for optimal results.
- **Twitter handle:** @JohnMai95
- **Tag maintainer:** @baskaryan @hwchase17 @eyurtsev

<img width="1307" alt="ag" src="https://github.com/langchain-ai/langchain/assets/1825679/fbea9996-9eac-4a9c-baab-08ce74bbb3df">
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12274/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/12274/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12274",
"html_url": "https://github.com/langchain-ai/langchain/pull/12274",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12274.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12274.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12273
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12273/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12273/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12273/events
|
https://github.com/langchain-ai/langchain/issues/12273
| 1,961,611,644 |
I_kwDOIPDwls5069F8
| 12,273 |
Issue: `PDFMinerLoader` not gives `page` metadata when loading with `extract_images=False` - is it intended?
|
{
"login": "blue-hope",
"id": 38323921,
"node_id": "MDQ6VXNlcjM4MzIzOTIx",
"avatar_url": "https://avatars.githubusercontent.com/u/38323921?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/blue-hope",
"html_url": "https://github.com/blue-hope",
"followers_url": "https://api.github.com/users/blue-hope/followers",
"following_url": "https://api.github.com/users/blue-hope/following{/other_user}",
"gists_url": "https://api.github.com/users/blue-hope/gists{/gist_id}",
"starred_url": "https://api.github.com/users/blue-hope/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/blue-hope/subscriptions",
"organizations_url": "https://api.github.com/users/blue-hope/orgs",
"repos_url": "https://api.github.com/users/blue-hope/repos",
"events_url": "https://api.github.com/users/blue-hope/events{/privacy}",
"received_events_url": "https://api.github.com/users/blue-hope/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-10-25T14:48:30 | 2023-11-02T05:03:37 | 2023-11-02T05:03:37 |
CONTRIBUTOR
| null |
### Issue you'd like to raise.
Unlike other PDF loaders, I've found that only the PDFMinerLoader doesn't provide pages in metadata when loading. Digging deeper, the PDFMinerParser only gives the page metadata when extract_images=True. I wonder if this was intentional.
### Suggestion:
#12277
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12273/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/12273/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12272
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12272/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12272/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12272/events
|
https://github.com/langchain-ai/langchain/issues/12272
| 1,961,606,028 |
I_kwDOIPDwls5067uM
| 12,272 |
User based memorization with ConversationBufferMemory and CombinedMemory
|
{
"login": "surabhi-cb",
"id": 116259947,
"node_id": "U_kgDOBu38aw",
"avatar_url": "https://avatars.githubusercontent.com/u/116259947?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/surabhi-cb",
"html_url": "https://github.com/surabhi-cb",
"followers_url": "https://api.github.com/users/surabhi-cb/followers",
"following_url": "https://api.github.com/users/surabhi-cb/following{/other_user}",
"gists_url": "https://api.github.com/users/surabhi-cb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/surabhi-cb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/surabhi-cb/subscriptions",
"organizations_url": "https://api.github.com/users/surabhi-cb/orgs",
"repos_url": "https://api.github.com/users/surabhi-cb/repos",
"events_url": "https://api.github.com/users/surabhi-cb/events{/privacy}",
"received_events_url": "https://api.github.com/users/surabhi-cb/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": 5955630415,
"node_id": "LA_kwDOIPDwls8AAAABYvu1Tw",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20redis",
"name": "integration: redis",
"color": "F9D0C4",
"default": false,
"description": "Any integration that uses Redis"
}
] |
open
| false | null |
[] | null | 1 | 2023-10-25T14:45:46 | 2023-10-25T14:56:17 | null |
NONE
| null |
### System Info
langchain version: 0.0320
python version: 3.10
### Who can help?
_No response_
### Information
- [X] 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
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
User based memorization with ConversationBufferMemory and CombinedMemory. Attaching my code below, Please let me know where I am doing wrong:
session_id= "user2"
vect_memory = VectorStoreRetrieverMemory(retriever=retriever)
_DEFAULT_TEMPLATE = """
You are having a conversation with a human. Please interact like a human being and give an accurate answer.
Relevant pieces of the previous conversation:
{history}
(You do not need to use these pieces of information if not relevant)
Current conversation:
{session_id}
User: {input}
Chatbot:
"""
PROMPT = PromptTemplate(
input_variables=["history","session_id", "input"],
template=_DEFAULT_TEMPLATE
)
print(PROMPT)
message_history = RedisChatMessageHistory(url=redis_url, session_id=session_id)
conv_memory = ConversationBufferMemory(
memory_key="session_id",
chat_memory=message_history,
input_key="input",
prompt=PROMPT,
return_messages=True
)
memory = CombinedMemory(memories=[conv_memory, vect_memory])
llm = OpenAI(temperature=0, model_name='gpt-3.5-turbo') # Can be any valid LLM
conversation_with_summary = ConversationChain(
llm=llm,
prompt=PROMPT,
memory=memory,
verbose=True,
)
conversation_with_summary(input="hELLO")
It is not working on the base of session.
=================I am getting sthis error=======================
Traceback (most recent call last):
File "C:\Users\ankit\PycharmProjects\spendidchatbot\chatbot.py", line 306, in <module>
conversation_with_summary = ConversationChain(
File "C:\Users\ankit\PycharmProjects\spendidchatbot\env_spen\lib\site-packages\langchain\load\serializable.py", line 97, in _init_
super().__init__(**kwargs)
File "C:\Users\ankit\PycharmProjects\spendidchatbot\env_spen\lib\site-packages\pydantic\v1\main.py", line 341, in _init_
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ConversationChain
_root_
Got unexpected prompt input variables. The prompt expects ['history', 'input', 'session_id'], but got ['user2', 'history'] as inputs from memory, and input as the normal input key. (type=value_error)
### Expected behavior
User based memorization with ConversationBufferMemory and CombinedMemory. Attaching my code below, Please let me know where I am doing wrong:
session_id= "user2"
vect_memory = VectorStoreRetrieverMemory(retriever=retriever)
_DEFAULT_TEMPLATE = """
You are having a conversation with a human. Please interact like a human being and give an accurate answer.
Relevant pieces of the previous conversation:
{history}
(You do not need to use these pieces of information if not relevant)
Current conversation:
{session_id}
User: {input}
Chatbot:
"""
PROMPT = PromptTemplate(
input_variables=["history","session_id", "input"],
template=_DEFAULT_TEMPLATE
)
print(PROMPT)
message_history = RedisChatMessageHistory(url=redis_url, session_id=session_id)
conv_memory = ConversationBufferMemory(
memory_key="session_id",
chat_memory=message_history,
input_key="input",
prompt=PROMPT,
return_messages=True
)
memory = CombinedMemory(memories=[conv_memory, vect_memory])
llm = OpenAI(temperature=0, model_name='gpt-3.5-turbo') # Can be any valid LLM
conversation_with_summary = ConversationChain(
llm=llm,
prompt=PROMPT,
memory=memory,
verbose=True,
)
conversation_with_summary(input="hELLO")
It is not working on the base of session.
=================I am getting sthis error=======================
Traceback (most recent call last):
File "C:\Users\ankit\PycharmProjects\spendidchatbot\chatbot.py", line 306, in <module>
conversation_with_summary = ConversationChain(
File "C:\Users\ankit\PycharmProjects\spendidchatbot\env_spen\lib\site-packages\langchain\load\serializable.py", line 97, in _init_
super().__init__(**kwargs)
File "C:\Users\ankit\PycharmProjects\spendidchatbot\env_spen\lib\site-packages\pydantic\v1\main.py", line 341, in _init_
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ConversationChain
_root_
Got unexpected prompt input variables. The prompt expects ['history', 'input', 'session_id'], but got ['user2', 'history'] as inputs from memory, and input as the normal input key. (type=value_error)
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12272/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/12272/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12271
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12271/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12271/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12271/events
|
https://github.com/langchain-ai/langchain/pull/12271
| 1,961,603,019 |
PR_kwDOIPDwls5dw6Rp
| 12,271 |
Update stuff_prompt.py (Fix the sources field is blank)
|
{
"login": "datorresb",
"id": 31328174,
"node_id": "MDQ6VXNlcjMxMzI4MTc0",
"avatar_url": "https://avatars.githubusercontent.com/u/31328174?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/datorresb",
"html_url": "https://github.com/datorresb",
"followers_url": "https://api.github.com/users/datorresb/followers",
"following_url": "https://api.github.com/users/datorresb/following{/other_user}",
"gists_url": "https://api.github.com/users/datorresb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/datorresb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/datorresb/subscriptions",
"organizations_url": "https://api.github.com/users/datorresb/orgs",
"repos_url": "https://api.github.com/users/datorresb/repos",
"events_url": "https://api.github.com/users/datorresb/events{/privacy}",
"received_events_url": "https://api.github.com/users/datorresb/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"
}
] |
open
| false | null |
[] | null | 2 | 2023-10-25T14:44:22 | 2023-10-30T07:59:44 | null |
NONE
| null |
**Description:** This change aims to resolve the issue by enhancing source extraction from the following link: [LangChain Issue #9913](https://github.com/langchain-ai/langchain/issues/9913). The problem is fixed by replacing "source" in the prompt with "reference."
**Dependencies:** There are no specific dependencies required for this change.
**Twitter handle:** [@davinci137](https://twitter.com/davinci137).
The "SOURCES" field is currently empty due to a split occurring at the word "Source:."
```python
# In the middle of the answer, a split is performed
def _split_sources(self, answer: str) -> Tuple[str, str]:
"""
This function is responsible for splitting sources from the answer.
Args:
answer (str): The answer text.
Returns:
Tuple[str, str]: A tuple containing the modified answer and extracted sources.
"""
if re.search(r"SOURCES?:", answer, re.IGNORECASE):
# It utilizes regular expressions to split the answer and sources based on "SOURCES:" or "QUESTION:" (case-insensitive).
answer, sources = re.split(r"SOURCES?:|QUESTION:\s", answer, flags=re.IGNORECASE)[:2]
# The sources are split based on newline characters, and the first line is extracted, with leading and trailing whitespace removed.
sources are then stripped.
else:
sources = ""
return answer, sources
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12271/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/12271/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12271",
"html_url": "https://github.com/langchain-ai/langchain/pull/12271",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12271.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12271.patch",
"merged_at": null
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12270
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12270/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12270/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12270/events
|
https://github.com/langchain-ai/langchain/pull/12270
| 1,961,587,718 |
PR_kwDOIPDwls5dw23L
| 12,270 |
response parser for ArceeRetriever
|
{
"login": "EricLiclair",
"id": 65639964,
"node_id": "MDQ6VXNlcjY1NjM5OTY0",
"avatar_url": "https://avatars.githubusercontent.com/u/65639964?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/EricLiclair",
"html_url": "https://github.com/EricLiclair",
"followers_url": "https://api.github.com/users/EricLiclair/followers",
"following_url": "https://api.github.com/users/EricLiclair/following{/other_user}",
"gists_url": "https://api.github.com/users/EricLiclair/gists{/gist_id}",
"starred_url": "https://api.github.com/users/EricLiclair/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/EricLiclair/subscriptions",
"organizations_url": "https://api.github.com/users/EricLiclair/orgs",
"repos_url": "https://api.github.com/users/EricLiclair/repos",
"events_url": "https://api.github.com/users/EricLiclair/events{/privacy}",
"received_events_url": "https://api.github.com/users/EricLiclair/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-10-25T14:38:22 | 2023-10-25T17:55:13 | 2023-10-25T17:55:13 |
CONTRIBUTOR
| null |
- **Description:** Response parser for arcee retriever,
- **Issue:** follow-up pr on #11578 and [discussion](https://github.com/arcee-ai/arcee-python/issues/15#issuecomment-1759874053),
- **Dependencies:** NA
This pr implements a parser for the response from ArceeRetreiver to convert to langchain `Document`. This closes the loop of generation and retrieval for Arcee DALMs in langchain.
The reference for the response parser is [api-docs:retrieve](https://api.arcee.ai/docs#/v2/retrieve_model)
Attaching screenshot of working implementation:
<img width="1984" alt="Screenshot 2023-10-25 at 7 42 34 PM" src="https://github.com/langchain-ai/langchain/assets/65639964/026987b9-34b2-4e4b-b87d-69fcd0c6641a">
\*api key deleted
---
Successful tests, lints, etc.
```shell
Re-run pytest with --snapshot-update to delete unused snapshots.
==================================================================================================================== slowest 5 durations =====================================================================================================================
1.56s call tests/unit_tests/schema/runnable/test_runnable.py::test_retrying
0.63s call tests/unit_tests/schema/runnable/test_runnable.py::test_map_astream
0.33s call tests/unit_tests/schema/runnable/test_runnable.py::test_map_stream_iterator_input
0.30s call tests/unit_tests/schema/runnable/test_runnable.py::test_map_astream_iterator_input
0.20s call tests/unit_tests/indexes/test_indexing.py::test_cleanup_with_different_batchsize
======================================================================================================= 1265 passed, 270 skipped, 32 warnings in 6.55s =======================================================================================================
[ "." = "" ] || poetry run black .
All done! ✨ 🍰 ✨
1871 files left unchanged.
[ "." = "" ] || poetry run ruff --select I --fix .
./scripts/check_pydantic.sh .
./scripts/check_imports.sh
poetry run ruff .
[ "." = "" ] || poetry run black . --check
All done! ✨ 🍰 ✨
1871 files would be left unchanged.
[ "." = "" ] || poetry run mypy .
Success: no issues found in 1868 source files
poetry run codespell --toml pyproject.toml
poetry run codespell --toml pyproject.toml -w
```
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12270/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/12270/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12270",
"html_url": "https://github.com/langchain-ai/langchain/pull/12270",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12270.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12270.patch",
"merged_at": "2023-10-25T17:55:13"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12268
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12268/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12268/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12268/events
|
https://github.com/langchain-ai/langchain/pull/12268
| 1,961,539,024 |
PR_kwDOIPDwls5dwsPz
| 12,268 |
Deep memory support in LangChain
|
{
"login": "adolkhan",
"id": 54854336,
"node_id": "MDQ6VXNlcjU0ODU0MzM2",
"avatar_url": "https://avatars.githubusercontent.com/u/54854336?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adolkhan",
"html_url": "https://github.com/adolkhan",
"followers_url": "https://api.github.com/users/adolkhan/followers",
"following_url": "https://api.github.com/users/adolkhan/following{/other_user}",
"gists_url": "https://api.github.com/users/adolkhan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adolkhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adolkhan/subscriptions",
"organizations_url": "https://api.github.com/users/adolkhan/orgs",
"repos_url": "https://api.github.com/users/adolkhan/repos",
"events_url": "https://api.github.com/users/adolkhan/events{/privacy}",
"received_events_url": "https://api.github.com/users/adolkhan/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": 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-10-25T14:16:28 | 2023-10-30T19:16:15 | 2023-10-30T19:16:15 |
CONTRIBUTOR
| null |
- Description: adding support to Activeloop's DeepMemory feature that boosts recall up to 25%. Added Jupyter notebook showcasing the feature and also made index params explicit.
- Twitter handle: will really appreciate if we could announce this on twitter.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12268/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/12268/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12268",
"html_url": "https://github.com/langchain-ai/langchain/pull/12268",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12268.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12268.patch",
"merged_at": "2023-10-30T19:16:15"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12267
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12267/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12267/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12267/events
|
https://github.com/langchain-ai/langchain/pull/12267
| 1,961,330,212 |
PR_kwDOIPDwls5dv-_1
| 12,267 |
Finetuned openai azure models cost calculation
|
{
"login": "nirkopler",
"id": 85127941,
"node_id": "MDQ6VXNlcjg1MTI3OTQx",
"avatar_url": "https://avatars.githubusercontent.com/u/85127941?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nirkopler",
"html_url": "https://github.com/nirkopler",
"followers_url": "https://api.github.com/users/nirkopler/followers",
"following_url": "https://api.github.com/users/nirkopler/following{/other_user}",
"gists_url": "https://api.github.com/users/nirkopler/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nirkopler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nirkopler/subscriptions",
"organizations_url": "https://api.github.com/users/nirkopler/orgs",
"repos_url": "https://api.github.com/users/nirkopler/repos",
"events_url": "https://api.github.com/users/nirkopler/events{/privacy}",
"received_events_url": "https://api.github.com/users/nirkopler/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-10-25T12:40:39 | 2023-10-26T16:38:10 | 2023-10-26T16:38:10 |
CONTRIBUTOR
| null |
**Description:**
Add cost calculation for fine tuned **Azure** with relevant unit tests.
see https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/fine-tuning?tabs=turbo&pivots=programming-language-studio for more information.
this PR is the result of this PR: https://github.com/langchain-ai/langchain/pull/12190
Twitter handle: @nirkopler
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12267/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/12267/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12267",
"html_url": "https://github.com/langchain-ai/langchain/pull/12267",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12267.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12267.patch",
"merged_at": "2023-10-26T16:38:10"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12266
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12266/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12266/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12266/events
|
https://github.com/langchain-ai/langchain/issues/12266
| 1,961,319,260 |
I_kwDOIPDwls5051tc
| 12,266 |
ConversationalRetrievalChain doesn't work with ConversationEntityMemory + SQLiteEntityStore
|
{
"login": "Surya-Kanta",
"id": 18166257,
"node_id": "MDQ6VXNlcjE4MTY2MjU3",
"avatar_url": "https://avatars.githubusercontent.com/u/18166257?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Surya-Kanta",
"html_url": "https://github.com/Surya-Kanta",
"followers_url": "https://api.github.com/users/Surya-Kanta/followers",
"following_url": "https://api.github.com/users/Surya-Kanta/following{/other_user}",
"gists_url": "https://api.github.com/users/Surya-Kanta/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Surya-Kanta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Surya-Kanta/subscriptions",
"organizations_url": "https://api.github.com/users/Surya-Kanta/orgs",
"repos_url": "https://api.github.com/users/Surya-Kanta/repos",
"events_url": "https://api.github.com/users/Surya-Kanta/events{/privacy}",
"received_events_url": "https://api.github.com/users/Surya-Kanta/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": 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"
},
{
"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"
},
{
"id": 5924999838,
"node_id": "LA_kwDOIPDwls8AAAABYShSng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/integration:%20chroma",
"name": "integration: chroma",
"color": "B78AF8",
"default": false,
"description": "Related to ChromaDB"
}
] |
closed
| false | null |
[] | null | 3 | 2023-10-25T12:34:48 | 2023-10-25T14:50:34 | 2023-10-25T14:50:33 |
NONE
| null |
### System Info
Langchain == 0.0.320
Following step by step procedures used in actual codebase followed by error message
```
llm = ChatOpenAI(openai_api_key=openai_api_key, model_name=engine)
```
```
db = Chroma(
collection_name=f'collection_1233',
embedding_function=OpenAIEmbeddings(openai_api_key=openai_api_key),
persist_directory=os.path.abspath('storage/vectors/')
)
```
```
chain = ConversationalRetrievalChain.from_llm(
retriever=db.as_retriever(),
llm=self.llm,
memory=SQLiteEntityStore(session_id=f'session_1233', db_file='storage/entities.db')
condense_question_prompt=PromptTemplate.from_template(template=template),
verbose=True
)
```
```
response = chain({"question": prompt})
```
The above step throws error as below
```
CRITICAL django Missing some input keys: {'chat_history'}
```
After providing ```chat_history```, the error is as follwed
```
CRITICAL django One input key expected got ['question', 'chat_history']
```
So, what to do now? I need the following entities to be used strictly:
- ChatOpenAI
- ConversationalRetrievalChain + Chroma
- ConversationEntityMemory + SQLiteEntityStore
Please help asap...
### Who can help?
_No response_
### Information
- [ ] The official example notebooks/scripts
- [ ] My own modified scripts
### Related Components
- [X] LLMs/Chat Models
- [X] Embedding Models
- [ ] Prompts / Prompt Templates / Prompt Selectors
- [ ] Output Parsers
- [ ] Document Loaders
- [X] Vector Stores / Retrievers
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Following step by step procedures used in actual codebase followed by error message
```
llm = ChatOpenAI(openai_api_key=openai_api_key, model_name=engine)
```
```
db = Chroma(
collection_name=f'collection_1233',
embedding_function=OpenAIEmbeddings(openai_api_key=openai_api_key),
persist_directory=os.path.abspath('storage/vectors/')
)
```
```
chain = ConversationalRetrievalChain.from_llm(
retriever=db.as_retriever(),
llm=self.llm,
memory=SQLiteEntityStore(session_id=f'session_1233', db_file='storage/entities.db')
condense_question_prompt=PromptTemplate.from_template(template=template),
verbose=True
)
```
```
response = chain({"question": prompt})
```
The above step throws error as below
```
CRITICAL django Missing some input keys: {'chat_history'}
```
After providing ```chat_history```, the error is as follwed
```
CRITICAL django One input key expected got ['question', 'chat_history']
```
So, what to do now? I need the following entities to be used strictly:
- ChatOpenAI
- ConversationalRetrievalChain + Chroma
- ConversationEntityMemory + SQLiteEntityStore
### Expected behavior
Conversations should be working with all chat history saved in mysqli db as well as returned to the user in the response.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12266/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/12266/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12265
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12265/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12265/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12265/events
|
https://github.com/langchain-ai/langchain/issues/12265
| 1,961,308,651 |
I_kwDOIPDwls505zHr
| 12,265 |
Upgrade to Pydantic V2
|
{
"login": "Luca-Blight",
"id": 46580497,
"node_id": "MDQ6VXNlcjQ2NTgwNDk3",
"avatar_url": "https://avatars.githubusercontent.com/u/46580497?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Luca-Blight",
"html_url": "https://github.com/Luca-Blight",
"followers_url": "https://api.github.com/users/Luca-Blight/followers",
"following_url": "https://api.github.com/users/Luca-Blight/following{/other_user}",
"gists_url": "https://api.github.com/users/Luca-Blight/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Luca-Blight/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Luca-Blight/subscriptions",
"organizations_url": "https://api.github.com/users/Luca-Blight/orgs",
"repos_url": "https://api.github.com/users/Luca-Blight/repos",
"events_url": "https://api.github.com/users/Luca-Blight/events{/privacy}",
"received_events_url": "https://api.github.com/users/Luca-Blight/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": 5859754349,
"node_id": "LA_kwDOIPDwls8AAAABXUTBbQ",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/pydantic",
"name": "pydantic",
"color": "C990BA",
"default": false,
"description": "Issues related to pydantic migration"
}
] |
open
| false | null |
[] | null | 10 | 2023-10-25T12:28:55 | 2023-10-26T19:36:04 | null |
NONE
| null |
### Feature request
Langchain is currently using Pydantic V1, and I believe it would be good to upgrade this to V2
### Motivation
V2 is far more performant than V1 because of the python-rust binding
### Your contribution
I can create a PR here.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12265/reactions",
"total_count": 3,
"+1": 2,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 1,
"eyes": 0
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12265/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12264
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12264/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12264/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12264/events
|
https://github.com/langchain-ai/langchain/issues/12264
| 1,961,177,348 |
I_kwDOIPDwls505TEE
| 12,264 |
Token limitation due to model's maximum context length
|
{
"login": "rsandeesh",
"id": 61399861,
"node_id": "MDQ6VXNlcjYxMzk5ODYx",
"avatar_url": "https://avatars.githubusercontent.com/u/61399861?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rsandeesh",
"html_url": "https://github.com/rsandeesh",
"followers_url": "https://api.github.com/users/rsandeesh/followers",
"following_url": "https://api.github.com/users/rsandeesh/following{/other_user}",
"gists_url": "https://api.github.com/users/rsandeesh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rsandeesh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rsandeesh/subscriptions",
"organizations_url": "https://api.github.com/users/rsandeesh/orgs",
"repos_url": "https://api.github.com/users/rsandeesh/repos",
"events_url": "https://api.github.com/users/rsandeesh/events{/privacy}",
"received_events_url": "https://api.github.com/users/rsandeesh/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 | 1 | 2023-10-25T11:34:43 | 2023-10-25T11:49:21 | null |
NONE
| null |
### System Info
I've been using the conversation chain to retrieve answers from gpt3.5, vertex ai chat-bison. For the user's memory I've been passing the session memory appended to the conversation chain. But once the token limit exceeds I'm getting this following error from the llm
`[chain/error] [1:chain:LLMChain > 2:llm:ChatOpenAI] [1.69s] Llm run errored with error:
"InvalidRequestError(message=\"This model's maximum context length is 4097 tokens. However, your messages resulted in 9961 tokens. Please reduce the length of the messages.\", param='messages', code='context_length_exceeded', http_status=400, request_id=None)"
[chain/error] [1:chain:LLMChain] [1.72s] Chain run errored with error:
"InvalidRequestError(message=\"This model's maximum context length is 4097 tokens. However, your messages resulted in 9961 tokens. Please reduce the length of the messages.\", param='messages', code='context_length_exceeded', http_status=400, request_id=None)"
`
### 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
- [X] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
Once you add history appended to the chain, with more than 4097 tokens this will appear.
### Expected behavior
The chat should work normally without any internal exception. Is there any langchain support for this issue?
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12264/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/12264/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12263
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12263/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12263/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12263/events
|
https://github.com/langchain-ai/langchain/issues/12263
| 1,961,161,745 |
I_kwDOIPDwls505PQR
| 12,263 |
ConversationalRetrievalChain returns sources to questions without context
|
{
"login": "DaveOkpare",
"id": 19241431,
"node_id": "MDQ6VXNlcjE5MjQxNDMx",
"avatar_url": "https://avatars.githubusercontent.com/u/19241431?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DaveOkpare",
"html_url": "https://github.com/DaveOkpare",
"followers_url": "https://api.github.com/users/DaveOkpare/followers",
"following_url": "https://api.github.com/users/DaveOkpare/following{/other_user}",
"gists_url": "https://api.github.com/users/DaveOkpare/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DaveOkpare/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DaveOkpare/subscriptions",
"organizations_url": "https://api.github.com/users/DaveOkpare/orgs",
"repos_url": "https://api.github.com/users/DaveOkpare/repos",
"events_url": "https://api.github.com/users/DaveOkpare/events{/privacy}",
"received_events_url": "https://api.github.com/users/DaveOkpare/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 | 0 | 2023-10-25T11:25:40 | 2023-11-07T19:35:17 | 2023-11-07T19:35:17 |
NONE
| null |
### Issue you'd like to raise.
`ConversationalRetrievalChain` returns sources to questions without relevant documents. The returned sources are not related to the question or the answer.
Example with relevant document:
```
chain = ConversationalRetrievalChain(
retriever=vectorstore.as_retriever(),
question_generator=question_generator,
combine_docs_chain=doc_chain,
)
chat_history = []
query = "What did the president say about Ketanji Brown Jackson"
result = chain({"question": query, "chat_history": chat_history})
result['answer']
"""
The president said that he nominated Circuit Court of Appeals Judge Ketanji Brown Jackson, who is one of the nation's top legal minds ...
SOURCES: /content/state_of_the_union.txt
```
Example without relevant document:
```
query = "How are you doing?"
result = chain({"question": query, "chat_history": chat_history})
result['answer']
"""
I'm doing well, thank you.
SOURCES: /content/state_of_the_union.txt
"""
```
Another example without relevant document:
```
query = "Who is Elon Musk?"
result = chain({"question": query, "chat_history": chat_history})
result['answer']
"""
I don't know.
SOURCES: /content/state_of_the_union.txt
"""
```
### Suggestion:
Sources should not be returned for questions without relevant documents.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12263/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/12263/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12262
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12262/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12262/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12262/events
|
https://github.com/langchain-ai/langchain/issues/12262
| 1,961,103,330 |
I_kwDOIPDwls505A_i
| 12,262 |
Issue: No module named 'langchain.vectorstores.azure_cosmos_db_vector_search'
|
{
"login": "premselvang",
"id": 26468444,
"node_id": "MDQ6VXNlcjI2NDY4NDQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/26468444?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/premselvang",
"html_url": "https://github.com/premselvang",
"followers_url": "https://api.github.com/users/premselvang/followers",
"following_url": "https://api.github.com/users/premselvang/following{/other_user}",
"gists_url": "https://api.github.com/users/premselvang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/premselvang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/premselvang/subscriptions",
"organizations_url": "https://api.github.com/users/premselvang/orgs",
"repos_url": "https://api.github.com/users/premselvang/repos",
"events_url": "https://api.github.com/users/premselvang/events{/privacy}",
"received_events_url": "https://api.github.com/users/premselvang/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 | 1 | 2023-10-25T10:51:32 | 2023-10-25T11:00:17 | null |
NONE
| null |
### Issue you'd like to raise.
I am getting below error while trying to use Azure Cosmos DB as vector store.
**_No module named 'langchain.vectorstores.azure_cosmos_db_vector_search'_**
### Suggestion:
_No response_
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12262/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/12262/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12260
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12260/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12260/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12260/events
|
https://github.com/langchain-ai/langchain/issues/12260
| 1,960,983,120 |
I_kwDOIPDwls504jpQ
| 12,260 |
InvalidRequestError: Unrecognized request argument supplied: functions
|
{
"login": "younes-io",
"id": 3153107,
"node_id": "MDQ6VXNlcjMxNTMxMDc=",
"avatar_url": "https://avatars.githubusercontent.com/u/3153107?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/younes-io",
"html_url": "https://github.com/younes-io",
"followers_url": "https://api.github.com/users/younes-io/followers",
"following_url": "https://api.github.com/users/younes-io/following{/other_user}",
"gists_url": "https://api.github.com/users/younes-io/gists{/gist_id}",
"starred_url": "https://api.github.com/users/younes-io/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/younes-io/subscriptions",
"organizations_url": "https://api.github.com/users/younes-io/orgs",
"repos_url": "https://api.github.com/users/younes-io/repos",
"events_url": "https://api.github.com/users/younes-io/events{/privacy}",
"received_events_url": "https://api.github.com/users/younes-io/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 | 2 | 2023-10-25T09:45:12 | 2023-10-25T14:30:45 | 2023-10-25T14:30:44 |
NONE
| null |
### System Info
Python 3.11.4
LangChain 0.0.321
Platform info (WSL2):
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
### Who can help?
_No response_
### Information
- [X] 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
- [X] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
This is my code (based on https://python.langchain.com/docs/use_cases/question_answering/conversational_retrieval_agents and modified to use AzureOpenAI and OpenSearch):
```pyhton
import os
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.chat_models.azure_openai import AzureChatOpenAI
from langchain.vectorstores.opensearch_vector_search import OpenSearchVectorSearch
from langchain.memory import ConversationTokenBufferMemory
from langchain.prompts import (
ChatPromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate,
)
from langchain.chains import ConversationalRetrievalChain
# Load environment variables
host = os.environ['HOST']
auth = os.environ['AUTH_PASS']
index_uk = os.environ['INDEX_NAME_UK']
opensearch_url = os.environ['OPENSEARCH_URL']
embedding_model = os.environ['EMBEDDING_MODEL']
model_name = os.environ['MODEL_NAME']
openai_api_base = os.environ['OPENAI_API_BASE']
openai_api_key = os.environ['OPENAI_API_KEY']
openai_api_type = os.environ['OPENAI_API_TYPE']
openai_api_version = os.environ['OPENAI_API_VERSION']
# Define Azure OpenAI component
llm = AzureChatOpenAI(
openai_api_key = openai_api_key,
openai_api_base = openai_api_base,
openai_api_type = openai_api_type,
openai_api_version = openai_api_version,
deployment_name = model_name,
temperature=0
)
# Define Memory component for chat history
memory = ConversationTokenBufferMemory(llm=llm,memory_key="chat_history",return_messages=True, max_token_limit=1000)
# Build a Retriever
embeddings = OpenAIEmbeddings(deployment=embedding_model, chunk_size=1)
docsearch = OpenSearchVectorSearch(index_name=index_uk, embedding_function=embeddings,opensearch_url=opensearch_url, http_auth=('admin', auth))
doc_retriever = docsearch.as_retriever()
# Build a retrieval tool
from langchain.agents.agent_toolkits import create_retriever_tool
tool = create_retriever_tool(
doc_retriever,
"search_hr_documents",
"Searches and returns documents regarding HR questions."
)
tools = [tool]
# Build an Agent Constructor
from langchain.agents.agent_toolkits import create_conversational_retrieval_agent
agent_executor = create_conversational_retrieval_agent(llm, tools, verbose=True)
result = agent_executor({"input": "hi, im bob"})
```
When I execute it, it generates the log error below:
```
InvalidRequestError Traceback (most recent call last)
[c:\k8s-developer\git\lambda-hr-docQA\conv_retrieval_tool.ipynb](file:///C:/k8s-developer/git/lambda-hr-docQA/conv_retrieval_tool.ipynb) Cell 3 line 6
[58](vscode-notebook-cell:/c%3A/k8s-developer/git/lambda-hr-docQA/conv_retrieval_tool.ipynb#W2sZmlsZQ%3D%3D?line=57) from langchain.agents.agent_toolkits import create_conversational_retrieval_agent
[59](vscode-notebook-cell:/c%3A/k8s-developer/git/lambda-hr-docQA/conv_retrieval_tool.ipynb#W2sZmlsZQ%3D%3D?line=58) agent_executor = create_conversational_retrieval_agent(llm, tools, verbose=True)
---> [61](vscode-notebook-cell:/c%3A/k8s-developer/git/lambda-hr-docQA/conv_retrieval_tool.ipynb#W2sZmlsZQ%3D%3D?line=60) result = agent_executor({"input": "hi, im bob"})
File [c:\Users\fezzef\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\chains\base.py:310](file:///C:/Users/fezzef/AppData/Local/Programs/Python/Python311/Lib/site-packages/langchain/chains/base.py:310), in Chain.__call__(self, inputs, return_only_outputs, callbacks, tags, metadata, run_name, include_run_info)
308 except BaseException as e:
309 run_manager.on_chain_error(e)
--> 310 raise e
311 run_manager.on_chain_end(outputs)
312 final_outputs: Dict[str, Any] = self.prep_outputs(
313 inputs, outputs, return_only_outputs
314 )
File [c:\Users\fezzef\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain\agents\openai_functions_agent\base.py:104](file:///C:/Users/fezzef/AppData/Local/Programs/Python/Python311/Lib/site-packages/langchain/agents/openai_functions_agent/base.py:104), in OpenAIFunctionsAgent.plan(self, intermediate_steps, callbacks, with_functions, **kwargs)
102 messages = prompt.to_messages()
103 if with_functions:
--> 104 predicted_message = self.llm.predict_messages(
105 messages,
106 functions=self.functions,
107 callbacks=callbacks,
108 )
109 else:
110 predicted_message = self.llm.predict_messages(
111 messages,
112 callbacks=callbacks,
113 )
InvalidRequestError: Unrecognized request argument supplied: functions
```
I suspect the `OpenAIFunctionsAgent` is not compatible with AzureOpenAI. I'm not sure. Please check and let me know.
### Expected behavior
It should be getting a response but LangChain throws an error
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12260/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/12260/timeline
| null |
completed
| null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12259
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12259/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12259/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12259/events
|
https://github.com/langchain-ai/langchain/pull/12259
| 1,960,951,670 |
PR_kwDOIPDwls5dusL7
| 12,259 |
Add quip loader
|
{
"login": "shufanhao",
"id": 11540660,
"node_id": "MDQ6VXNlcjExNTQwNjYw",
"avatar_url": "https://avatars.githubusercontent.com/u/11540660?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shufanhao",
"html_url": "https://github.com/shufanhao",
"followers_url": "https://api.github.com/users/shufanhao/followers",
"following_url": "https://api.github.com/users/shufanhao/following{/other_user}",
"gists_url": "https://api.github.com/users/shufanhao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shufanhao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shufanhao/subscriptions",
"organizations_url": "https://api.github.com/users/shufanhao/orgs",
"repos_url": "https://api.github.com/users/shufanhao/repos",
"events_url": "https://api.github.com/users/shufanhao/events{/privacy}",
"received_events_url": "https://api.github.com/users/shufanhao/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": 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 | 7 | 2023-10-25T09:28:02 | 2023-11-01T05:29:13 | 2023-10-31T21:11:24 |
CONTRIBUTOR
| null |
- **Description:** implement [quip](https://quip.com) loader
- **Issue:** https://github.com/langchain-ai/langchain/issues/10352
- **Dependencies:** No
- pass make format, make lint, make test
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12259/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/12259/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12259",
"html_url": "https://github.com/langchain-ai/langchain/pull/12259",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12259.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12259.patch",
"merged_at": "2023-10-31T21:11:24"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12257
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12257/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12257/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12257/events
|
https://github.com/langchain-ai/langchain/issues/12257
| 1,960,921,158 |
I_kwDOIPDwls504UhG
| 12,257 |
Returning detailed results of intermediate components
|
{
"login": "DanielRoeder1",
"id": 63744748,
"node_id": "MDQ6VXNlcjYzNzQ0NzQ4",
"avatar_url": "https://avatars.githubusercontent.com/u/63744748?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DanielRoeder1",
"html_url": "https://github.com/DanielRoeder1",
"followers_url": "https://api.github.com/users/DanielRoeder1/followers",
"following_url": "https://api.github.com/users/DanielRoeder1/following{/other_user}",
"gists_url": "https://api.github.com/users/DanielRoeder1/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DanielRoeder1/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DanielRoeder1/subscriptions",
"organizations_url": "https://api.github.com/users/DanielRoeder1/orgs",
"repos_url": "https://api.github.com/users/DanielRoeder1/repos",
"events_url": "https://api.github.com/users/DanielRoeder1/events{/privacy}",
"received_events_url": "https://api.github.com/users/DanielRoeder1/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": 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"
},
{
"id": 6134259614,
"node_id": "LA_kwDOIPDwls8AAAABbaFfng",
"url": "https://api.github.com/repos/langchain-ai/langchain/labels/area:%20lcel",
"name": "area: lcel",
"color": "38B1E8",
"default": false,
"description": ""
}
] |
open
| false | null |
[] | null | 2 | 2023-10-25T09:11:34 | 2023-10-26T20:54:51 | null |
NONE
| null |
### Issue you'd like to raise.
I am currently using a chain with the following components:
FewshotPrompt ( with SemanticSimilarityExampleSelector) -> LLM -> Outputparser
By default, this will give me the parsed text output of my LLM.
For my purposes, I would need the output of this chain to include all intermediate steps (preferably in a dict).
For this chain that would be:
1. The samples selected by the Example Selector
2. The generated Fewshot Prompt
3. The raw LLM output
4. The parsed LLM output
From the documentation, it is not apparent to me how this could be achieved with the current state of the library.
(The documentation also does not outline details about the usage of Callbacks in the LCEL language)
### Suggestion:
If this is currently implemented then add a simple example to the documentation. If this is not the case then some type of callback that allows collecting this data from intermediate steps should be added.
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12257/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/12257/timeline
| null | null | null | null |
https://api.github.com/repos/langchain-ai/langchain/issues/12255
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12255/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12255/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12255/events
|
https://github.com/langchain-ai/langchain/pull/12255
| 1,960,801,148 |
PR_kwDOIPDwls5duLiT
| 12,255 |
Add serialisation props to Fireworks and ChatFireworks
|
{
"login": "dqbd",
"id": 1443449,
"node_id": "MDQ6VXNlcjE0NDM0NDk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1443449?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dqbd",
"html_url": "https://github.com/dqbd",
"followers_url": "https://api.github.com/users/dqbd/followers",
"following_url": "https://api.github.com/users/dqbd/following{/other_user}",
"gists_url": "https://api.github.com/users/dqbd/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dqbd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dqbd/subscriptions",
"organizations_url": "https://api.github.com/users/dqbd/orgs",
"repos_url": "https://api.github.com/users/dqbd/repos",
"events_url": "https://api.github.com/users/dqbd/events{/privacy}",
"received_events_url": "https://api.github.com/users/dqbd/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-10-25T08:07:10 | 2023-10-25T10:41:34 | 2023-10-25T10:41:33 |
CONTRIBUTOR
| null | null |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12255/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/12255/timeline
| null | null | false |
{
"url": "https://api.github.com/repos/langchain-ai/langchain/pulls/12255",
"html_url": "https://github.com/langchain-ai/langchain/pull/12255",
"diff_url": "https://github.com/langchain-ai/langchain/pull/12255.diff",
"patch_url": "https://github.com/langchain-ai/langchain/pull/12255.patch",
"merged_at": "2023-10-25T10:41:33"
}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12254
|
https://api.github.com/repos/langchain-ai/langchain
|
https://api.github.com/repos/langchain-ai/langchain/issues/12254/labels{/name}
|
https://api.github.com/repos/langchain-ai/langchain/issues/12254/comments
|
https://api.github.com/repos/langchain-ai/langchain/issues/12254/events
|
https://github.com/langchain-ai/langchain/issues/12254
| 1,960,713,093 |
I_kwDOIPDwls503huF
| 12,254 |
User based memorization
|
{
"login": "ankitathakur12",
"id": 135828817,
"node_id": "U_kgDOCBiVUQ",
"avatar_url": "https://avatars.githubusercontent.com/u/135828817?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ankitathakur12",
"html_url": "https://github.com/ankitathakur12",
"followers_url": "https://api.github.com/users/ankitathakur12/followers",
"following_url": "https://api.github.com/users/ankitathakur12/following{/other_user}",
"gists_url": "https://api.github.com/users/ankitathakur12/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ankitathakur12/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ankitathakur12/subscriptions",
"organizations_url": "https://api.github.com/users/ankitathakur12/orgs",
"repos_url": "https://api.github.com/users/ankitathakur12/repos",
"events_url": "https://api.github.com/users/ankitathakur12/events{/privacy}",
"received_events_url": "https://api.github.com/users/ankitathakur12/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": 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"
}
] |
open
| false | null |
[] | null | 3 | 2023-10-25T07:15:18 | 2023-10-25T09:36:59 | null |
NONE
| null |
### System Info
How i can implement user based memorization please can provide a link for refrence
### 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
- [X] Memory
- [ ] Agents / Agent Executors
- [ ] Tools / Toolkits
- [ ] Chains
- [ ] Callbacks/Tracing
- [ ] Async
### Reproduction
How i can implement user based memorization please can provide a link for refrence
### Expected behavior
How i can implement user based memorization please can provide a link for refrence
|
{
"url": "https://api.github.com/repos/langchain-ai/langchain/issues/12254/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/12254/timeline
| null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.