text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
command:
- python3
- train.py
method: random
parameters:
lr:
values: [4e-5, 3e-5]
warmup_steps:
values: [20000, 15000, 10000, 5000]
weight_decay:
distribution: normal
mu: 1e-2
sigma: 2e-3
metric:
... | transformers/examples/research_projects/jax-projects/big_bird/sweep_flax.yaml/0 | {
"file_path": "transformers/examples/research_projects/jax-projects/big_bird/sweep_flax.yaml",
"repo_id": "transformers",
"token_count": 222
} | 602 |
from langchain_community.vectorstores.atlas import AtlasDB
__all__ = ["AtlasDB"]
| langchain/libs/langchain/langchain/vectorstores/atlas.py/0 | {
"file_path": "langchain/libs/langchain/langchain/vectorstores/atlas.py",
"repo_id": "langchain",
"token_count": 26
} | 579 |
input_variables: []
output_parser: null
template: "Say hello world."
template_format: f-string
| langchainjs/langchain/src/prompts/tests/prompts/hello_world.yaml/0 | {
"file_path": "langchainjs/langchain/src/prompts/tests/prompts/hello_world.yaml",
"repo_id": "langchainjs",
"token_count": 29
} | 979 |
python_tests()
| llama_index/llama-index-packs/llama-index-packs-ollama-query-engine/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-ollama-query-engine/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,805 |
import { useEffect, useRef } from "react";
import { Chat as ChatType } from "../hooks/useChatList";
import { StreamStateProps } from "../hooks/useStreamState";
import { useChatMessages } from "../hooks/useChatMessages";
import TypingBox from "./TypingBox";
import { Message } from "./Message";
import { ArrowDownCircleIc... | opengpts/frontend/src/components/Chat.tsx/0 | {
"file_path": "opengpts/frontend/src/components/Chat.tsx",
"repo_id": "opengpts",
"token_count": 1191
} | 1,922 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "runnables",
newEntrypointName: "runnables",
newPackageName: "@langchain/core",
});
export * from "@langchain/core/runnables";
| langchainjs/langchain/src/runnables/index.ts/0 | {
"file_path": "langchainjs/langchain/src/runnables/index.ts",
"repo_id": "langchainjs",
"token_count": 93
} | 933 |
import { jest } from "@jest/globals";
import { Client } from "../client.js";
import {
getEnvironmentVariables,
getLangChainEnvVars,
getLangChainEnvVarsMetadata,
} from "../utils/env.js";
describe("Client", () => {
describe("createLLMExample", () => {
it("should create an example with the given input and ge... | langsmith-sdk/js/src/tests/client.test.ts/0 | {
"file_path": "langsmith-sdk/js/src/tests/client.test.ts",
"repo_id": "langsmith-sdk",
"token_count": 2590
} | 1,068 |
export {
type PipelinePromptParams,
type PipelinePromptTemplateInput,
PipelinePromptTemplate,
} from "@langchain/core/prompts";
| langchainjs/langchain/src/prompts/pipeline.ts/0 | {
"file_path": "langchainjs/langchain/src/prompts/pipeline.ts",
"repo_id": "langchainjs",
"token_count": 41
} | 978 |
"""Utilities for the Playwright browser tools."""
from __future__ import annotations
import asyncio
from typing import TYPE_CHECKING, Any, Coroutine, List, Optional, TypeVar
if TYPE_CHECKING:
from playwright.async_api import Browser as AsyncBrowser
from playwright.async_api import Page as AsyncPage
from p... | langchain/libs/community/langchain_community/tools/playwright/utils.py/0 | {
"file_path": "langchain/libs/community/langchain_community/tools/playwright/utils.py",
"repo_id": "langchain",
"token_count": 1071
} | 292 |
import copy
import json
from json import JSONDecodeError
from typing import Any, List, Type
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseGenerationOutputParser
from langchain_core.output_parsers.json import parse_partial_json
from langchain_core.outputs impo... | langchain/libs/langchain/langchain/output_parsers/openai_tools.py/0 | {
"file_path": "langchain/libs/langchain/langchain/output_parsers/openai_tools.py",
"repo_id": "langchain",
"token_count": 1611
} | 552 |
import threading
import pytest
import time
import random
from pathlib import Path
from time import sleep
from pymilvus import connections
from chaos.checker import (InsertFlushChecker, SearchChecker, QueryChecker, Op)
from common.cus_resource_opts import CustomResourceOperations as CusResource
from common.milvus_sys... | milvus/tests/python_client/chaos/test_chaos_multi_replicas.py/0 | {
"file_path": "milvus/tests/python_client/chaos/test_chaos_multi_replicas.py",
"repo_id": "milvus",
"token_count": 5046
} | 1,971 |
package connection
import (
"time"
"go.uber.org/zap"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
)
type clientInfo struct {
*commonpb.ClientInfo
identifier int64
lastActiveTime time.Time
}
func (c *clientInfo) GetLogger() []zap.Field {
fields := ZapClientInfo(c.ClientInfo)
fields = append(fi... | milvus/internal/proxy/connection/client_info.go/0 | {
"file_path": "milvus/internal/proxy/connection/client_info.go",
"repo_id": "milvus",
"token_count": 177
} | 1,824 |
python_tests()
| llama_index/llama-index-integrations/llms/llama-index-llms-openrouter/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-openrouter/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,296 |
<jupyter_start><jupyter_text>Run TemplateIn `server.py`, set -```add_routes(app, chain_rag_conv, path="/rag-chroma-multi-modal")```<jupyter_code>from langserve.client import RemoteRunnable
rag_app = RemoteRunnable("http://localhost:8001/rag-chroma-multi-modal")
rag_app.invoke("What is the projected TAM for observabili... | langchain/templates/rag-chroma-multi-modal/rag_chroma_multi_modal.ipynb/0 | {
"file_path": "langchain/templates/rag-chroma-multi-modal/rag_chroma_multi_modal.ipynb",
"repo_id": "langchain",
"token_count": 138
} | 690 |
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql" | langchainjs/examples/src/indexes/vector_stores/prisma_vectorstore/prisma/migrations/migration_lock.toml/0 | {
"file_path": "langchainjs/examples/src/indexes/vector_stores/prisma_vectorstore/prisma/migrations/migration_lock.toml",
"repo_id": "langchainjs",
"token_count": 36
} | 832 |
<!--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 applicable law or agreed... | transformers/docs/source/en/model_doc/flan-ul2.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/flan-ul2.md",
"repo_id": "transformers",
"token_count": 785
} | 483 |
python_sources()
| llama_index/llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,491 |
# coding=utf-8
# Copyright 2021 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/tests/models/convbert/test_modeling_tf_convbert.py/0 | {
"file_path": "transformers/tests/models/convbert/test_modeling_tf_convbert.py",
"repo_id": "transformers",
"token_count": 8020
} | 714 |
<jupyter_start><jupyter_text>Access intermediate stepsIn order to get more visibility into what an agent is doing, we can also return intermediate steps. This comes in the form of an extra key in the return value, which is a list of (action, observation) tuples.<jupyter_code># pip install wikipedia
from langchain impor... | langchain/docs/docs/modules/agents/how_to/intermediate_steps.ipynb/0 | {
"file_path": "langchain/docs/docs/modules/agents/how_to/intermediate_steps.ipynb",
"repo_id": "langchain",
"token_count": 579
} | 199 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-earnings-call-transcript/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-earnings-call-transcript/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,361 |
python_sources()
| llama_index/llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/output_parsers/llama-index-output-parsers-langchain/llama_index/output_parsers/langchain/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,314 |
# Customizing LLMs within LlamaIndex Abstractions
You can plugin these LLM abstractions within our other modules in LlamaIndex (indexes, retrievers, query engines, agents) which allow you to build advanced workflows over your data.
By default, we use OpenAI's `gpt-3.5-turbo` model. But you may choose to customize
the... | llama_index/docs/module_guides/models/llms/usage_custom.md/0 | {
"file_path": "llama_index/docs/module_guides/models/llms/usage_custom.md",
"repo_id": "llama_index",
"token_count": 2919
} | 1,146 |
# HNSWLib Self Query Retriever
This example shows how to use a self query retriever with an HNSWLib vector store.
## Usage
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";
<IntegrationInstallTooltip></IntegrationInstallTooltip>
```bash npm2yarn
npm install @langchain/openai ... | langchainjs/docs/core_docs/docs/modules/data_connection/retrievers/self_query/hnswlib-self-query.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/modules/data_connection/retrievers/self_query/hnswlib-self-query.mdx",
"repo_id": "langchainjs",
"token_count": 383
} | 742 |
python_sources()
| llama_index/llama-index-integrations/llms/llama-index-llms-konko/llama_index/llms/konko/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-konko/llama_index/llms/konko/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,260 |
---
sidebar_position: 0
sidebar_class_name: hidden
---
# API chains
APIChain enables using LLMs to interact with APIs to retrieve relevant information. Construct the chain by providing a question relevant to the provided API documentation.
If your API requires authentication or other headers, you can pass the chain ... | langchainjs/docs/core_docs/docs/modules/chains/popular/api.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/modules/chains/popular/api.mdx",
"repo_id": "langchainjs",
"token_count": 193
} | 728 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-zulip/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-zulip/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,581 |
# coding=utf-8
# Copyright 2023 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/seamless_m4t_v2/convert_fairseq2_to_hf.py/0 | {
"file_path": "transformers/src/transformers/models/seamless_m4t_v2/convert_fairseq2_to_hf.py",
"repo_id": "transformers",
"token_count": 6572
} | 654 |
import { BaseOutputParser } from "@langchain/core/output_parsers";
import { Plan } from "./base.js";
import { PLANNER_SYSTEM_PROMPT_MESSAGE_TEMPLATE } from "./prompt.js";
/**
* Specific implementation of the `BaseOutputParser` class designed to
* parse the output text into a `Plan` object.
*/
export class PlanOutp... | langchainjs/langchain/src/experimental/plan_and_execute/outputParser.ts/0 | {
"file_path": "langchainjs/langchain/src/experimental/plan_and_execute/outputParser.ts",
"repo_id": "langchainjs",
"token_count": 471
} | 991 |
# coding=utf-8
# Copyright 2020 Huggingface
#
# 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/tests/models/dpr/test_modeling_tf_dpr.py/0 | {
"file_path": "transformers/tests/models/dpr/test_modeling_tf_dpr.py",
"repo_id": "transformers",
"token_count": 4568
} | 797 |
import posthog
import logging
import sys
from typing import Any, Dict, Set
from chromadb.config import System
from chromadb.telemetry.product import (
ProductTelemetryClient,
ProductTelemetryEvent,
)
from overrides import override
logger = logging.getLogger(__name__)
class Posthog(ProductTelemetryClient):
... | chroma/chromadb/telemetry/product/posthog.py/0 | {
"file_path": "chroma/chromadb/telemetry/product/posthog.py",
"repo_id": "chroma",
"token_count": 941
} | 22 |
<!--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
Unless required by applicable law or agreed... | transformers/docs/source/en/model_doc/trocr.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/trocr.md",
"repo_id": "transformers",
"token_count": 2132
} | 466 |
# 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... | trl/tests/test_no_peft.py/0 | {
"file_path": "trl/tests/test_no_peft.py",
"repo_id": "trl",
"token_count": 2522
} | 885 |
import {
BaseChatModel,
type BaseChatModelParams,
} from "@langchain/core/language_models/chat_models";
import { AIMessage, BaseMessage, ChatMessage } from "@langchain/core/messages";
import { ChatGeneration, ChatResult } from "@langchain/core/outputs";
import { CallbackManagerForLLMRun } from "@langchain/core/call... | langchainjs/libs/langchain-community/src/chat_models/baiduwenxin.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/chat_models/baiduwenxin.ts",
"repo_id": "langchainjs",
"token_count": 6288
} | 976 |
"""Module contains common parsers for PDFs."""
from __future__ import annotations
import warnings
from typing import (
TYPE_CHECKING,
Any,
Iterable,
Iterator,
Mapping,
Optional,
Sequence,
Union,
)
from urllib.parse import urlparse
import numpy as np
from langchain_core.documents import... | langchain/libs/community/langchain_community/document_loaders/parsers/pdf.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/pdf.py",
"repo_id": "langchain",
"token_count": 10254
} | 245 |
[tool.poetry]
name = "rag-gemini-multi-modal"
version = "0.1.0"
description = "Multi-modal RAG using Gemini and OpenCLIP embeddings"
authors = [
"Lance Martin <lance@langchain.dev>",
]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
langchain = ">=0.0.353,<0.2"
openai = "<2"
tiktoken = ">=0.5... | langchain/templates/rag-gemini-multi-modal/pyproject.toml/0 | {
"file_path": "langchain/templates/rag-gemini-multi-modal/pyproject.toml",
"repo_id": "langchain",
"token_count": 393
} | 732 |
import re
from pathlib import Path
from typing import List
from langchain_core.documents import Document
from langchain_community.document_loaders.base import BaseLoader
def concatenate_rows(date: str, sender: str, text: str) -> str:
"""Combine message information in a readable format ready to be used."""
r... | langchain/libs/community/langchain_community/document_loaders/whatsapp_chat.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/whatsapp_chat.py",
"repo_id": "langchain",
"token_count": 952
} | 247 |
from llama_index.program.guidance.base import GuidancePydanticProgram
__all__ = ["GuidancePydanticProgram"]
| llama_index/llama-index-integrations/program/llama-index-program-guidance/llama_index/program/guidance/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/program/llama-index-program-guidance/llama_index/program/guidance/__init__.py",
"repo_id": "llama_index",
"token_count": 36
} | 1,442 |
from llama_index.vector_stores.typesense.base import TypesenseVectorStore
__all__ = ["TypesenseVectorStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-typesense/llama_index/vector_stores/typesense/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-typesense/llama_index/vector_stores/typesense/__init__.py",
"repo_id": "llama_index",
"token_count": 32
} | 1,628 |
import CodeBlock from "@theme/CodeBlock";
# Generative Agents
import GenerativeAgentsScript from "@examples/experimental/generative_agents/generative_agents.ts";
This script implements a generative agent based on the paper [Generative Agents: Interactive Simulacra of Human Behavior](https://arxiv.org/abs/2304.03442)... | langchainjs/docs/core_docs/docs/use_cases/agent_simulations/generative_agents.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/use_cases/agent_simulations/generative_agents.mdx",
"repo_id": "langchainjs",
"token_count": 265
} | 753 |
from llama_index.core.readers.base import BaseReader
from llama_index.readers.singlestore import SingleStoreReader
def test_class():
names_of_base_classes = [b.__name__ for b in SingleStoreReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/readers/llama-index-readers-singlestore/tests/test_readers_singlestore.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-singlestore/tests/test_readers_singlestore.py",
"repo_id": "llama_index",
"token_count": 89
} | 1,375 |
"""Chain for chatting with a vector database."""
| langchain/libs/langchain/langchain/chains/conversational_retrieval/__init__.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/conversational_retrieval/__init__.py",
"repo_id": "langchain",
"token_count": 11
} | 459 |
# coding=utf-8
# Copyright 2022 Meta Platforms, Inc. and 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... | transformers/src/transformers/models/maskformer/convert_maskformer_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "transformers/src/transformers/models/maskformer/convert_maskformer_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "transformers",
"token_count": 16104
} | 629 |
python_sources()
| llama_index/llama-index-core/llama_index/core/evaluation/BUILD/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/evaluation/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,144 |
<jupyter_start><jupyter_text>Alternative Embeddings This notebook demonstrates how to use alternative embedding functions.<jupyter_code>import chromadb
client = chromadb.Client()
from chromadb.utils import embedding_functions
# Using OpenAI Embeddings. This assumes you have the openai package installed
openai_ef = emb... | chroma/examples/basic_functionality/alternative_embeddings.ipynb/0 | {
"file_path": "chroma/examples/basic_functionality/alternative_embeddings.ipynb",
"repo_id": "chroma",
"token_count": 1305
} | 35 |
"""Question answering over a graph."""
from __future__ import annotations
import re
from typing import Any, Dict, List, Optional
from langchain_community.graphs import FalkorDBGraph
from langchain_core.callbacks import CallbackManagerForChainRun
from langchain_core.language_models import BaseLanguageModel
from langch... | langchain/libs/langchain/langchain/chains/graph_qa/falkordb.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/graph_qa/falkordb.py",
"repo_id": "langchain",
"token_count": 2074
} | 467 |
import logging
from typing import Any, Dict, List, Mapping, Optional
import requests
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.llms import LLM
from langchain_core.pydantic_v1 import Extra, Field, root_validator
from langchain_community.llms.utils import enforce_... | langchain/libs/community/langchain_community/llms/modal.py/0 | {
"file_path": "langchain/libs/community/langchain_community/llms/modal.py",
"repo_id": "langchain",
"token_count": 1392
} | 279 |
insert_search_performance:
collections:
-
milvus:
db_config.primary_path: /test/milvus/distribued/sift_10w_128_l2_ivf_flat
cache_config.cpu_cache_capacity: 8GB
engine_config.use_blas_threshold: 0
engine_config.gpu_search_threshold: 200
gpu_resource_config.enable: true... | milvus/tests/benchmark/milvus_benchmark/suites/2_insert_search_debug.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/2_insert_search_debug.yaml",
"repo_id": "milvus",
"token_count": 477
} | 2,091 |
# coding=utf-8
# Copyright 2023 Meta AI and 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
... | transformers/src/transformers/models/musicgen/modeling_musicgen.py/0 | {
"file_path": "transformers/src/transformers/models/musicgen/modeling_musicgen.py",
"repo_id": "transformers",
"token_count": 53469
} | 639 |
// 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/src/storage/azure-blob-storage/test/test_azure_blob_chunk_manager.cpp/0 | {
"file_path": "milvus/internal/core/src/storage/azure-blob-storage/test/test_azure_blob_chunk_manager.cpp",
"repo_id": "milvus",
"token_count": 1671
} | 1,669 |
"""Pathway Retriever."""
import logging
from typing import Any, Callable, List, Optional, Tuple, Union
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.base.embeddings.base import BaseEmbedding
from llama_index.core.callbacks.base import CallbackManager
from llama_index.core.consta... | llama_index/llama-index-integrations/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/retrievers/llama-index-retrievers-pathway/llama_index/retrievers/pathway/base.py",
"repo_id": "llama_index",
"token_count": 2569
} | 1,549 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "tools/wikipedia_query_run",
});
export * from "@langchain/community/tools/wikipedia_query_run";
| langchainjs/langchain/src/tools/wikipedia_query_run.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/wikipedia_query_run.ts",
"repo_id": "langchainjs",
"token_count": 76
} | 975 |
# Infer-Retrieve-Rerank LlamaPack
This is our implementation of the paper ["In-Context Learning for Extreme Multi-Label Classification](https://arxiv.org/pdf/2401.12178.pdf) by Oosterlinck et al.
The paper proposes "infer-retrieve-rerank", a simple paradigm using frozen LLM/retriever models that can do "extreme"-labe... | llama_index/llama-index-packs/llama-index-packs-infer-retrieve-rerank/README.md/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-infer-retrieve-rerank/README.md",
"repo_id": "llama_index",
"token_count": 686
} | 1,570 |
import asyncio
import json
from typing import Any
from unittest import mock
from langchain_community.document_transformers.nuclia_text_transform import (
NucliaTextTransformer,
)
from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
from langchain_core.documents import Document
def fakerun(**a... | langchain/libs/langchain/tests/integration_tests/test_nuclia_transformer.py/0 | {
"file_path": "langchain/libs/langchain/tests/integration_tests/test_nuclia_transformer.py",
"repo_id": "langchain",
"token_count": 1103
} | 627 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "chat_models/llama_cpp",
});
export * from "@langchain/community/chat_models/llama_cpp";
| langchainjs/langchain/src/chat_models/llama_cpp.ts/0 | {
"file_path": "langchainjs/langchain/src/chat_models/llama_cpp.ts",
"repo_id": "langchainjs",
"token_count": 78
} | 936 |
<jupyter_start><jupyter_text>Together AI> The Together API makes it easy to fine-tune or run leading open-source models with a couple lines of code. We have integrated the world’s leading open-source models, including Llama-2, RedPajama, Falcon, Alpaca, Stable Diffusion XL, and more. Read more: https://together.aiTo us... | langchain/docs/docs/integrations/providers/together.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/providers/together.ipynb",
"repo_id": "langchain",
"token_count": 247
} | 150 |
#!/usr/bin/env python
# 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
#
# Unles... | accelerate/src/accelerate/test_utils/scripts/test_ops.py/0 | {
"file_path": "accelerate/src/accelerate/test_utils/scripts/test_ops.py",
"repo_id": "accelerate",
"token_count": 2347
} | 13 |
# 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/tests/test_ppo_trainer.py/0 | {
"file_path": "trl/tests/test_ppo_trainer.py",
"repo_id": "trl",
"token_count": 22363
} | 862 |
package segments
import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/proto/querypb"
)
type ReducerFactorySuite struct {
suite.Suite
ir internalReducer
sr segCoreReducer
ok bool
}
func (suite *ReducerFactorySuit... | milvus/internal/querynodev2/segments/reducer_test.go/0 | {
"file_path": "milvus/internal/querynodev2/segments/reducer_test.go",
"repo_id": "milvus",
"token_count": 529
} | 1,994 |
from llama_index.llms.konko.base import Konko
__all__ = ["Konko"]
| llama_index/llama-index-integrations/llms/llama-index-llms-konko/llama_index/llms/konko/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-konko/llama_index/llms/konko/__init__.py",
"repo_id": "llama_index",
"token_count": 29
} | 1,282 |
# coding=utf-8
# Copyright 2018 Salesforce and 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 a... | transformers/tests/models/ctrl/test_modeling_ctrl.py/0 | {
"file_path": "transformers/tests/models/ctrl/test_modeling_ctrl.py",
"repo_id": "transformers",
"token_count": 4859
} | 739 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/slides/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/slides/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,493 |
# coding=utf-8
# Copyright 2021 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 law o... | transformers/tests/models/bartpho/test_tokenization_bartpho.py/0 | {
"file_path": "transformers/tests/models/bartpho/test_tokenization_bartpho.py",
"repo_id": "transformers",
"token_count": 1058
} | 768 |
"""Init file."""
| llama_index/llama-index-integrations/readers/llama-index-readers-minio/llama_index/readers/minio/boto3_client/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-minio/llama_index/readers/minio/boto3_client/__init__.py",
"repo_id": "llama_index",
"token_count": 6
} | 1,431 |
from llama_index.core.readers.base import BaseReader
from llama_index.readers.stackoverflow import StackoverflowReader
def test_class():
names_of_base_classes = [b.__name__ for b in StackoverflowReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/readers/llama-index-readers-stackoverflow/tests/test_readers_stackoverflow.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-stackoverflow/tests/test_readers_stackoverflow.py",
"repo_id": "llama_index",
"token_count": 91
} | 1,385 |
import { test, jest, expect } from "@jest/globals";
import {
ConfluencePagesLoader,
ConfluenceAPIResponse,
} from "../web/confluence.js";
type TestConfluencePagesLoaderType = ConfluencePagesLoader & {
fetchConfluenceData: (url: string) => Promise<ConfluenceAPIResponse>;
};
test("Test ConfluenceLoader and fetchC... | langchainjs/langchain/src/document_loaders/tests/confluence.test.ts/0 | {
"file_path": "langchainjs/langchain/src/document_loaders/tests/confluence.test.ts",
"repo_id": "langchainjs",
"token_count": 1070
} | 864 |
import json
from typing import AsyncGenerator, Dict
from unittest.mock import MagicMock, patch
import pytest
from langchain_community.llms.bedrock import (
ALTERNATION_ERROR,
Bedrock,
_human_assistant_format,
)
TEST_CASES = {
"""Hey""": """
Human: Hey
Assistant:""",
"""
Human: Hello
Assistant... | langchain/libs/community/tests/unit_tests/llms/test_bedrock.py/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/llms/test_bedrock.py",
"repo_id": "langchain",
"token_count": 1782
} | 379 |
from langchain_community.llms.nlpcloud import NLPCloud
__all__ = ["NLPCloud"]
| langchain/libs/langchain/langchain/llms/nlpcloud.py/0 | {
"file_path": "langchain/libs/langchain/langchain/llms/nlpcloud.py",
"repo_id": "langchain",
"token_count": 28
} | 541 |
# flake8: noqa
SYSTEM_MESSAGE_PREFIX = """Answer the following questions as best you can. You have access to the following tools:"""
FORMAT_INSTRUCTIONS = """The way you use the tools is by specifying a json blob.
Specifically, this json should have a `action` key (with the name of the tool to use) and a `action_input`... | langchain/libs/langchain/langchain/agents/chat/prompt.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/chat/prompt.py",
"repo_id": "langchain",
"token_count": 344
} | 450 |
"""OpenAPI spec agent."""
| langchain/libs/langchain/langchain/agents/agent_toolkits/openapi/__init__.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/agent_toolkits/openapi/__init__.py",
"repo_id": "langchain",
"token_count": 8
} | 446 |
from typing import TypeVar, Union, Sequence
_T = TypeVar("_T")
_ArrayLike = Union[
_T,
Sequence[_T],
Sequence[Sequence[_T]],
Sequence[Sequence[Sequence[_T]]],
Sequence[Sequence[Sequence[Sequence[_T]]]],
]
CPU: str = "cpu"
CUDA: str = "cuda"
Device = TypeVar("Device", CPU, CUDA)
Scalar = Union[i... | candle/candle-pyo3/py_src/candle/typing/__init__.py/0 | {
"file_path": "candle/candle-pyo3/py_src/candle/typing/__init__.py",
"repo_id": "candle",
"token_count": 166
} | 63 |
import os
import tempfile
import unittest
import pytest
class TestOntotextGraphDBGraph(unittest.TestCase):
def test_import(self) -> None:
from langchain_community.graphs import OntotextGraphDBGraph # noqa: F401
@pytest.mark.requires("rdflib")
def test_validate_user_query_wrong_type(self) -> Non... | langchain/libs/community/tests/unit_tests/graphs/test_ontotext_graphdb_graph.py/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/graphs/test_ontotext_graphdb_graph.py",
"repo_id": "langchain",
"token_count": 3403
} | 385 |
# coding=utf-8
# Copyright 2023 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/tests/models/mgp_str/test_tokenization_mgp_str.py/0 | {
"file_path": "transformers/tests/models/mgp_str/test_tokenization_mgp_str.py",
"repo_id": "transformers",
"token_count": 1600
} | 812 |
<jupyter_start><jupyter_text>Jaguar Vector StoreThis document demonstrates llama_index working with Jaguar vector store.- It is a distributed vector database that can store large number of vectors.- The ZeroMove feature enables instant horizontal scaling.- It supports embeddings, text, images, videos, PDFs, audio, time... | llama_index/docs/examples/vector_stores/JaguarIndexDemo.ipynb/0 | {
"file_path": "llama_index/docs/examples/vector_stores/JaguarIndexDemo.ipynb",
"repo_id": "llama_index",
"token_count": 2292
} | 1,146 |
from langchain_community.tools.gmail.send_message import (
GmailSendMessage,
SendMessageSchema,
)
__all__ = ["SendMessageSchema", "GmailSendMessage"]
| langchain/libs/langchain/langchain/tools/gmail/send_message.py/0 | {
"file_path": "langchain/libs/langchain/langchain/tools/gmail/send_message.py",
"repo_id": "langchain",
"token_count": 53
} | 576 |
<jupyter_start><jupyter_text>SerpAPIThis notebook goes over how to use the SerpAPI component to search the web.<jupyter_code>from langchain_community.utilities import SerpAPIWrapper
search = SerpAPIWrapper()
search.run("Obama's first name?")<jupyter_output><empty_output><jupyter_text>Custom ParametersYou can also custo... | langchain/docs/docs/integrations/tools/serpapi.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/tools/serpapi.ipynb",
"repo_id": "langchain",
"token_count": 305
} | 177 |
import math
import os
import urllib
import warnings
from argparse import ArgumentParser
import torch
import torch.nn as nn
import torch.nn.functional as F
from huggingface_hub.utils import insecure_hashlib
from safetensors.torch import load_file as stl
from tqdm import tqdm
from diffusers import AutoencoderKL, Consis... | diffusers/scripts/convert_consistency_decoder.py/0 | {
"file_path": "diffusers/scripts/convert_consistency_decoder.py",
"repo_id": "diffusers",
"token_count": 21911
} | 221 |
/**
* Type definitions adapted from pdfjs-dist
* https://github.com/mozilla/pdfjs-dist/blob/master/types/src/display/api.d.ts
*/
declare module "pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js" {
export type TypedArray =
| Int8Array
| Uint8Array
| Uint8ClampedArray
| Int16Array
| Uint16Array
|... | langchainjs/langchain/src/types/pdf-parse.d.ts/0 | {
"file_path": "langchainjs/langchain/src/types/pdf-parse.d.ts",
"repo_id": "langchainjs",
"token_count": 18146
} | 1,026 |
// Copyright (C) 2019-2023 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/src/simd/hook.h/0 | {
"file_path": "milvus/internal/core/src/simd/hook.h",
"repo_id": "milvus",
"token_count": 2621
} | 1,802 |
python_sources()
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-together/llama_index/embeddings/together/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-together/llama_index/embeddings/together/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,204 |
import json
import logging
from pathlib import Path
from typing import List
from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.messages import (
BaseMessage,
messages_from_dict,
messages_to_dict,
)
logger = logging.getLogger(__name__)
class FileChatMessageHistory(BaseChat... | langchain/libs/community/langchain_community/chat_message_histories/file.py/0 | {
"file_path": "langchain/libs/community/langchain_community/chat_message_histories/file.py",
"repo_id": "langchain",
"token_count": 521
} | 216 |
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.neo4j import Neo4jQueryToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in Neo4jQueryToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/tests/test_tools_neo4j_db.py/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-neo4j/tests/test_tools_neo4j_db.py",
"repo_id": "llama_index",
"token_count": 100
} | 1,446 |
"""Utility functions for parsing an OpenAPI spec."""
from __future__ import annotations
import copy
import json
import logging
import re
from enum import Enum
from pathlib import Path
from typing import TYPE_CHECKING, Dict, List, Optional, Union
import requests
import yaml
from langchain_core.pydantic_v1 import Valid... | langchain/libs/community/langchain_community/utilities/openapi.py/0 | {
"file_path": "langchain/libs/community/langchain_community/utilities/openapi.py",
"repo_id": "langchain",
"token_count": 4701
} | 302 |
postgresql_template = (
"You are a Postgres expert. Given an input question, first create a "
"syntactically correct Postgres query to run, then look at the results "
"of the query and return the answer to the input question.\n"
"Unless the user specifies in the question a specific number of "
"exam... | langchain/templates/sql-pgvector/sql_pgvector/prompt_templates.py/0 | {
"file_path": "langchain/templates/sql-pgvector/sql_pgvector/prompt_templates.py",
"repo_id": "langchain",
"token_count": 787
} | 756 |
# Metric Card for Competition MATH
## Metric description
This metric is used to assess performance on the [Mathematics Aptitude Test of Heuristics (MATH) dataset](https://huggingface.co/datasets/competition_math).
It first canonicalizes the inputs (e.g., converting `1/2` to `\\frac{1}{2}`) and then computes accurac... | datasets/metrics/competition_math/README.md/0 | {
"file_path": "datasets/metrics/competition_math/README.md",
"repo_id": "datasets",
"token_count": 1135
} | 118 |
from langchain_community.document_loaders.org_mode import UnstructuredOrgModeLoader
__all__ = ["UnstructuredOrgModeLoader"]
| langchain/libs/langchain/langchain/document_loaders/org_mode.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/org_mode.py",
"repo_id": "langchain",
"token_count": 36
} | 533 |
import { jest } from "@jest/globals";
import { v4 as uuidv4 } from "uuid";
import { Client } from "../client.js";
import { convertToDottedOrderFormat } from "../run_trees.js";
describe("Batch client tracing", () => {
it("should create a batched run with the given input", async () => {
const client = new Client({... | langsmith-sdk/js/src/tests/batch_client.test.ts/0 | {
"file_path": "langsmith-sdk/js/src/tests/batch_client.test.ts",
"repo_id": "langsmith-sdk",
"token_count": 4531
} | 1,067 |
python_sources()
| llama_index/llama-index-finetuning/llama_index/finetuning/gradient/BUILD/0 | {
"file_path": "llama_index/llama-index-finetuning/llama_index/finetuning/gradient/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,161 |
"""Vector Store in Google Cloud BigQuery."""
from __future__ import annotations
import asyncio
import json
import logging
import sys
import uuid
from datetime import datetime
from functools import partial
from threading import Lock, Thread
from typing import Any, Callable, Dict, List, Optional, Tuple, Type
import num... | langchain/libs/community/langchain_community/vectorstores/bigquery_vector_search.py/0 | {
"file_path": "langchain/libs/community/langchain_community/vectorstores/bigquery_vector_search.py",
"repo_id": "langchain",
"token_count": 16546
} | 326 |
# Metaphor Tool
# ================================================================================
NOTE: Deprecated in favor of Exa Tool.
# ================================================================================
This tool connects to [Metaphor](https://metaphor.systems/) to easily enable
your agent to sear... | llama_index/llama-index-integrations/tools/llama-index-tools-metaphor/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-metaphor/README.md",
"repo_id": "llama_index",
"token_count": 449
} | 1,442 |
search_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_011/sift_10m_128_l2
cache_config.cpu_cache_capacity: 32GB
engine_config.use_blas_threshold: 0
engine_config.gpu_search_threshold: 100
gpu_resource_config.enable: true
gpu_r... | milvus/tests/benchmark/milvus_benchmark/suites/011_gpu_search_sift10m.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_gpu_search_sift10m.yaml",
"repo_id": "milvus",
"token_count": 2331
} | 2,088 |
####################################################################################################
# Copyright (c) 2021-, NVIDIA CORPORATION. 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... | transformers/src/transformers/models/megatron_bert/convert_megatron_bert_checkpoint.py/0 | {
"file_path": "transformers/src/transformers/models/megatron_bert/convert_megatron_bert_checkpoint.py",
"repo_id": "transformers",
"token_count": 5187
} | 631 |
<jupyter_start><jupyter_text>LLM Pydantic Program This guide shows you how to generate structured data with our `LLMTextCompletionProgram`. Given an LLM as well as an output Pydantic class, generate a structured Pydantic object.In terms of the target object, you can choose to directly specify `output_cls`, or specify a... | llama_index/docs/examples/output_parsing/llm_program.ipynb/0 | {
"file_path": "llama_index/docs/examples/output_parsing/llm_program.ipynb",
"repo_id": "llama_index",
"token_count": 1336
} | 1,120 |
#! /usr/bin/env python3
# coding=utf-8
# Copyright (c) 2019 Uber Technologies, 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 ... | transformers/examples/research_projects/pplm/run_pplm_discrim_train.py/0 | {
"file_path": "transformers/examples/research_projects/pplm/run_pplm_discrim_train.py",
"repo_id": "transformers",
"token_count": 8810
} | 551 |
# coding=utf-8
# Copyright 2021 The OpenAI Team Authors and 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/imagegpt/modeling_imagegpt.py/0 | {
"file_path": "transformers/src/transformers/models/imagegpt/modeling_imagegpt.py",
"repo_id": "transformers",
"token_count": 23704
} | 685 |
// 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/src/query/SearchOnIndex.h/0 | {
"file_path": "milvus/internal/core/src/query/SearchOnIndex.h",
"repo_id": "milvus",
"token_count": 326
} | 1,793 |
package typeutil
import (
"github.com/apache/arrow/go/v12/arrow"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/storage"
"github.com/milvus-io/milvus/pkg/util/merr"
)
func ConvertToArrowSchema(fields []*schemapb.FieldSchema) (*arrow.Schema, error) {
arrowFields := m... | milvus/internal/util/typeutil/schema.go/0 | {
"file_path": "milvus/internal/util/typeutil/schema.go",
"repo_id": "milvus",
"token_count": 1519
} | 2,082 |
<jupyter_start><jupyter_text>Rockset>[Rockset](https://rockset.com/product/) is a real-time analytics database service for serving low latency, high concurrency analytical queries at scale. It builds a Converged Index™ on structured and semi-structured data with an efficient store for vector embeddings. Its support for... | langchain/docs/docs/integrations/memory/rockset_chat_message_history.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/memory/rockset_chat_message_history.ipynb",
"repo_id": "langchain",
"token_count": 418
} | 125 |
# LlamaIndex Vector_Stores Integration: Chroma
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/README.md",
"repo_id": "llama_index",
"token_count": 13
} | 1,514 |
// Code generated by mockery v2.32.4. DO NOT EDIT.
package msgstream
import (
context "context"
mqwrapper "github.com/milvus-io/milvus/pkg/mq/msgstream/mqwrapper"
mock "github.com/stretchr/testify/mock"
msgpb "github.com/milvus-io/milvus-proto/go-api/v2/msgpb"
)
// MockMsgStream is an autogenerated mock type f... | milvus/pkg/mq/msgstream/mock_msgstream.go/0 | {
"file_path": "milvus/pkg/mq/msgstream/mock_msgstream.go",
"repo_id": "milvus",
"token_count": 6108
} | 2,037 |
#[repr(u8)]
pub enum TantivyDataType {
// Text,
Keyword,
// U64,
I64,
F64,
Bool,
}
| milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/data_type.rs/0 | {
"file_path": "milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/data_type.rs",
"repo_id": "milvus",
"token_count": 63
} | 1,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.