mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
[Community][minor]: Added langchain_version while calling discover API (#24428)
- **Description:** Added langchain version while calling discover API during both ingestion and retrieval - **Issue:** NA - **Dependencies:** NA - **Tests:** NA - **Docs** NA --------- Co-authored-by: dristy.cd <dristy@clouddefense.io>
This commit is contained in:
committed by
GitHub
parent
fbb4761199
commit
7205057c3e
@@ -3,6 +3,7 @@
|
||||
import logging
|
||||
import os
|
||||
import uuid
|
||||
from importlib.metadata import version
|
||||
from typing import Dict, Iterator, List, Optional
|
||||
|
||||
from langchain_core.documents import Document
|
||||
@@ -12,6 +13,7 @@ from langchain_community.utilities.pebblo import (
|
||||
BATCH_SIZE_BYTES,
|
||||
PLUGIN_VERSION,
|
||||
App,
|
||||
Framework,
|
||||
IndexedDocument,
|
||||
PebbloLoaderAPIWrapper,
|
||||
generate_size_based_batches,
|
||||
@@ -175,6 +177,10 @@ class PebbloSafeLoader(BaseLoader):
|
||||
runtime=runtime,
|
||||
framework=framework,
|
||||
plugin_version=PLUGIN_VERSION,
|
||||
client_version=Framework(
|
||||
name="langchain_community",
|
||||
version=version("langchain_community"),
|
||||
),
|
||||
)
|
||||
return app
|
||||
|
||||
|
Reference in New Issue
Block a user