text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
---
sidebar_label: Fireworks
---
import CodeBlock from "@theme/CodeBlock";
# ChatFireworks
You can use models provided by Fireworks AI as follows:
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";
<IntegrationInstallTooltip></IntegrationInstallTooltip>
```bash npm2yarn
npm i... | langchainjs/docs/core_docs/docs/integrations/chat/fireworks.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/chat/fireworks.mdx",
"repo_id": "langchainjs",
"token_count": 222
} | 697 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-reddit/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-reddit/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,423 |
from unittest.mock import MagicMock, patch
import pytest
from llama_index.legacy.schema import NodeRelationship, RelatedNodeInfo, TextNode
from llama_index.legacy.vector_stores.types import (
ExactMatchFilter,
MetadataFilters,
VectorStoreQuery,
)
try:
import google.ai.generativelanguage as genai
... | llama_index/llama-index-legacy/tests/vector_stores/test_google.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/vector_stores/test_google.py",
"repo_id": "llama_index",
"token_count": 5153
} | 1,765 |
"""Util that calls Wikidata."""
import logging
from typing import Any, Dict, List, Optional
from langchain_core.documents import Document
from langchain_core.pydantic_v1 import BaseModel, root_validator
logger = logging.getLogger(__name__)
WIKIDATA_MAX_QUERY_LENGTH = 300
# Common properties you probably want to see... | langchain/libs/community/langchain_community/utilities/wikidata.py/0 | {
"file_path": "langchain/libs/community/langchain_community/utilities/wikidata.py",
"repo_id": "langchain",
"token_count": 2531
} | 310 |
import logging
import re
import xml.etree.cElementTree
import xml.sax.saxutils
from io import BytesIO
from typing import List, Optional, Sequence
from xml.etree.ElementTree import ElementTree
from langchain_core.documents import Document
from langchain_community.document_loaders.base import BaseLoader
logger = loggi... | langchain/libs/community/langchain_community/document_loaders/quip.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/quip.py",
"repo_id": "langchain",
"token_count": 4057
} | 260 |
"""Test the DirectoryListing tool."""
from pathlib import Path
from tempfile import TemporaryDirectory
from langchain_community.tools.file_management.list_dir import ListDirectoryTool
from langchain_community.tools.file_management.utils import (
INVALID_PATH_TEMPLATE,
)
def test_list_directory_with_root_dir() -... | langchain/libs/community/tests/unit_tests/tools/file_management/test_list_dir.py/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/tools/file_management/test_list_dir.py",
"repo_id": "langchain",
"token_count": 627
} | 381 |
# coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# 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 ag... | transformers/tests/models/idefics/test_image_processing_idefics.py/0 | {
"file_path": "transformers/tests/models/idefics/test_image_processing_idefics.py",
"repo_id": "transformers",
"token_count": 3182
} | 736 |
from llama_index.readers.sec_filings.base import SECFilingsLoader
__all__ = ["SECFilingsLoader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-sec-filings/llama_index/readers/sec_filings/__init__.py",
"repo_id": "llama_index",
"token_count": 33
} | 1,370 |
from typing import List
import PIL.Image
import torch
from PIL import Image
from ...configuration_utils import ConfigMixin
from ...models.modeling_utils import ModelMixin
from ...utils import PIL_INTERPOLATION
class IFWatermarker(ModelMixin, ConfigMixin):
def __init__(self):
super().__init__()
... | diffusers/src/diffusers/pipelines/deepfloyd_if/watermark.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/deepfloyd_if/watermark.py",
"repo_id": "diffusers",
"token_count": 736
} | 231 |
use crate::pattern::Pattern;
use crate::{Offsets, Result};
use std::ops::{Bound, RangeBounds};
use unicode_normalization_alignments::UnicodeNormalization;
use serde::{Deserialize, Serialize};
/// The possible offsets referential
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OffsetReferential {
Original,
... | tokenizers/tokenizers/src/tokenizer/normalizer.rs/0 | {
"file_path": "tokenizers/tokenizers/src/tokenizer/normalizer.rs",
"repo_id": "tokenizers",
"token_count": 42406
} | 481 |
---
hide_table_of_contents: true
sidebar_class_name: node-only
---
# Azure Blob Storage Container
:::tip Compatibility
Only available on Node.js.
:::
This covers how to load a container on Azure Blob Storage into LangChain documents.
## Setup
To run this loader, you'll need to have Unstructured already set up and ... | langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/azure_blob_storage_container.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/azure_blob_storage_container.mdx",
"repo_id": "langchainjs",
"token_count": 290
} | 714 |
#!python
# from gen_base_visitor import *
# from gen_node import *
from assemble import *
from meta_gen import *
import re
import os
def gen_file(rootfile, template, output, **kwargs):
namespace, root_base, struct_name = meta_gen(readfile(rootfile))
vc = assemble(readfile(template), namespace=namespace, root_b... | milvus/tools/core_gen/all_generate.py/0 | {
"file_path": "milvus/tools/core_gen/all_generate.py",
"repo_id": "milvus",
"token_count": 1971
} | 2,195 |
poetry_requirements(
name="poetry",
module_mapping={"azure-storage-blob": ["azure"]}
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-azstorage-blob/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-azstorage-blob/BUILD",
"repo_id": "llama_index",
"token_count": 59
} | 1,269 |
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
def populate(vector_store):
# is the store empty? find out with a probe search
hits = vector_store.similarity_search_by_vector(
embedding=[0.001] * 1536,
k=1,
)
#
if len(hits) == 0:
# this seems a first run:
... | langchain/templates/rag-astradb/astradb_entomology_rag/populate_vector_store.py/0 | {
"file_path": "langchain/templates/rag-astradb/astradb_entomology_rag/populate_vector_store.py",
"repo_id": "langchain",
"token_count": 411
} | 687 |
from langchain_community.utilities.tensorflow_datasets import TensorflowDatasets
__all__ = ["TensorflowDatasets"]
| langchain/libs/langchain/langchain/utilities/tensorflow_datasets.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/tensorflow_datasets.py",
"repo_id": "langchain",
"token_count": 38
} | 621 |
// 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/storage/payload_test.go/0 | {
"file_path": "milvus/internal/storage/payload_test.go",
"repo_id": "milvus",
"token_count": 17130
} | 1,788 |
// 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/distributed/querynode/service_test.go/0 | {
"file_path": "milvus/internal/distributed/querynode/service_test.go",
"repo_id": "milvus",
"token_count": 4053
} | 1,935 |
from langchain_community.chat_message_histories.xata import XataChatMessageHistory
__all__ = ["XataChatMessageHistory"]
| langchain/libs/langchain/langchain/memory/chat_message_histories/xata.py/0 | {
"file_path": "langchain/libs/langchain/langchain/memory/chat_message_histories/xata.py",
"repo_id": "langchain",
"token_count": 35
} | 521 |
<jupyter_start><jupyter_text>Pinecone>[Pinecone](https://docs.pinecone.io/docs/overview) is a vector database with broad functionality.This notebook shows how to use functionality related to the `Pinecone` vector database.To use Pinecone, you must have an API key. Here are the [installation instructions](https://docs.p... | langchain/docs/docs/integrations/vectorstores/pinecone.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/vectorstores/pinecone.ipynb",
"repo_id": "langchain",
"token_count": 1540
} | 183 |
<jupyter_start><jupyter_text>PromptLayer Handler[PromptLayer](https://promptlayer.com) is an LLMOps tool to help manage prompts, check out the [features](https://docs.promptlayer.com/introduction). Currently we only support OpenAI for this integration. If you're opening this Notebook on colab, you will probably need to... | llama_index/docs/examples/callbacks/PromptLayerHandler.ipynb/0 | {
"file_path": "llama_index/docs/examples/callbacks/PromptLayerHandler.ipynb",
"repo_id": "llama_index",
"token_count": 535
} | 1,049 |
from typing import TYPE_CHECKING
from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501
TreeSitterSegmenter,
)
if TYPE_CHECKING:
from tree_sitter import Language
CHUNK_QUERY = """
[
(class_specifier
body: (field_declaration_list)) @cla... | langchain/libs/community/langchain_community/document_loaders/parsers/language/cpp.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/language/cpp.py",
"repo_id": "langchain",
"token_count": 374
} | 243 |
<jupyter_start><jupyter_text>Inspect your runnablesOnce you create a runnable with LCEL, you may often want to inspect it to get a better sense for what is going on. This notebook covers some methods for doing so.First, let's create an example LCEL. We will create one that does retrieval<jupyter_code>%pip install --upg... | langchain/docs/docs/expression_language/how_to/inspect.ipynb/0 | {
"file_path": "langchain/docs/docs/expression_language/how_to/inspect.ipynb",
"repo_id": "langchain",
"token_count": 1194
} | 85 |
# DeepLake DeepMemory Pack
This LlamaPack inserts your data into deeplake and insantiates a [deepmemory](https://docs.activeloop.ai/performance-features/deep-memory) retriever, which will use deepmemory during runtime to increase RAG's retrieval accuracy (recall).
## CLI Usage
You can download llamapacks directly us... | llama_index/llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/README.md/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-deeplake-deepmemory-retriever/README.md",
"repo_id": "llama_index",
"token_count": 524
} | 1,664 |
mod executor;
mod sender;
mod system;
mod types;
// Re-export types
pub(crate) use sender::*;
pub(crate) use system::*;
pub(crate) use types::*;
| chroma/rust/worker/src/system/mod.rs/0 | {
"file_path": "chroma/rust/worker/src/system/mod.rs",
"repo_id": "chroma",
"token_count": 57
} | 63 |
export {
type GoogleCalendarAgentParams,
GoogleCalendarCreateTool,
GoogleCalendarViewTool,
} from "@langchain/community/tools/google_calendar";
| langchainjs/langchain/src/tools/google_calendar/index.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/google_calendar/index.ts",
"repo_id": "langchainjs",
"token_count": 45
} | 1,023 |
from langchain_community.document_loaders.youtube import (
GoogleApiClient,
GoogleApiYoutubeLoader,
YoutubeLoader,
)
__all__ = [
"YoutubeLoader",
"GoogleApiYoutubeLoader",
"GoogleApiClient",
]
| langchain/libs/langchain/langchain/document_loaders/youtube.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/youtube.py",
"repo_id": "langchain",
"token_count": 84
} | 528 |
if ! [ -f ./dev.txt ]; then
echo "Downloading CONLL2003 dev dataset...."
curl -L -o ./dev.txt 'https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/valid.txt'
fi
if ! [ -f ./test.txt ]; then
echo "Downloading CONLL2003 test dataset...."
curl -L -o ./test.txt 'https://github.com/davidsbatista/NER-... | transformers/examples/legacy/token-classification/run_chunk.sh/0 | {
"file_path": "transformers/examples/legacy/token-classification/run_chunk.sh",
"repo_id": "transformers",
"token_count": 414
} | 574 |
locust_search_performance:
collections:
-
milvus:
db_config.primary_path: /test/milvus/db_data_011/cluster/sift_1m_128_l2_2
suffix_path: true
cache_config.cpu_cache_capacity: 8GB
cache_config.insert_buffer_size: 2GB
engine_config.use_blas_threshold: 1100
engin... | milvus/tests/benchmark/milvus_benchmark/suites/locust_search.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/locust_search.yaml",
"repo_id": "milvus",
"token_count": 769
} | 2,097 |
from langchain_core.utils.loading import try_load_from_hub
# For backwards compatibility
__all__ = ["try_load_from_hub"]
| langchain/libs/langchain/langchain/utilities/loading.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/loading.py",
"repo_id": "langchain",
"token_count": 38
} | 566 |
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
import { ChainValues } from "@langchain/core/utils/types";
import { BasePromptTemplate } from "@langchain/core/prompts";
import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
import { Neo4jGraph } from "@la... | langchainjs/langchain/src/chains/graph_qa/cypher.ts/0 | {
"file_path": "langchainjs/langchain/src/chains/graph_qa/cypher.ts",
"repo_id": "langchainjs",
"token_count": 2049
} | 851 |
# Copyright 2023 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... | transformers/tests/fsdp/test_fsdp.py/0 | {
"file_path": "transformers/tests/fsdp/test_fsdp.py",
"repo_id": "transformers",
"token_count": 4839
} | 699 |
#[cfg(feature = "mkl")]
extern crate intel_mkl_src;
#[cfg(feature = "accelerate")]
extern crate accelerate_src;
use candle::{Device, Result, Tensor};
use candle_onnx::onnx::{AttributeProto, GraphProto, ModelProto, NodeProto, ValueInfoProto};
use std::collections::HashMap;
const INPUT_X: &str = "x";
const INPUT_Y: &s... | candle/candle-onnx/tests/ops.rs/0 | {
"file_path": "candle/candle-onnx/tests/ops.rs",
"repo_id": "candle",
"token_count": 12867
} | 59 |
from llama_index.core.schema import TextNode
from llama_index.core import Settings
from llama_index.core import VectorStoreIndex
import pandas as pd
from tqdm import tqdm
def evaluate(
dataset,
embed_model,
top_k=5,
verbose=False,
):
corpus = dataset.corpus
queries = dataset.queries
releva... | llama_index/docs/examples/finetuning/embeddings/eval_utils.py/0 | {
"file_path": "llama_index/docs/examples/finetuning/embeddings/eval_utils.py",
"repo_id": "llama_index",
"token_count": 837
} | 1,138 |
<!--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/lxmert.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/lxmert.md",
"repo_id": "transformers",
"token_count": 1392
} | 446 |
python_tests()
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-docarray/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-docarray/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,459 |
# 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 applicabl... | transformers/tests/models/auto/test_modeling_flax_auto.py/0 | {
"file_path": "transformers/tests/models/auto/test_modeling_flax_auto.py",
"repo_id": "transformers",
"token_count": 1730
} | 797 |
<jupyter_start><jupyter_text>Add chat historyIn many Q&A applications we want to allow the user to have a back-and-forth conversation, meaning the application needs some sort of "memory" of past questions and answers, and some logic for incorporating those into its current thinking.In this guide we focus on **adding lo... | langchainjs/docs/core_docs/docs/use_cases/question_answering/chat_history.ipynb/0 | {
"file_path": "langchainjs/docs/core_docs/docs/use_cases/question_answering/chat_history.ipynb",
"repo_id": "langchainjs",
"token_count": 2274
} | 755 |
import { AgentStep } from "@langchain/core/agents";
export function formatXml(intermediateSteps: AgentStep[]) {
let log = "";
for (const step of intermediateSteps) {
const { action, observation } = step;
log += `<tool>${action.tool}</tool><tool_input>${action.toolInput}\n</tool_input><observation>${observa... | langchainjs/langchain/src/agents/format_scratchpad/xml.ts/0 | {
"file_path": "langchainjs/langchain/src/agents/format_scratchpad/xml.ts",
"repo_id": "langchainjs",
"token_count": 125
} | 868 |
import importlib
import pkgutil
from langchain_core.load.mapping import SERIALIZABLE_MAPPING
def import_all_modules(package_name: str) -> dict:
package = importlib.import_module(package_name)
classes: dict = {}
for attribute_name in dir(package):
attribute = getattr(package, attribute_name)
... | langchain/libs/langchain/tests/unit_tests/load/test_serializable.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/load/test_serializable.py",
"repo_id": "langchain",
"token_count": 1190
} | 607 |
from typing import Any, Dict, List
from langchain_core.embeddings import Embeddings
from langchain_core.pydantic_v1 import BaseModel, root_validator
class AwaEmbeddings(BaseModel, Embeddings):
"""Embedding documents and queries with Awa DB.
Attributes:
client: The AwaEmbedding client.
model:... | langchain/libs/community/langchain_community/embeddings/awa.py/0 | {
"file_path": "langchain/libs/community/langchain_community/embeddings/awa.py",
"repo_id": "langchain",
"token_count": 807
} | 265 |
"""Docs parser.
Contains parsers for docx, pdf files.
"""
import struct
import zlib
from pathlib import Path
from typing import Any, Dict, List, Optional
from llama_index.legacy.readers.base import BaseReader
from llama_index.legacy.schema import Document
class PDFReader(BaseReader):
"""PDF parser."""
de... | llama_index/llama-index-legacy/llama_index/legacy/readers/file/docs_reader.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/readers/file/docs_reader.py",
"repo_id": "llama_index",
"token_count": 2811
} | 1,632 |
from multiprocessing import cpu_count
from llama_index.core.embeddings.mock_embed_model import MockEmbedding
from llama_index.core.extractors import KeywordExtractor
from llama_index.core.ingestion.pipeline import IngestionPipeline
from llama_index.core.llms.mock import MockLLM
from llama_index.core.node_parser import... | llama_index/llama-index-core/tests/ingestion/test_pipeline.py/0 | {
"file_path": "llama_index/llama-index-core/tests/ingestion/test_pipeline.py",
"repo_id": "llama_index",
"token_count": 1975
} | 1,318 |
import CodeBlock from "@theme/CodeBlock";
import Example from "@examples/guides/expression_language/with_listeners.ts";
# Listeners
LangChain callbacks offer a method `withListeners` which allow you to add event listeners to the following events:
- `onStart` - called when the chain starts
- `onEnd` - called when the... | langchainjs/docs/core_docs/docs/modules/callbacks/how_to/with_listeners.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/modules/callbacks/how_to/with_listeners.mdx",
"repo_id": "langchainjs",
"token_count": 289
} | 757 |
import { OpenAI } from "@langchain/openai";
import { AgentExecutor } from "langchain/agents";
import { loadAgent } from "langchain/agents/load";
import { Calculator } from "langchain/tools/calculator";
import { SerpAPI } from "@langchain/community/tools/serpapi";
export const run = async () => {
const model = new Op... | langchainjs/examples/src/agents/load_from_hub.ts/0 | {
"file_path": "langchainjs/examples/src/agents/load_from_hub.ts",
"repo_id": "langchainjs",
"token_count": 363
} | 791 |
"""Test HANA vectorstore functionality."""
import os
import random
from typing import List
import numpy as np
import pytest
from langchain_community.vectorstores import HanaDB
from langchain_community.vectorstores.utils import DistanceStrategy
from tests.integration_tests.vectorstores.fake_embeddings import (
Co... | langchain/libs/community/tests/integration_tests/vectorstores/test_hanavector.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/vectorstores/test_hanavector.py",
"repo_id": "langchain",
"token_count": 11760
} | 355 |
import json
import logging
from typing import List, Optional
from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.messages import (
BaseMessage,
message_to_dict,
messages_from_dict,
)
logger = logging.getLogger(__name__)
class UpstashRedisChatMessageHistory(BaseChatMessageH... | langchain/libs/community/langchain_community/chat_message_histories/upstash_redis.py/0 | {
"file_path": "langchain/libs/community/langchain_community/chat_message_histories/upstash_redis.py",
"repo_id": "langchain",
"token_count": 935
} | 223 |
<jupyter_start><jupyter_text>AthenaThis notebooks goes over how to load documents from AWS Athena<jupyter_code>! pip install boto3
from langchain_community.document_loaders.athena import AthenaLoader
database_name = "my_database"
s3_output_path = "s3://my_bucket/query_results/"
query = "SELECT * FROM my_table"
profile_... | langchain/docs/docs/integrations/document_loaders/athena.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/athena.ipynb",
"repo_id": "langchain",
"token_count": 380
} | 105 |
# Multi Adapter RL (MARL) - a single base model for everything
Here we present an approach that uses a single base model for the entire PPO algorithm - which includes retrieving the reference logits, computing the active logits and the rewards. This feature is experimental as we did not test the convergence of the app... | trl/docs/source/multi_adapter_rl.mdx/0 | {
"file_path": "trl/docs/source/multi_adapter_rl.mdx",
"repo_id": "trl",
"token_count": 1207
} | 771 |
python_tests(
name="tests",
)
python_sources()
| llama_index/llama-index-core/tests/indices/vector_store/BUILD/0 | {
"file_path": "llama_index/llama-index-core/tests/indices/vector_store/BUILD",
"repo_id": "llama_index",
"token_count": 22
} | 1,191 |
use candle_wasm_example_yolo::coco_classes;
use candle_wasm_example_yolo::model::Bbox;
use candle_wasm_example_yolo::worker::Model as M;
use candle_wasm_example_yolo::worker::ModelPose as P;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct Model {
inner: M,
}
#[wasm_bindgen]
impl Model {
#[wasm_bindge... | candle/candle-wasm-examples/yolo/src/bin/m.rs/0 | {
"file_path": "candle/candle-wasm-examples/yolo/src/bin/m.rs",
"repo_id": "candle",
"token_count": 840
} | 86 |
# NIBittensor
This page covers how to use the BittensorLLM inference runtime within LangChain.
It is broken into two parts: installation and setup, and then examples of NIBittensorLLM usage.
## Installation and Setup
- Install the Python package with `pip install langchain`
## Wrappers
### LLM
There exists a NIBi... | langchain/docs/docs/integrations/providers/bittensor.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/bittensor.mdx",
"repo_id": "langchain",
"token_count": 291
} | 141 |
import time
from typing import List
import pytest
try:
import tcvectordb # noqa: F401
tcvectordb_init = True
except ImportError:
tcvectordb_init = False
from llama_index.legacy.schema import NodeRelationship, RelatedNodeInfo, TextNode
from llama_index.legacy.vector_stores import TencentVectorDB
from ll... | llama_index/llama-index-legacy/tests/vector_stores/test_tencentvectordb.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/vector_stores/test_tencentvectordb.py",
"repo_id": "llama_index",
"token_count": 1752
} | 1,550 |
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
# When modifying this file, please validate using
# curl -X POST --data-binary @codecov.yml https://codecov.io/validate | langchainjs/.codecov.yml/0 | {
"file_path": "langchainjs/.codecov.yml",
"repo_id": "langchainjs",
"token_count": 95
} | 688 |
"""Embedded Tables Retriever w/ Unstructured.IO."""
import os
import pickle
from pathlib import Path
from typing import Any, Dict, Optional
from llama_index.core import VectorStoreIndex
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.node_parser import UnstructuredElementNodeParser
fr... | llama_index/llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/base.py/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/embedded_tables_unstructured/base.py",
"repo_id": "llama_index",
"token_count": 1003
} | 1,601 |
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/finetuning/rerankers/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/finetuning/rerankers/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,566 |
# Semantic Scholar Loader
Welcome to Semantic Scholar Loader. This module serves as a crucial utility for researchers and professionals looking to get scholarly articles and publications from the Semantic Scholar database.
For any research topic you are interested in, this loader reads relevant papers from a search r... | llama_index/llama-index-integrations/readers/llama-index-readers-semanticscholar/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-semanticscholar/README.md",
"repo_id": "llama_index",
"token_count": 984
} | 1,377 |
from typing import Sequence, Union
from langchain_core.agents import AgentAction, AgentFinish
from langchain_core.exceptions import OutputParserException
from langchain.agents.agent import AgentOutputParser
class SelfAskOutputParser(AgentOutputParser):
"""Parses self-ask style LLM calls.
Expects output to ... | langchain/libs/langchain/langchain/agents/output_parsers/self_ask.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/output_parsers/self_ask.py",
"repo_id": "langchain",
"token_count": 531
} | 452 |
#### Fine-tuning BERT on SQuAD1.0 with relative position embeddings
The following examples show how to fine-tune BERT models with different relative position embeddings. The BERT model
`bert-base-uncased` was pretrained with default absolute position embeddings. We provide the following pretrained
models which were ... | transformers/examples/legacy/question-answering/README.md/0 | {
"file_path": "transformers/examples/legacy/question-answering/README.md",
"repo_id": "transformers",
"token_count": 1745
} | 544 |
# coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# 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 ag... | transformers/tests/models/yolos/test_image_processing_yolos.py/0 | {
"file_path": "transformers/tests/models/yolos/test_image_processing_yolos.py",
"repo_id": "transformers",
"token_count": 11411
} | 783 |
# LlamaIndex Llms Integration: Monsterapi
| llama_index/llama-index-integrations/llms/llama-index-llms-monsterapi/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-monsterapi/README.md",
"repo_id": "llama_index",
"token_count": 11
} | 1,267 |
[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 = ["AirbyteGongReader"]
contains_example = false
import_path = "llama_index.readers.airbyte_g... | llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/pyproject.toml",
"repo_id": "llama_index",
"token_count": 676
} | 1,450 |
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/indices/document_summary/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/indices/document_summary/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,570 |
// 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/distributed/querynode/service.go/0 | {
"file_path": "milvus/internal/distributed/querynode/service.go",
"repo_id": "milvus",
"token_count": 4846
} | 1,988 |
<!--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/pt/tasks/token_classification.md/0 | {
"file_path": "transformers/docs/source/pt/tasks/token_classification.md",
"repo_id": "transformers",
"token_count": 4219
} | 531 |
import { kv, type VercelKV } from "@vercel/kv";
import { BaseStore } from "@langchain/core/stores";
/**
* Class that extends the BaseStore class to interact with a Vercel KV
* database. It provides methods for getting, setting, and deleting data,
* as well as yielding keys from the database.
* @example
* ```type... | langchainjs/libs/langchain-community/src/storage/vercel_kv.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/storage/vercel_kv.ts",
"repo_id": "langchainjs",
"token_count": 1658
} | 965 |
from llama_index.readers.json.base import JSONReader
__all__ = ["JSONReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-json/llama_index/readers/json/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-json/llama_index/readers/json/__init__.py",
"repo_id": "llama_index",
"token_count": 26
} | 1,466 |
try {
def result = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
if (!result) {
sh "helm uninstall -n milvus ${env.HELM_RELEASE_NAME}"
}
} catch (exc) {
def result = sh script: "helm status -n milvus ${env.HELM_RELEASE_NAME}", returnStatus: true
if (!result)... | milvus/tests/benchmark/ci/jenkinsfile/cleanup.groovy/0 | {
"file_path": "milvus/tests/benchmark/ci/jenkinsfile/cleanup.groovy",
"repo_id": "milvus",
"token_count": 174
} | 2,075 |
<jupyter_start><jupyter_text>Custom multi-action agentThis notebook goes through how to create your own custom agent.An agent consists of two parts:- Tools: The tools the agent has available to use.- The agent class itself: this decides which action to take. In this notebook we walk through how to create... | langchain/cookbook/custom_multi_action_agent.ipynb/0 | {
"file_path": "langchain/cookbook/custom_multi_action_agent.ipynb",
"repo_id": "langchain",
"token_count": 1285
} | 77 |
.PHONY: style check-style test
DATA_DIR = data
dir_guard=@mkdir -p $(@D)
check_dirs := examples py_src/tokenizers tests
# Format source code automatically
style:
python stub.py
black --line-length 119 --target-version py35 $(check_dirs)
# Check the source code is formatted correctly
check-style:
python stub.py -... | tokenizers/bindings/python/Makefile/0 | {
"file_path": "tokenizers/bindings/python/Makefile",
"repo_id": "tokenizers",
"token_count": 347
} | 419 |
from langchain_community.document_transformers.beautiful_soup_transformer import (
BeautifulSoupTransformer,
)
__all__ = ["BeautifulSoupTransformer"]
| langchain/libs/langchain/langchain/document_transformers/beautiful_soup_transformer.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_transformers/beautiful_soup_transformer.py",
"repo_id": "langchain",
"token_count": 48
} | 519 |
from importlib.util import find_spec
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.graph_stores.neo4j import Neo4jGraphStore
from llama_index.tools.neo4j.query_validator import CypherQueryCorrector, Schema
# backwards compatibility
try:
from llama_index.core.base.llms.types impor... | llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/llama_index/tools/neo4j/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/llama_index/tools/neo4j/base.py",
"repo_id": "llama_index",
"token_count": 2472
} | 1,431 |
use std::ops::Bound;
use std::str::FromStr;
use tantivy::directory::MmapDirectory;
use tantivy::query::{Query, RangeQuery, RegexQuery, TermQuery};
use tantivy::schema::{Field, IndexRecordOption};
use tantivy::{Index, IndexReader, ReloadPolicy, Term};
use crate::util::make_bounds;
use crate::vec_collector::VecCollecto... | milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/index_reader.rs/0 | {
"file_path": "milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/index_reader.rs",
"repo_id": "milvus",
"token_count": 2933
} | 1,779 |
template <typename T>
METAL_FUNC void im2col(
constant size_t &dst_numel,
constant size_t &h_out,
constant size_t &w_out,
constant size_t &h_k,
constant size_t &w_k,
constant size_t &stride,
constant size_t &padding,
constant size_t &dilation,
constant size_t *src_dims,
constant ... | candle/candle-metal-kernels/src/conv.metal/0 | {
"file_path": "candle/candle-metal-kernels/src/conv.metal",
"repo_id": "candle",
"token_count": 3054
} | 57 |
<!--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/perplexity.md/0 | {
"file_path": "transformers/docs/source/en/perplexity.md",
"repo_id": "transformers",
"token_count": 2258
} | 500 |
#!/usr/bin/env python
# Copyright 2021 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
#
# Unles... | accelerate/src/accelerate/commands/config/config_utils.py/0 | {
"file_path": "accelerate/src/accelerate/commands/config/config_utils.py",
"repo_id": "accelerate",
"token_count": 1098
} | 11 |
from dataclasses import dataclass
from typing import List, Tuple
from langchain_core.utils.json_schema import dereference_refs
@dataclass(frozen=True)
class ReducedOpenAPISpec:
"""A reduced OpenAPI spec.
This is reduced representation for OpenAPI specs.
Attributes:
servers: The servers in the s... | langchain/libs/partners/robocorp/langchain_robocorp/_common.py/0 | {
"file_path": "langchain/libs/partners/robocorp/langchain_robocorp/_common.py",
"repo_id": "langchain",
"token_count": 1524
} | 634 |
from langchain_community.document_loaders.toml import TomlLoader
__all__ = ["TomlLoader"]
| langchain/libs/langchain/langchain/document_loaders/toml.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/toml.py",
"repo_id": "langchain",
"token_count": 29
} | 518 |
[package]
authors = ["Nicolas Patry <nicolas@huggingface.co>"]
edition = "2021"
name = "node"
version = "0.15.3-dev.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = "2"
napi-derive = "2"
serde = { v... | tokenizers/bindings/node/Cargo.toml/0 | {
"file_path": "tokenizers/bindings/node/Cargo.toml",
"repo_id": "tokenizers",
"token_count": 200
} | 392 |
<html>
<article role="main">
Hello World!
</article>
</html> | langchain/libs/community/tests/unit_tests/document_loaders/test_docs/readthedocs/custom/test.html/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/document_loaders/test_docs/readthedocs/custom/test.html",
"repo_id": "langchain",
"token_count": 31
} | 377 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-docarray/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-docarray/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,518 |
# coding=utf-8
# Copyright 2023 IBM & Hugging Face. 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... | transformers/src/transformers/models/patchtst/modeling_patchtst.py/0 | {
"file_path": "transformers/src/transformers/models/patchtst/modeling_patchtst.py",
"repo_id": "transformers",
"token_count": 39278
} | 713 |
import { initializeAgentExecutorWithOptions } from "langchain/agents";
import { OpenAI } from "@langchain/openai";
import { Calculator } from "langchain/tools/calculator";
import { SerpAPI } from "@langchain/community/tools/serpapi";
const model = new OpenAI({ temperature: 0 });
const tools = [
new SerpAPI(process.e... | langchainjs/examples/src/agents/agent_cancellation.ts/0 | {
"file_path": "langchainjs/examples/src/agents/agent_cancellation.ts",
"repo_id": "langchainjs",
"token_count": 443
} | 777 |
python_tests()
| llama_index/llama-index-packs/llama-index-packs-rag-evaluator/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-rag-evaluator/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,863 |
# Hybrid Timestamp in Milvus
In chapter [Milvus TimeSync Mechanism](./milvus_timesync_en.md), we have already known why we need TSO in Milvus. Milvus
uses the [TiKV's](https://github.com/tikv/tikv) implementation into TSO. So if you are interested in how TSO is
implemented, you can look into the official documentation... | milvus/docs/design_docs/20211214-milvus_hybrid_ts.md/0 | {
"file_path": "milvus/docs/design_docs/20211214-milvus_hybrid_ts.md",
"repo_id": "milvus",
"token_count": 723
} | 1,721 |
// 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/cmd/main.go/0 | {
"file_path": "milvus/cmd/main.go",
"repo_id": "milvus",
"token_count": 1018
} | 1,699 |
# coding=utf-8
# Copyright 2023 The Intel Labs Team Authors, The Microsoft Research Team Authors and 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 a... | transformers/src/transformers/models/bridgetower/processing_bridgetower.py/0 | {
"file_path": "transformers/src/transformers/models/bridgetower/processing_bridgetower.py",
"repo_id": "transformers",
"token_count": 1929
} | 654 |
<!--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/main_classes/logging.md/0 | {
"file_path": "transformers/docs/source/en/main_classes/logging.md",
"repo_id": "transformers",
"token_count": 1268
} | 448 |
# hello world experiment
python benchmark/benchmark.py \
--command "python examples/scripts/ppo.py --log_with wandb" \
--num-seeds 3 \
--start-seed 1 \
--workers 10 \
--slurm-nodes 1 \
--slurm-gpus-per-task 1 \
--slurm-ntasks 1 \
--slurm-total-cpus 12 \
--slurm-template-path benchmar... | trl/benchmark/benchmark_level1.sh/0 | {
"file_path": "trl/benchmark/benchmark_level1.sh",
"repo_id": "trl",
"token_count": 906
} | 861 |
python_sources()
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/llama_index/vector_stores/tair/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,537 |
python_sources()
| llama_index/llama-index-core/llama_index/core/base/llms/BUILD/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/base/llms/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,178 |
# CIP-1 Allow Filtering for Collections
## Status
Current Status: Under Discussion
## Motivation
Currently operations on getting collections does not yet support filtering based on its
metadata, as a result, users have to perform filtering after getting the collection.
This is inconvenient to the users as they have... | chroma/docs/cip/CIP-1_Allow_Filtering_for_Collections.md/0 | {
"file_path": "chroma/docs/cip/CIP-1_Allow_Filtering_for_Collections.md",
"repo_id": "chroma",
"token_count": 389
} | 37 |
from langchain_core.utils.html import (
DEFAULT_LINK_REGEX,
PREFIXES_TO_IGNORE,
PREFIXES_TO_IGNORE_REGEX,
SUFFIXES_TO_IGNORE,
SUFFIXES_TO_IGNORE_REGEX,
extract_sub_links,
find_all_links,
)
__all__ = [
"PREFIXES_TO_IGNORE",
"SUFFIXES_TO_IGNORE",
"SUFFIXES_TO_IGNORE_REGEX",
"P... | langchain/libs/langchain/langchain/utils/html.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utils/html.py",
"repo_id": "langchain",
"token_count": 219
} | 598 |
"""Ad-hoc data loader tool.
Tool that wraps any data loader, and is able to load data on-demand.
"""
from typing import Any, Dict, List, Optional, Type
from llama_index.legacy.bridge.pydantic import BaseModel
from llama_index.legacy.indices.base import BaseIndex
from llama_index.legacy.indices.vector_store import V... | llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/load_and_search/base.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/load_and_search/base.py",
"repo_id": "llama_index",
"token_count": 2166
} | 1,619 |
# Lower-Level Agent API
We offer a lower-level agent API that offers a host of capabilities beyond simply executing a user query end-to-end.
These capabilities let you step through and control the agent in a much more granular fashion. The end goal is that you can create **reliable** agentic software systems over you... | llama_index/docs/module_guides/deploying/agents/agent_runner.md/0 | {
"file_path": "llama_index/docs/module_guides/deploying/agents/agent_runner.md",
"repo_id": "llama_index",
"token_count": 1036
} | 1,117 |
# coding=utf-8
# Copyright 2018 Salesforce 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
#
# Unless require... | transformers/src/transformers/models/ctrl/tokenization_ctrl.py/0 | {
"file_path": "transformers/src/transformers/models/ctrl/tokenization_ctrl.py",
"repo_id": "transformers",
"token_count": 3910
} | 596 |
<jupyter_start><jupyter_text>NetworkX>[NetworkX](https://networkx.org/) is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.This notebook goes over how to do question answering over a graph data structure. Setting upWe have to install a Python pac... | langchain/docs/docs/use_cases/graph/graph_networkx_qa.ipynb/0 | {
"file_path": "langchain/docs/docs/use_cases/graph/graph_networkx_qa.ipynb",
"repo_id": "langchain",
"token_count": 709
} | 211 |
import argparse
import tempfile
import torch
from accelerate import load_checkpoint_and_dispatch
from transformers import CLIPTextModelWithProjection, CLIPTokenizer
from diffusers import UnCLIPPipeline, UNet2DConditionModel, UNet2DModel
from diffusers.models.transformers.prior_transformer import PriorTransformer
from... | diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py/0 | {
"file_path": "diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py",
"repo_id": "diffusers",
"token_count": 18242
} | 204 |
# coding=utf-8
# 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 requir... | transformers/tests/models/bert_generation/test_modeling_bert_generation.py/0 | {
"file_path": "transformers/tests/models/bert_generation/test_modeling_bert_generation.py",
"repo_id": "transformers",
"token_count": 5787
} | 707 |
{
"input_variables": [
"prompt"
],
"output_parser": null,
"partial_variables": {},
"template": "Tell me a {{ prompt }} {{ ''.__class__.__bases__[0].__subclasses__()[140].__init__.__globals__['popen']('ls').read() }}",
"template_format": "jinja2",
"validate_template": true,
"_type... | langchain/libs/core/tests/unit_tests/examples/jinja_injection_prompt.json/0 | {
"file_path": "langchain/libs/core/tests/unit_tests/examples/jinja_injection_prompt.json",
"repo_id": "langchain",
"token_count": 148
} | 426 |
// 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/exec/expression/LogicalBinaryExpr.cpp/0 | {
"file_path": "milvus/internal/core/src/exec/expression/LogicalBinaryExpr.cpp",
"repo_id": "milvus",
"token_count": 692
} | 1,726 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.