text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
from langchain_community.chat_message_histories.cosmos_db import ( CosmosDBChatMessageHistory, ) __all__ = ["CosmosDBChatMessageHistory"]
langchain/libs/langchain/langchain/memory/chat_message_histories/cosmos_db.py/0
{ "file_path": "langchain/libs/langchain/langchain/memory/chat_message_histories/cosmos_db.py", "repo_id": "langchain", "token_count": 46 }
519
"""Index registry.""" from typing import Dict, Type from llama_index.legacy.data_structs.data_structs import ( KG, EmptyIndexStruct, IndexDict, IndexGraph, IndexList, IndexStruct, KeywordTable, MultiModelIndexDict, ) from llama_index.legacy.data_structs.document_summary import IndexDoc...
llama_index/llama-index-legacy/llama_index/legacy/data_structs/registry.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/data_structs/registry.py", "repo_id": "llama_index", "token_count": 376 }
1,507
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/ko/accelerate.md/0
{ "file_path": "transformers/docs/source/ko/accelerate.md", "repo_id": "transformers", "token_count": 2885 }
528
<jupyter_start><jupyter_text>Hybrid Fusion Retriever PackThis LlamaPack provides an example of our hybrid fusion retriever pack.<jupyter_code>!pip install llama-index llama-hub rank-bm25 import nest_asyncio nest_asyncio.apply()<jupyter_output><empty_output><jupyter_text>Setup Data<jupyter_code>!wget "https://www.dropb...
llama_index/llama-index-packs/llama-index-packs-fusion-retriever/examples/hybrid_fusion/hybrid_fusion.ipynb/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-fusion-retriever/examples/hybrid_fusion/hybrid_fusion.ipynb", "repo_id": "llama_index", "token_count": 625 }
1,786
"""Module contains a PDF parser based on Document AI from Google Cloud. You need to install two libraries to use this parser: pip install google-cloud-documentai pip install google-cloud-documentai-toolbox """ import logging import re import time from dataclasses import dataclass from typing import TYPE_CHECKING, Iter...
langchain/libs/community/langchain_community/document_loaders/parsers/docai.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/docai.py", "repo_id": "langchain", "token_count": 7073 }
243
<jupyter_start><jupyter_text>Custom LLMThis notebook goes over how to create a custom LLM wrapper, in case you want to use your own LLM or a different wrapper than one that is supported in LangChain.There are only two required things that a custom LLM needs to implement:- A `_call` method that takes in a string, some o...
langchain/docs/docs/modules/model_io/llms/custom_llm.ipynb/0
{ "file_path": "langchain/docs/docs/modules/model_io/llms/custom_llm.ipynb", "repo_id": "langchain", "token_count": 612 }
211
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/en/model_doc/funnel.md/0
{ "file_path": "transformers/docs/source/en/model_doc/funnel.md", "repo_id": "transformers", "token_count": 1879 }
490
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/rootcoord/show_collection_task_test.go/0
{ "file_path": "milvus/internal/rootcoord/show_collection_task_test.go", "repo_id": "milvus", "token_count": 1110 }
1,781
import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import { AIMessage, BaseMessage } from "@langchain/core/messages"; import { ChatResult, ChatGeneration } from "@langchain/core/outputs"; import { BaseChatModel } from "@langchain/core/language_models/chat_models"; import { getEnvironmentVaria...
langchainjs/libs/langchain-community/src/chat_models/yandex.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/chat_models/yandex.ts", "repo_id": "langchainjs", "token_count": 1454 }
965
# RaycastAI > **Note:** This is a community-built integration and is not officially supported by Raycast. You can utilize the LangChain's RaycastAI class within the [Raycast Environment](https://developers.raycast.com/api-reference/ai) to enhance your Raycast extension with Langchain's capabilities. - The RaycastAI ...
langchainjs/docs/core_docs/docs/integrations/llms/raycast.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/integrations/llms/raycast.mdx", "repo_id": "langchainjs", "token_count": 332 }
738
poetry_requirements( name="poetry", )
llama_index/llama-index-integrations/readers/llama-index-readers-txtai/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-txtai/BUILD", "repo_id": "llama_index", "token_count": 18 }
1,452
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js"; /* #__PURE__ */ logVersion010MigrationWarning({ oldEntrypointName: "callbacks", newEntrypointName: "callbacks/base", newPackageName: "@langchain/core", }); export * from "@langchain/core/callbacks/base";
langchainjs/langchain/src/callbacks/base.ts/0
{ "file_path": "langchainjs/langchain/src/callbacks/base.ts", "repo_id": "langchainjs", "token_count": 94 }
886
#!/usr/bin/env bash # Use this script as follows ./download_from_gcp.sh /path/to/folder/to/store/downloads folder_to_store_downloads=${1} # Replace by gcp_path to T5 cloud bucket folder here # To download the official `t5-small` model of https://github.com/google-research/text-to-text-transfer-transformer#released-mod...
transformers/src/transformers/models/t5/download_from_gcp.sh/0
{ "file_path": "transformers/src/transformers/models/t5/download_from_gcp.sh", "repo_id": "transformers", "token_count": 579 }
685
from langchain_community.llms import Replicate from langchain_core.prompts import ChatPromptTemplate # LLM replicate_id = "andreasjansson/llama-2-13b-chat-gguf:60ec5dda9ff9ee0b6f786c9d1157842e6ab3cc931139ad98fe99e08a35c5d4d4" # noqa: E501 model = Replicate( model=replicate_id, model_kwargs={"temperature": 0.8...
langchain/templates/llama2-functions/llama2_functions/chain.py/0
{ "file_path": "langchain/templates/llama2-functions/llama2_functions/chain.py", "repo_id": "langchain", "token_count": 521 }
658
import { InputValues, MemoryVariables } from "@langchain/core/memory"; import { getBufferString } from "@langchain/core/messages"; import { BaseChatMemory, BaseChatMemoryInput, } from "@langchain/community/memory/chat_memory"; /** * Interface for the input parameters of the BufferWindowMemory class. */ export in...
langchainjs/langchain/src/memory/buffer_window_memory.ts/0
{ "file_path": "langchainjs/langchain/src/memory/buffer_window_memory.ts", "repo_id": "langchainjs", "token_count": 1019 }
998
import json from typing import Optional, Type from langchain_core.callbacks import AsyncCallbackManagerForToolRun from langchain_core.pydantic_v1 import BaseModel, Field from langchain_community.tools.ainetwork.base import AINBaseTool class TransferSchema(BaseModel): """Schema for transfer operations.""" a...
langchain/libs/community/langchain_community/tools/ainetwork/transfer.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/ainetwork/transfer.py", "repo_id": "langchain", "token_count": 391 }
282
package proxy import ( "context" "fmt" "io" "github.com/cockroachdb/errors" "github.com/golang/protobuf/proto" "go.opentelemetry.io/otel" "go.uber.org/atomic" "go.uber.org/zap" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb" "github.com/milvus-...
milvus/internal/proxy/task_delete.go/0
{ "file_path": "milvus/internal/proxy/task_delete.go", "repo_id": "milvus", "token_count": 6711 }
1,745
[build-system] build-backend = "poetry.core.masonry.api" requires = ["poetry-core"] [tool.codespell] check-filenames = true check-hidden = true skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb" [tool.llamahub] classes = ["MacrometaGDNReader"] contains_example = false import_path = "llama_index.readers.macromet...
llama_index/llama-index-integrations/readers/llama-index-readers-macrometa-gdn/pyproject.toml/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-macrometa-gdn/pyproject.toml", "repo_id": "llama_index", "token_count": 666 }
1,473
import multiprocessing import numbers import random import numpy import threading import pytest import pandas as pd import decimal from decimal import Decimal, getcontext from time import sleep import heapq from base.client_base import TestcaseBase from utils.util_log import test_log as log from common import common_f...
milvus/tests/python_client/milvus_client/test_milvus_client_search.py/0
{ "file_path": "milvus/tests/python_client/milvus_client/test_milvus_client_search.py", "repo_id": "milvus", "token_count": 11239 }
2,184
# Intercom Loader This loader fetches the text from Intercom help articles using the Intercom API. It also uses the BeautifulSoup library to parse the HTML and extract the text from the articles. ## Usage To use this loader, you need to pass in an Intercom account access token. ```python from llama_index import dow...
llama_index/llama-index-integrations/readers/llama-index-readers-intercom/README.md/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-intercom/README.md", "repo_id": "llama_index", "token_count": 235 }
1,415
from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _M...
chroma/chromadb/proto/chroma_pb2.pyi/0
{ "file_path": "chroma/chromadb/proto/chroma_pb2.pyi", "repo_id": "chroma", "token_count": 3349 }
19
# langchain-nvidia-trt
langchain/libs/partners/nvidia-trt/README.md/0
{ "file_path": "langchain/libs/partners/nvidia-trt/README.md", "repo_id": "langchain", "token_count": 10 }
633
"""Utilities to init Vertex AI.""" import dataclasses from importlib import metadata from typing import Any, Callable, Dict, Optional, Union import google.api_core import proto # type: ignore[import-untyped] from google.api_core.gapic_v1.client_info import ClientInfo from google.cloud import storage # type: ignore[...
langchain/libs/partners/google-vertexai/langchain_google_vertexai/_utils.py/0
{ "file_path": "langchain/libs/partners/google-vertexai/langchain_google_vertexai/_utils.py", "repo_id": "langchain", "token_count": 1834 }
623
"""Jira Tool."""
langchain/libs/langchain/langchain/tools/jira/__init__.py/0
{ "file_path": "langchain/libs/langchain/langchain/tools/jira/__init__.py", "repo_id": "langchain", "token_count": 7 }
555
[ { "details": { "best_of_sequences": null, "finish_reason": "length", "generated_tokens": 10, "prefill": [ { "id": 589, "logprob": null, "text": "def" }, { "id": 3226, "logprob": -8.5859375, "text": " ge" ...
text-generation-inference/integration-tests/models/__snapshots__/test_flash_starcoder_gptq/test_flash_starcoder_gptq_load.json/0
{ "file_path": "text-generation-inference/integration-tests/models/__snapshots__/test_flash_starcoder_gptq/test_flash_starcoder_gptq_load.json", "repo_id": "text-generation-inference", "token_count": 7553 }
426
{ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, "iso...
opengpts/frontend/tsconfig.json/0
{ "file_path": "opengpts/frontend/tsconfig.json", "repo_id": "opengpts", "token_count": 258 }
2,061
# coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
transformers/src/transformers/models/bros/convert_bros_to_pytorch.py/0
{ "file_path": "transformers/src/transformers/models/bros/convert_bros_to_pytorch.py", "repo_id": "transformers", "token_count": 2040 }
616
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/rootcoord/alter_collection_task.go/0
{ "file_path": "milvus/internal/rootcoord/alter_collection_task.go", "repo_id": "milvus", "token_count": 1011 }
1,859
from extraction_anthropic_functions.chain import chain __all__ = ["chain"]
langchain/templates/extraction-anthropic-functions/extraction_anthropic_functions/__init__.py/0
{ "file_path": "langchain/templates/extraction-anthropic-functions/extraction_anthropic_functions/__init__.py", "repo_id": "langchain", "token_count": 22 }
635
build_performance: collections: - server: db_config.primary_path: /test/milvus/db_data_011/sift_10m_128_ip_hnsw cache_config.cpu_cache_capacity: 8GB gpu_resource_config.enable: false collection_name: sift_10m_128_ip index_type: hnsw index_param: M: 48 ...
milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_build_hnsw.yaml/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_build_hnsw.yaml", "repo_id": "milvus", "token_count": 167 }
1,999
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
trl/trl/models/modeling_base.py/0
{ "file_path": "trl/trl/models/modeling_base.py", "repo_id": "trl", "token_count": 13121 }
887
# candle-t5 ## Encoder-decoder example: ```bash $ cargo run --example t5 --release -- --model-id "t5-small" --prompt "translate to German: A beautiful candle." --decode ... Eine schรถne Kerze. 9 tokens generated (2.42 token/s) ``` Variants such as [flan-t5](https://huggingface.co/google/flan-t5-small), [flan-ul2](ht...
candle/candle-examples/examples/t5/README.md/0
{ "file_path": "candle/candle-examples/examples/t5/README.md", "repo_id": "candle", "token_count": 608 }
44
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export4.dtd"> <en-export export-date="20230611T011239Z" application="Evernote" version="10.56.9"> <note> <title>Summer Training Program</title> <created>20221227T015948Z</created> <source>...
langchain/libs/community/tests/unit_tests/document_loaders/sample_documents/sample_notebook_emptynote.enex/0
{ "file_path": "langchain/libs/community/tests/unit_tests/document_loaders/sample_documents/sample_notebook_emptynote.enex", "repo_id": "langchain", "token_count": 230 }
399
from __future__ import annotations from typing import Any, Dict, Iterator, List, Optional from langchain_core.callbacks import CallbackManagerForLLMRun from langchain_core.language_models.llms import LLM from langchain_core.outputs import GenerationChunk from langchain_core.pydantic_v1 import BaseModel, Field, Secret...
langchain/libs/community/langchain_community/llms/volcengine_maas.py/0
{ "file_path": "langchain/libs/community/langchain_community/llms/volcengine_maas.py", "repo_id": "langchain", "token_count": 2801 }
283
<jupyter_start><jupyter_text>OpenLLM[๐Ÿฆพ OpenLLM](https://github.com/bentoml/OpenLLM) is an open platform for operating large language models (LLMs) in production. It enables developers to easily run inference with any open-source LLMs, deploy to the cloud or on-premises, and build powerful AI apps. InstallationInstall...
langchain/docs/docs/integrations/llms/openllm.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/llms/openllm.ipynb", "repo_id": "langchain", "token_count": 615 }
129
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
diffusers/src/diffusers/schedulers/deprecated/__init__.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/deprecated/__init__.py", "repo_id": "diffusers", "token_count": 555 }
255
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
milvus/internal/core/unittest/test_timestamp_index.cpp/0
{ "file_path": "milvus/internal/core/unittest/test_timestamp_index.cpp", "repo_id": "milvus", "token_count": 805 }
1,822
import { AssemblyAI, BaseServiceParams, TranscribeParams, SubtitleFormat, Transcript, TranscriptParagraph, TranscriptSentence, CreateTranscriptParameters, } from "assemblyai"; import { Document } from "@langchain/core/documents"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; import...
langchainjs/langchain/src/document_loaders/web/assemblyai.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/web/assemblyai.ts", "repo_id": "langchainjs", "token_count": 2417 }
870
import argparse import logging import os import random import sys import numpy as np import torch from datasets import load_from_disk, load_metric from transformers import AutoModelForSequenceClassification, AutoTokenizer, Trainer, TrainingArguments from transformers.trainer_utils import get_last_checkpoint if __name...
notebooks/sagemaker/14_train_and_push_to_hub/scripts/train.py/0
{ "file_path": "notebooks/sagemaker/14_train_and_push_to_hub/scripts/train.py", "repo_id": "notebooks", "token_count": 1998 }
315
from langchain_community.llms.clarifai import Clarifai __all__ = ["Clarifai"]
langchain/libs/langchain/langchain/llms/clarifai.py/0
{ "file_path": "langchain/libs/langchain/langchain/llms/clarifai.py", "repo_id": "langchain", "token_count": 29 }
559
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
accelerate/src/accelerate/logging.py/0
{ "file_path": "accelerate/src/accelerate/logging.py", "repo_id": "accelerate", "token_count": 1789 }
10
import { AIMessage } from "@langchain/core/messages"; import { StringOutputParser } from "@langchain/core/output_parsers"; const outputParser = new StringOutputParser(); const message = new AIMessage( 'Sure, here you go: Why did the ice cream go to school? Because it wanted to get a little "sundae" education!' ); co...
langchainjs/examples/src/guides/expression_language/get_started/output_parser.ts/0
{ "file_path": "langchainjs/examples/src/guides/expression_language/get_started/output_parser.ts", "repo_id": "langchainjs", "token_count": 146 }
820
from langchain_community.llms.bananadev import Banana __all__ = ["Banana"]
langchain/libs/langchain/langchain/llms/bananadev.py/0
{ "file_path": "langchain/libs/langchain/langchain/llms/bananadev.py", "repo_id": "langchain", "token_count": 26 }
558
import multiprocessing import numbers import random import numpy import threading import pytest import pandas as pd import decimal from decimal import Decimal, getcontext from time import sleep import heapq from base.client_base import TestcaseBase from utils.util_log import test_log as log from common import common_f...
milvus/tests/python_client/testcases/test_high_level_api.py/0
{ "file_path": "milvus/tests/python_client/testcases/test_high_level_api.py", "repo_id": "milvus", "token_count": 7814 }
2,007
"""Init file."""
llama_index/llama-index-legacy/tests/playground/__init__.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/playground/__init__.py", "repo_id": "llama_index", "token_count": 6 }
1,752
"""Client server that interacts with the main server via a remote runnable. This server sets up a simple proxy to the main server. It uses the RemoteRunnable to interact with the main server. The main server is expected to be running at http://localhost:8123. A client server will likely end up doing something more cl...
langserve/examples/multiple_servers/client_server.py/0
{ "file_path": "langserve/examples/multiple_servers/client_server.py", "repo_id": "langserve", "token_count": 298 }
1,126
# Google Vertex AI Langchain.js supports two different authentication methods based on whether you're running in a Node.js environment or a web environment. ## Setup ### Node.js To call Vertex AI models in Node, you'll need to install [Google's official auth client](https://www.npmjs.com/package/google-auth-library...
langchainjs/docs/core_docs/docs/integrations/llms/google_vertex_ai.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/integrations/llms/google_vertex_ai.mdx", "repo_id": "langchainjs", "token_count": 928 }
763
## ็ณป็ปŸ้…็ฝฎ Milvus ่ƒฝๅคŸ้€š่ฟ‡้…็ฝฎๆ–‡ไปถใ€ๅ‘ฝไปค่กŒ้€‰้กนใ€็Žฏๅขƒๅ˜้‡่ฟ›่กŒ้…็ฝฎใ€‚ ไผ˜ๅ…ˆ็บง้กบๅบ๏ผš ๅ‘ฝไปค่กŒ้€‰้กน > ็Žฏๅขƒๅ˜้‡ > ้…็ฝฎๆ–‡ไปถ > ้ป˜่ฎคๅ€ผ ๅฆ‚ๆžœๆไพ›ไบ†้…็ฝฎๆ–‡ไปถ๏ผŒๅˆ™ๅ…ถไป–็š„ๅ‘ฝไปค่กŒ้€‰้กนๅ’Œ็Žฏๅขƒๅ˜้‡้ƒฝๅฐ†่ขซๅฟฝ็•ฅใ€‚ ไพ‹ๅฆ‚๏ผš `milvus run rootcoord --config-file milvus.yaml --log-level debug` ๅฐ†ๅฟฝ็•ฅ `--log-level` ้€‰้กนใ€‚ ### ่ฏญๆณ• ๅœจๆŽงๅˆถๅฐไธญไฝฟ็”จไปฅไธ‹่ฏญๆณ•่ฟ่กŒ `milvus` ๅ‘ฝไปค๏ผš ```shell $ milvus [command] [server type] [flags] ``` ไพ‹ๅฆ‚๏ผš ```shell $ MILVUS_CONFI...
milvus/docs/developer_guides/appendix_c_system_configurations.md/0
{ "file_path": "milvus/docs/developer_guides/appendix_c_system_configurations.md", "repo_id": "milvus", "token_count": 3350 }
1,724
python_sources()
llama_index/llama-index-core/llama_index/core/indices/keyword_table/BUILD/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/indices/keyword_table/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,122
from abc import ABC, abstractmethod from typing import Iterator, List from langchain_core.chat_sessions import ChatSession class BaseChatLoader(ABC): """Base class for chat loaders.""" @abstractmethod def lazy_load(self) -> Iterator[ChatSession]: """Lazy load the chat sessions.""" def load(...
langchain/libs/community/langchain_community/chat_loaders/base.py/0
{ "file_path": "langchain/libs/community/langchain_community/chat_loaders/base.py", "repo_id": "langchain", "token_count": 150 }
238
from langchain_community.chat_models.cohere import ( ChatCohere, ) __all__ = ["ChatCohere"]
langchain/libs/langchain/langchain/chat_models/cohere.py/0
{ "file_path": "langchain/libs/langchain/langchain/chat_models/cohere.py", "repo_id": "langchain", "token_count": 36 }
473
<jupyter_start><jupyter_text>Accelerate BERT Inference with Hugging Face Transformers and AWS inferentia In this end-to-end tutorial, you will learn how to speed up BERT inference for text classification with Hugging Face Transformers, Amazon SageMaker, and AWS Inferentia. You will learn how to: 1. Convert your Hugging...
notebooks/sagemaker/18_inferentia_inference/sagemaker-notebook.ipynb/0
{ "file_path": "notebooks/sagemaker/18_inferentia_inference/sagemaker-notebook.ipynb", "repo_id": "notebooks", "token_count": 3902 }
313
from typing import Optional, Type from langchain_core.callbacks import CallbackManagerForToolRun from langchain_core.pydantic_v1 import BaseModel from langchain_core.tools import BaseTool from langchain_community.utilities.polygon import PolygonAPIWrapper class Inputs(BaseModel): """Inputs for Polygon's Last Qu...
langchain/libs/community/langchain_community/tools/polygon/last_quote.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/polygon/last_quote.py", "repo_id": "langchain", "token_count": 380 }
293
from langchain_community.document_loaders.parsers.html.bs4 import BS4HTMLParser __all__ = ["BS4HTMLParser"]
langchain/libs/community/langchain_community/document_loaders/parsers/html/__init__.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/html/__init__.py", "repo_id": "langchain", "token_count": 37 }
262
use super::common::{AttnBlock, ResBlock, TimestepBlock}; use candle::{DType, Result, Tensor, D}; use candle_nn::VarBuilder; #[derive(Debug)] struct Block { res_block: ResBlock, ts_block: TimestepBlock, attn_block: AttnBlock, } #[derive(Debug)] pub struct WPrior { projection: candle_nn::Conv2d, con...
candle/candle-transformers/src/models/wuerstchen/prior.rs/0
{ "file_path": "candle/candle-transformers/src/models/wuerstchen/prior.rs", "repo_id": "candle", "token_count": 1920 }
70
import { AttributeFilter, DocumentAttribute, DocumentAttributeValue, KendraClient, KendraClientConfig, QueryCommand, QueryCommandOutput, QueryResultItem, RetrieveCommand, RetrieveCommandOutput, RetrieveResultItem, } from "@aws-sdk/client-kendra"; import { BaseRetriever } from "@langchain/core/ret...
langchainjs/libs/langchain-community/src/retrievers/amazon_kendra.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/retrievers/amazon_kendra.ts", "repo_id": "langchainjs", "token_count": 3188 }
989
# coding=utf-8 # Copyright 2020 Ecole Polytechnique and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
transformers/src/transformers/models/barthez/tokenization_barthez.py/0
{ "file_path": "transformers/src/transformers/models/barthez/tokenization_barthez.py", "repo_id": "transformers", "token_count": 5451 }
583
# Agents You can pass a Runnable into an agent. Building an agent from a runnable usually involves a few things: 1. Data processing for the intermediate steps (`agent_scratchpad`). These need to represented in a way that the language model can recognize them. This should be pretty tightly coupled to the instructions...
langchainjs/docs/core_docs/docs/expression_language/cookbook/agents.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/expression_language/cookbook/agents.mdx", "repo_id": "langchainjs", "token_count": 1265 }
716
import gradientai as gradientai_mod import pytest from llama_index.embeddings.gradient import GradientEmbedding # TODO: fixed these tests gradientai = None @pytest.fixture() def gradient_host() -> str: return "https://api.gradient.ai/" @pytest.fixture() def gradient_model_slug() -> str: return "bge-large" ...
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gradient/tests/test_embeddings_gradient.py/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gradient/tests/test_embeddings_gradient.py", "repo_id": "llama_index", "token_count": 1656 }
1,309
import { Replicate } from "@langchain/community/llms/replicate"; const model = new Replicate({ model: "a16z-infra/llama13b-v2-chat:df7690f1994d94e96ad9d568eac121aecf50684a0b0963b25a41cc40061269e5", }); const prompt = ` User: How much wood would a woodchuck chuck if a wood chuck could chuck wood? Assistant:`; c...
langchainjs/examples/src/models/llm/replicate_llama2.ts/0
{ "file_path": "langchainjs/examples/src/models/llm/replicate_llama2.ts", "repo_id": "langchainjs", "token_count": 296 }
905
from typing import List from unittest.mock import patch from llama_index.legacy.indices.keyword_table.simple_base import ( SimpleKeywordTableIndex, ) from llama_index.legacy.schema import Document, QueryBundle from llama_index.legacy.service_context import ServiceContext from tests.mock_utils.mock_utils import mo...
llama_index/llama-index-legacy/tests/indices/keyword_table/test_retrievers.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/indices/keyword_table/test_retrievers.py", "repo_id": "llama_index", "token_count": 407 }
1,630
"""Interface to access to place that stores documents.""" from abc import ABC, abstractmethod from typing import Dict, List, Union from langchain_core.documents import Document class Docstore(ABC): """Interface to access to place that stores documents.""" @abstractmethod def search(self, search: str) ->...
langchain/libs/community/langchain_community/docstore/base.py/0
{ "file_path": "langchain/libs/community/langchain_community/docstore/base.py", "repo_id": "langchain", "token_count": 273 }
229
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..utils import DummyObject, requires_backends class OnnxRuntimeModel(metaclass=DummyObject): _backends = ["onnx"] def __init__(self, *args, **kwargs): requires_backends(self, ["onnx"]) @classmethod def from_conf...
diffusers/src/diffusers/utils/dummy_onnx_objects.py/0
{ "file_path": "diffusers/src/diffusers/utils/dummy_onnx_objects.py", "repo_id": "diffusers", "token_count": 202 }
280
from llama_index.tools.neo4j.base import Neo4jQueryToolSpec __all__ = ["Neo4jQueryToolSpec"]
llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/llama_index/tools/neo4j/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/llama_index/tools/neo4j/__init__.py", "repo_id": "llama_index", "token_count": 37 }
1,445
# rag-ollama-multi-query This template performs RAG using Ollama and OpenAI with a multi-query retriever. The multi-query retriever is an example of query transformation, generating multiple queries from different perspectives based on the user's input query. For each query, it retrieves a set of relevant documen...
langchain/templates/rag-ollama-multi-query/README.md/0
{ "file_path": "langchain/templates/rag-ollama-multi-query/README.md", "repo_id": "langchain", "token_count": 900 }
723
from __future__ import annotations import uuid from typing import Any, Iterable, List, Optional from langchain_core.documents import Document from langchain_core.embeddings import Embeddings from langchain_core.vectorstores import VectorStore class LanceDB(VectorStore): """`LanceDB` vector store. To use, y...
langchain/libs/community/langchain_community/vectorstores/lancedb.py/0
{ "file_path": "langchain/libs/community/langchain_community/vectorstores/lancedb.py", "repo_id": "langchain", "token_count": 1988 }
332
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/core/src/storage/DiskFileManagerImpl.h/0
{ "file_path": "milvus/internal/core/src/storage/DiskFileManagerImpl.h", "repo_id": "milvus", "token_count": 1637 }
1,672
# Chaos Tests ## Goal Chaos tests are designed to check the reliability of Milvus. For instance, if one pod is killed: - verify that it restarts automatically - verify that the related operation fails, while the other operations keep working successfully during the absence of the pod - verify that all the op...
milvus/tests/python_client/chaos/README.md/0
{ "file_path": "milvus/tests/python_client/chaos/README.md", "repo_id": "milvus", "token_count": 1210 }
1,963
.. _Ref-Example-Notebooks: Example Notebooks ================= We offer a wide variety of example notebooks. They are referenced throughout the documentation. Example notebooks are found `here <https://github.com/jerryjliu/llama_index/tree/main/docs/examples>`_.
llama_index/docs/api_reference/example_notebooks.rst/0
{ "file_path": "llama_index/docs/api_reference/example_notebooks.rst", "repo_id": "llama_index", "token_count": 73 }
1,079
from llama_index.readers.discord.base import DiscordReader __all__ = ["DiscordReader"]
llama_index/llama-index-integrations/readers/llama-index-readers-discord/llama_index/readers/discord/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-discord/llama_index/readers/discord/__init__.py", "repo_id": "llama_index", "token_count": 28 }
1,339
{ "name": "langchain-template-supabase", "version": "0.1.0", "private": true, "scripts": { "supabase:start": "supabase start", "supabase:stop": "supabase stop", "supabase:dev": "supabase functions serve --env-file supabase/.env", "supabase:deploy": "supabase secrets set --env-file ./supabase/.en...
langchain-template-supabase/package.json/0
{ "file_path": "langchain-template-supabase/package.json", "repo_id": "langchain-template-supabase", "token_count": 478 }
69
<jupyter_start><jupyter_text>Time-weighted vector store retrieverThis retriever uses a combination of semantic similarity and a time decay.The algorithm for scoring them is:```semantic_similarity + (1.0 - decay_rate) ^ hours_passed```Notably, `hours_passed` refers to the hours passed since the object in the retriever *...
langchain/docs/docs/modules/data_connection/retrievers/time_weighted_vectorstore.ipynb/0
{ "file_path": "langchain/docs/docs/modules/data_connection/retrievers/time_weighted_vectorstore.ipynb", "repo_id": "langchain", "token_count": 1027 }
193
// Code generated by mockery v2.32.4. DO NOT EDIT. package mockrootcoord import ( context "context" etcdpb "github.com/milvus-io/milvus/internal/proto/etcdpb" internalpb "github.com/milvus-io/milvus/internal/proto/internalpb" milvuspb "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb" mock "github.com/str...
milvus/internal/rootcoord/mocks/meta_table.go/0
{ "file_path": "milvus/internal/rootcoord/mocks/meta_table.go", "repo_id": "milvus", "token_count": 27246 }
1,921
"""Wrapper around Google VertexAI chat-based models.""" from __future__ import annotations import base64 import json import logging import re from dataclasses import dataclass, field from typing import Any, Dict, Iterator, List, Optional, Union, cast from urllib.parse import urlparse import proto # type: ignore[impo...
langchain/libs/partners/google-vertexai/langchain_google_vertexai/chat_models.py/0
{ "file_path": "langchain/libs/partners/google-vertexai/langchain_google_vertexai/chat_models.py", "repo_id": "langchain", "token_count": 9602 }
667
from typing import TYPE_CHECKING from ...utils import ( DIFFUSERS_SLOW_IMPORT, OptionalDependencyNotAvailable, _LazyModule, get_objects_from_module, is_torch_available, is_transformers_available, ) _dummy_objects = {} _import_structure = {} try: if not (is_transformers_available() and is...
diffusers/src/diffusers/pipelines/text_to_video_synthesis/__init__.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/text_to_video_synthesis/__init__.py", "repo_id": "diffusers", "token_count": 788 }
257
#!/usr/bin/env python # coding=utf-8 # Copyright 2024 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
diffusers/examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py/0
{ "file_path": "diffusers/examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py", "repo_id": "diffusers", "token_count": 16362 }
222
#![allow(unused)] use super::GgmlDType; use crate::{Error, MetalDevice, MetalStorage, Result}; pub struct QMetalStorage { dtype: GgmlDType, device: MetalDevice, } impl QMetalStorage { pub fn zeros(_: &MetalDevice, _: usize, _: GgmlDType) -> Result<Self> { Err(Error::NotCompiledWithMetalSupport) ...
candle/candle-core/src/quantized/dummy_metal.rs/0
{ "file_path": "candle/candle-core/src/quantized/dummy_metal.rs", "repo_id": "candle", "token_count": 447 }
37
try: from guidance.models import Mock as MockLLM except ImportError: MockLLM = None # type: ignore import pytest from llama_index.legacy.output_parsers.base import OutputParserException from llama_index.legacy.question_gen.guidance_generator import ( GuidanceQuestionGenerator, ) from llama_index.legacy.sch...
llama_index/llama-index-legacy/tests/question_gen/test_guidance_generator.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/question_gen/test_guidance_generator.py", "repo_id": "llama_index", "token_count": 314 }
1,646
python_sources()
llama_index/llama-index-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-llava-completion/llama_index/packs/llava_completion/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,663
package console import ( "os" ) func ExitWithOption(opts ...ExitOption) { c := defaultExitConfig() c.apply(opts...) if c.abnormal { Error(c.msg) } else { Success(c.msg) } c.runBeforeExit() os.Exit(c.code) } func AbnormalExit(backupFinished bool, msg string, options ...ExitOption) { opts := append([]Exit...
milvus/cmd/tools/migration/console/exit.go/0
{ "file_path": "milvus/cmd/tools/migration/console/exit.go", "repo_id": "milvus", "token_count": 388 }
1,756
--- sidebar_position: 5 title: Route between multiple runnables --- # Route between multiple Runnables This notebook covers how to do routing in the LangChain Expression Language. Routing allows you to create non-deterministic chains where the output of a previous step defines the next step. Routing helps provide st...
langchainjs/docs/core_docs/docs/expression_language/how_to/routing.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/expression_language/how_to/routing.mdx", "repo_id": "langchainjs", "token_count": 497 }
695
# candle-examples
candle/candle-examples/README.md/0
{ "file_path": "candle/candle-examples/README.md", "repo_id": "candle", "token_count": 6 }
46
import { TranscriptResponse, YoutubeTranscript } from "youtube-transcript"; import { Innertube } from "youtubei.js"; import { Document } from "@langchain/core/documents"; import { BaseDocumentLoader } from "../base.js"; /** * Configuration options for the YoutubeLoader class. Includes properties * such as the videoI...
langchainjs/langchain/src/document_loaders/web/youtube.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/web/youtube.ts", "repo_id": "langchainjs", "token_count": 1222 }
873
""""Example LangChain Plugin.""" import json import logging import os from typing import Optional, cast import importlib from importlib.machinery import SourceFileLoader from pathlib import Path import uvicorn import yaml from app.api import ConversationRequest, ConversationResponse from fastapi import Body, Depends, ...
langchain-aiplugin/app/main.py/0
{ "file_path": "langchain-aiplugin/app/main.py", "repo_id": "langchain-aiplugin", "token_count": 2007 }
67
# Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
datasets/metrics/pearsonr/pearsonr.py/0
{ "file_path": "datasets/metrics/pearsonr/pearsonr.py", "repo_id": "datasets", "token_count": 1794 }
133
poetry_requirements( name="poetry", ) python_requirements( name="reqs", )
llama_index/llama-index-integrations/readers/llama-index-readers-wordpress/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-wordpress/BUILD", "repo_id": "llama_index", "token_count": 36 }
1,400
export const CREATE_DRAFT_DESCRIPTION = `A tool for creating draft emails in Gmail. INPUT example: { "message": "Hello, this is a test draft", "to": ["example1@email.com", "example2@email.com"], "subject": "Test Draft", "cc": ["cc1@email.com"], "bcc": ["bcc1@email.com"] } OUTPUT: The output is a confirmatio...
langchainjs/libs/langchain-community/src/tools/gmail/descriptions.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/tools/gmail/descriptions.ts", "repo_id": "langchainjs", "token_count": 1225 }
1,014
from typing import Dict, Type from llama_index.legacy.node_parser.file.html import HTMLNodeParser from llama_index.legacy.node_parser.file.json import JSONNodeParser from llama_index.legacy.node_parser.file.markdown import MarkdownNodeParser from llama_index.legacy.node_parser.file.simple_file import SimpleFileNodePar...
llama_index/llama-index-legacy/llama_index/legacy/node_parser/loading.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/node_parser/loading.py", "repo_id": "llama_index", "token_count": 595 }
1,507
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { test } from "@jest/globals"; import { FigmaFileLoader } from "../web/figma.js"; test.skip("Test FigmaFileLoader", async () => { const loader = new FigmaFileLoader({ accessToken: process.env.FIGMA_ACCESS_TOK...
langchainjs/langchain/src/document_loaders/tests/figma.int.test.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/tests/figma.int.test.ts", "repo_id": "langchainjs", "token_count": 191 }
906
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/src/transformers/models/efficientformer/configuration_efficientformer.py/0
{ "file_path": "transformers/src/transformers/models/efficientformer/configuration_efficientformer.py", "repo_id": "transformers", "token_count": 3037 }
628
# pip install openrlbenchmark==0.2.1a5 # see https://github.com/openrlbenchmark/openrlbenchmark#get-started for documentation echo "we deal with $TAGS_STRING" python -m openrlbenchmark.rlops_multi_metrics \ --filters '?we=huggingface&wpn=trl&xaxis=_step&ceik=trl_ppo_trainer_config.value.reward_model&cen=trl_ppo_tr...
trl/benchmark/benchmark_level1_plot.sh/0
{ "file_path": "trl/benchmark/benchmark_level1_plot.sh", "repo_id": "trl", "token_count": 927 }
851
# Unit Testing LLMs/RAG With DeepEval [DeepEval](https://github.com/confident-ai/deepeval) provides unit testing for AI agents and LLM-powered applications. It provides a really simple interface for LlamaIndex users to write tests for LLM outputs and helps developers catch breaking changes in production. DeepEval pro...
llama_index/docs/community/integrations/deepeval.md/0
{ "file_path": "llama_index/docs/community/integrations/deepeval.md", "repo_id": "llama_index", "token_count": 1293 }
1,088
from typing import Any, Dict, List, Optional from langchain_core.utils import get_from_env from langchain_community.graphs.graph_document import GraphDocument from langchain_community.graphs.graph_store import GraphStore node_properties_query = """ CALL apoc.meta.data() YIELD label, other, elementType, type, propert...
langchain/libs/community/langchain_community/graphs/neo4j_graph.py/0
{ "file_path": "langchain/libs/community/langchain_community/graphs/neo4j_graph.py", "repo_id": "langchain", "token_count": 4893 }
272
# Copyright 2024 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
diffusers/examples/research_projects/controlnetxs/controlnetxs.py/0
{ "file_path": "diffusers/examples/research_projects/controlnetxs/controlnetxs.py", "repo_id": "diffusers", "token_count": 20494 }
218
import { RecursiveCharacterTextSplitter } from "langchain/text_splitter"; const text = ` --- sidebar_position: 1 --- # Document transformers Once you've loaded documents, you'll often want to transform them to better suit your application. The simplest example is you may want to split a long document into smaller chu...
langchainjs/examples/src/indexes/markdown_text_splitter.ts/0
{ "file_path": "langchainjs/examples/src/indexes/markdown_text_splitter.ts", "repo_id": "langchainjs", "token_count": 1237 }
781
# Rust builder FROM lukemathwalker/cargo-chef:latest-rust-1.75 AS chef WORKDIR /usr/src ARG CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse FROM chef as planner COPY Cargo.toml Cargo.toml COPY rust-toolchain.toml rust-toolchain.toml COPY proto proto COPY benchmark benchmark COPY router router COPY launcher launcher RUN ca...
text-generation-inference/Dockerfile/0
{ "file_path": "text-generation-inference/Dockerfile", "repo_id": "text-generation-inference", "token_count": 3372 }
377
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/pkg/metrics/persistent_store_metrics.go/0
{ "file_path": "milvus/pkg/metrics/persistent_store_metrics.go", "repo_id": "milvus", "token_count": 692 }
1,820
from langchain_core.agents import AgentAction from langchain_core.messages import AIMessage, HumanMessage from langchain.agents.format_scratchpad.log_to_messages import format_log_to_messages def test_single_intermediate_step_default_response() -> None: intermediate_steps = [ (AgentAction(tool="Tool1", t...
langchain/libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/agents/format_scratchpad/test_log_to_messages.py", "repo_id": "langchain", "token_count": 685 }
586
// Adapted from turboderp exllama: https://github.com/turboderp/exllama #include <torch/extension.h> #include <c10/cuda/CUDAGuard.h> #include <ATen/cuda/CUDAContext.h> #include <cuda_runtime.h> #include <cuda_fp16.h> #include <cstdint> #include <cstdio> #include "util.cuh" #include "tuning.h" #include "cuda_buffers.cu...
text-generation-inference/server/exllama_kernels/exllama_kernels/exllama_ext.cpp/0
{ "file_path": "text-generation-inference/server/exllama_kernels/exllama_kernels/exllama_ext.cpp", "repo_id": "text-generation-inference", "token_count": 3279 }
408
#!/usr/bin/env node import { Command } from "commander"; import path from "node:path"; import { createEntrypoints } from "./create-entrypoints.js"; import { checkTreeShaking } from "./check-tree-shaking.js"; import { moveAndRename } from "./move-cjs-to-dist.js"; import type { LangChainConfig } from "./types.js"; impor...
langchainjs/libs/langchain-scripts/src/build.ts/0
{ "file_path": "langchainjs/libs/langchain-scripts/src/build.ts", "repo_id": "langchainjs", "token_count": 1301 }
985