text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/indices/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/indices/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,595 |
# 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/fsmt/test_modeling_fsmt.py/0 | {
"file_path": "transformers/tests/models/fsmt/test_modeling_fsmt.py",
"repo_id": "transformers",
"token_count": 11152
} | 714 |
import logging
import uuid
from abc import ABC, abstractmethod
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
List,
Literal,
Optional,
Tuple,
Union,
)
import numpy as np
from langchain_core.documents import Document
from langchain_core.embeddings import Embed... | langchain/libs/community/langchain_community/vectorstores/elasticsearch.py/0 | {
"file_path": "langchain/libs/community/langchain_community/vectorstores/elasticsearch.py",
"repo_id": "langchain",
"token_count": 22569
} | 331 |
# LlamaIndex Program Integration: Openai Program
| llama_index/llama-index-integrations/program/llama-index-program-openai/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/program/llama-index-program-openai/README.md",
"repo_id": "llama_index",
"token_count": 11
} | 1,443 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "tools/ifttt",
});
export * from "@langchain/community/tools/ifttt";
| langchainjs/langchain/src/tools/IFTTTWebhook.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/IFTTTWebhook.ts",
"repo_id": "langchainjs",
"token_count": 72
} | 914 |
import { getEnvironmentVariable } from "@langchain/core/utils/env";
import { Tool } from "@langchain/core/tools";
/**
* Defines the parameters that can be passed to the Serper class during
* instantiation. It includes `gl` and `hl` which are optional.
*/
export type SerperParameters = {
gl?: string;
hl?: string... | langchainjs/libs/langchain-community/src/tools/serper.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/tools/serper.ts",
"repo_id": "langchainjs",
"token_count": 931
} | 1,042 |
# LlamaIndex Vector_Stores Integration: Singlestoredb
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-singlestoredb/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-singlestoredb/README.md",
"repo_id": "llama_index",
"token_count": 15
} | 1,536 |
""" Multi-Scale Vision Transformer v2
@inproceedings{li2021improved,
title={MViTv2: Improved multiscale vision transformers for classification and detection},
author={Li, Yanghao and Wu, Chao-Yuan and Fan, Haoqi and Mangalam, Karttikeya and Xiong, Bo and Malik, Jitendra and Feichtenhofer, Christoph},
booktitle={... | pytorch-image-models/timm/models/mvitv2.py/0 | {
"file_path": "pytorch-image-models/timm/models/mvitv2.py",
"repo_id": "pytorch-image-models",
"token_count": 19585
} | 387 |
# LlamaIndex Multi-Modal-Llms Integration: Replicate
| llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-replicate/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-replicate/README.md",
"repo_id": "llama_index",
"token_count": 17
} | 1,292 |
# LangSmith Cookbook
Welcome to the LangSmith Cookbook — your practical guide to mastering [LangSmith](https://smith.langchain.com/). While our [standard documentation](https://docs.smith.langchain.com/) covers the basics, this repository delves into common patterns and some real-world use-cases, empowering you to opt... | langsmith-cookbook/README.md/0 | {
"file_path": "langsmith-cookbook/README.md",
"repo_id": "langsmith-cookbook",
"token_count": 2511
} | 1,053 |
// 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/datacoord/server_test.go/0 | {
"file_path": "milvus/internal/datacoord/server_test.go",
"repo_id": "milvus",
"token_count": 53604
} | 1,966 |
#[cfg(feature = "mkl")]
extern crate intel_mkl_src;
#[cfg(feature = "accelerate")]
extern crate accelerate_src;
use anyhow::{Error as E, Result};
use clap::Parser;
use candle_transformers::models::bigcode::{Config, GPTBigCode};
use candle::{DType, Device, Tensor};
use candle_nn::VarBuilder;
use candle_transformers:... | candle/candle-examples/examples/bigcode/main.rs/0 | {
"file_path": "candle/candle-examples/examples/bigcode/main.rs",
"repo_id": "candle",
"token_count": 2134
} | 38 |
<!--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/zh/task_summary.md/0 | {
"file_path": "transformers/docs/source/zh/task_summary.md",
"repo_id": "transformers",
"token_count": 11225
} | 505 |
"""Simple Reader that reads transcript and general info of Bilibili video."""
import warnings
from typing import Any, List
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class BilibiliTranscriptReader(BaseReader):
"""Bilibili Transcript and video info reader.""... | llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/llama_index/readers/bilibili/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/llama_index/readers/bilibili/base.py",
"repo_id": "llama_index",
"token_count": 1068
} | 1,471 |
from langchain_community.utilities.python import PythonREPL
__all__ = ["PythonREPL"]
| langchain/libs/langchain/langchain/utilities/python.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/python.py",
"repo_id": "langchain",
"token_count": 26
} | 595 |
#!/bin/bash
set -e
release=${1:-"milvs-chaos"}
ns=${2:-"chaos-testing"}
bash uninstall_milvus.sh ${release} ${ns}|| true
echo "insatll standalone"
helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus"}... | milvus/tests/python_client/chaos/scripts/install_milvus_standalone.sh/0 | {
"file_path": "milvus/tests/python_client/chaos/scripts/install_milvus_standalone.sh",
"repo_id": "milvus",
"token_count": 275
} | 1,900 |
# Chat Bot Feedback Template
This template shows how to evaluate your chat bot without explicit user feedback. It defines a simple chat bot in [chain.py](https://github.com/langchain-ai/langchain/blob/master/templates/chat-bot-feedback/chat_bot_feedback/chain.py) and custom evaluator that scores bot response effective... | langchain/templates/chat-bot-feedback/README.md/0 | {
"file_path": "langchain/templates/chat-bot-feedback/README.md",
"repo_id": "langchain",
"token_count": 2028
} | 649 |
from typing import List
from llama_index.core.readers.base import BasePydanticReader
from llama_index.core.schema import Document
class TrafilaturaWebReader(BasePydanticReader):
"""Trafilatura web page reader.
Reads pages from the web.
Requires the `trafilatura` package.
"""
is_remote: bool = ... | llama_index/llama-index-integrations/readers/llama-index-readers-web/llama_index/readers/web/trafilatura_web/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-web/llama_index/readers/web/trafilatura_web/base.py",
"repo_id": "llama_index",
"token_count": 861
} | 1,459 |
# coding=utf-8
# 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 requir... | transformers/tests/models/wav2vec2_phoneme/test_tokenization_wav2vec2_phoneme.py/0 | {
"file_path": "transformers/tests/models/wav2vec2_phoneme/test_tokenization_wav2vec2_phoneme.py",
"repo_id": "transformers",
"token_count": 9963
} | 779 |
# ruff: noqa: E501
# fmt: off
template = (
"""
Split the given text into three parts: the question, the story_hypothetical, and the logic. Don't guess at any of the parts. Write NONE if you are unsure.
{format_instructions}
Q: Boris has seven times the number of pets as Marcia. Jan has three times the number ... | langchain/libs/experimental/langchain_experimental/cpal/templates/univariate/narrative.py/0 | {
"file_path": "langchain/libs/experimental/langchain_experimental/cpal/templates/univariate/narrative.py",
"repo_id": "langchain",
"token_count": 552
} | 440 |
# order by contributions
reviewers:
- XuanYang-cn
- cydrain
- scsven
- sunby
approvers:
- maintainers
| milvus/internal/datanode/OWNERS/0 | {
"file_path": "milvus/internal/datanode/OWNERS",
"repo_id": "milvus",
"token_count": 44
} | 1,967 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-packs/llama-index-packs-vectara-rag/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-vectara-rag/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,601 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-docstring-walker/llama_index/readers/docstring_walker/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,393 |
# flake8: noqa
from langchain_core.prompts.prompt import PromptTemplate
_DEFAULT_ENTITY_MEMORY_CONVERSATION_TEMPLATE = """You are an assistant to a human, powered by a large language model trained by OpenAI.
You are designed to be able to assist with a wide range of tasks, from answering simple questions to providing... | langchain/libs/langchain/langchain/memory/prompt.py/0 | {
"file_path": "langchain/libs/langchain/langchain/memory/prompt.py",
"repo_id": "langchain",
"token_count": 2390
} | 526 |
// 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/querycoordv2/session/node_manager.go/0 | {
"file_path": "milvus/internal/querycoordv2/session/node_manager.go",
"repo_id": "milvus",
"token_count": 1535
} | 1,900 |
"""Test AwaDB functionality."""
from langchain_core.documents import Document
from langchain_community.vectorstores import AwaDB
from tests.integration_tests.vectorstores.fake_embeddings import FakeEmbeddings
def test_awadb() -> None:
"""Test end to end construction and search."""
texts = ["foo", "bar", "baz... | langchain/libs/community/tests/integration_tests/vectorstores/test_awadb.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/vectorstores/test_awadb.py",
"repo_id": "langchain",
"token_count": 797
} | 353 |
"""Utility helpers to handle progress bars in `datasets`.
Example:
1. Use `datasets.utils.tqdm` as you would use `tqdm.tqdm` or `tqdm.auto.tqdm`.
2. To disable progress bars, either use `disable_progress_bars()` helper or set the
environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS` to 1.
3. To r... | datasets/src/datasets/utils/tqdm.py/0 | {
"file_path": "datasets/src/datasets/utils/tqdm.py",
"repo_id": "datasets",
"token_count": 1661
} | 145 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export4.dtd">
<en-export export-date="20230611T011239Z" application="Evernote" version="10.56.9">
<note>
<title>Test</title>
<created>20230511T011217Z</created>
<updated>20240714T011228Z</... | langchain/libs/community/tests/unit_tests/document_loaders/sample_documents/sample_notebook.enex/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/document_loaders/sample_documents/sample_notebook.enex",
"repo_id": "langchain",
"token_count": 566
} | 369 |
from operator import itemgetter
from langchain_community.chat_models import ChatOpenAI
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel
from langchain_core.runnables import ConfigurableField, RunnableParalle... | langchain/templates/neo4j-advanced-rag/neo4j_advanced_rag/chain.py/0 | {
"file_path": "langchain/templates/neo4j-advanced-rag/neo4j_advanced_rag/chain.py",
"repo_id": "langchain",
"token_count": 455
} | 640 |
from langchain_core.prompts import __all__
EXPECTED_ALL = [
"AIMessagePromptTemplate",
"BaseChatPromptTemplate",
"BasePromptTemplate",
"ChatMessagePromptTemplate",
"ChatPromptTemplate",
"FewShotPromptTemplate",
"FewShotPromptWithTemplates",
"FewShotChatMessagePromptTemplate",
"forma... | langchain/libs/core/tests/unit_tests/prompts/test_imports.py/0 | {
"file_path": "langchain/libs/core/tests/unit_tests/prompts/test_imports.py",
"repo_id": "langchain",
"token_count": 278
} | 432 |
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/tests/models/llama/test_modeling_llama.py/0 | {
"file_path": "transformers/tests/models/llama/test_modeling_llama.py",
"repo_id": "transformers",
"token_count": 14386
} | 768 |
import PQueueMod from "p-queue";
let queue: typeof import("p-queue")["default"]["prototype"];
/**
* Creates a queue using the p-queue library. The queue is configured to
* auto-start and has a concurrency of 1, meaning it will process tasks
* one at a time.
*/
function createQueue() {
const PQueue = "default" i... | langchainjs/langchain-core/src/callbacks/promises.ts/0 | {
"file_path": "langchainjs/langchain-core/src/callbacks/promises.ts",
"repo_id": "langchainjs",
"token_count": 371
} | 923 |
"""A tool for running python code in a REPL."""
import ast
import re
import sys
from contextlib import redirect_stdout
from io import StringIO
from typing import Any, Dict, Optional, Type
from langchain.callbacks.manager import (
AsyncCallbackManagerForToolRun,
CallbackManagerForToolRun,
)
from langchain.pyda... | langchain/libs/experimental/langchain_experimental/tools/python/tool.py/0 | {
"file_path": "langchain/libs/experimental/langchain_experimental/tools/python/tool.py",
"repo_id": "langchain",
"token_count": 2024
} | 450 |
# Copyright 2022 EleutherAI 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
#
# Unless r... | transformers/src/transformers/models/llama/convert_llama_weights_to_hf.py/0 | {
"file_path": "transformers/src/transformers/models/llama/convert_llama_weights_to_hf.py",
"repo_id": "transformers",
"token_count": 6455
} | 705 |
{
"add_copied_from": true,
"old_model_type": "distilbert",
"new_model_patterns": {
"model_name": "BERT New",
"checkpoint": "huggingface/bert-new-base",
"model_type": "bert-new",
"model_lower_cased": "bert_new",
"model_camel_cased": "BertNew",
"model_upper_case... | transformers/tests/fixtures/add_distilbert_like_config.json/0 | {
"file_path": "transformers/tests/fixtures/add_distilbert_like_config.json",
"repo_id": "transformers",
"token_count": 266
} | 702 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-clickhouse/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-clickhouse/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,348 |
# LlamaIndex Vector_Stores Integration: Myscale
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-myscale/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-myscale/README.md",
"repo_id": "llama_index",
"token_count": 14
} | 1,564 |
import pytest
from langchain.evaluation import ExactMatchStringEvaluator
@pytest.fixture
def exact_match_string_evaluator() -> ExactMatchStringEvaluator:
"""Create an ExactMatchStringEvaluator with default configuration."""
return ExactMatchStringEvaluator()
@pytest.fixture
def exact_match_string_evaluator... | langchain/libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py",
"repo_id": "langchain",
"token_count": 559
} | 605 |
/*
The MIT License
Copyright (c) 2017-2019 EclipseSource Munich
https://github.com/eclipsesource/jsonforms
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inc... | langserve/langserve/playground/src/components/CustomArrayControlRenderer/DeleteDialog.tsx/0 | {
"file_path": "langserve/langserve/playground/src/components/CustomArrayControlRenderer/DeleteDialog.tsx",
"repo_id": "langserve",
"token_count": 844
} | 1,030 |
import { describe, test, expect, jest } from "@jest/globals";
import { HumanMessage } from "../../../messages/index.js";
import { StringOutputParser } from "../../../output_parsers/string.js";
import { FakeListChatModel } from "../index.js";
describe("Test FakeListChatLLM", () => {
test("Should exist", async () => {... | langchainjs/langchain-core/src/utils/testing/tests/chatfake.test.ts/0 | {
"file_path": "langchainjs/langchain-core/src/utils/testing/tests/chatfake.test.ts",
"repo_id": "langchainjs",
"token_count": 1473
} | 938 |
# LlamaIndex Question_Gen Integration: Guidance Generator
| llama_index/llama-index-integrations/question_gen/llama-index-question-gen-guidance/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/question_gen/llama-index-question-gen-guidance/README.md",
"repo_id": "llama_index",
"token_count": 13
} | 1,304 |
"""Llama integration with Langchain agents."""
from llama_index.legacy.langchain_helpers.agents.agents import (
create_llama_agent,
create_llama_chat_agent,
)
from llama_index.legacy.langchain_helpers.agents.toolkits import LlamaToolkit
from llama_index.legacy.langchain_helpers.agents.tools import (
IndexT... | llama_index/llama-index-legacy/llama_index/legacy/langchain_helpers/agents/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/langchain_helpers/agents/__init__.py",
"repo_id": "llama_index",
"token_count": 212
} | 1,581 |
from langchain_core.tracers.schemas import (
BaseRun,
ChainRun,
LLMRun,
Run,
RunTypeEnum,
ToolRun,
TracerSession,
TracerSessionBase,
TracerSessionV1,
TracerSessionV1Base,
TracerSessionV1Create,
)
__all__ = [
"RunTypeEnum",
"TracerSessionV1Base",
"TracerSessionV1C... | langchain/libs/langchain/langchain/schema/callbacks/tracers/schemas.py/0 | {
"file_path": "langchain/libs/langchain/langchain/schema/callbacks/tracers/schemas.py",
"repo_id": "langchain",
"token_count": 223
} | 564 |
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules":... | langchainjs/docs/api_refs/tsconfig.json/0 | {
"file_path": "langchainjs/docs/api_refs/tsconfig.json",
"repo_id": "langchainjs",
"token_count": 289
} | 712 |
<jupyter_start><jupyter_text>DashVector> [DashVector](https://help.aliyun.com/document_detail/2510225.html) is a fully-managed vectorDB service that supports high-dimension dense and sparse vectors, real-time insertion and filtered search. It is built to scale automatically and can adapt to different application requir... | langchain/docs/docs/integrations/vectorstores/dashvector.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/vectorstores/dashvector.ipynb",
"repo_id": "langchain",
"token_count": 699
} | 190 |
// 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/querycoordv2/meta/coordinator_broker.go/0 | {
"file_path": "milvus/internal/querycoordv2/meta/coordinator_broker.go",
"repo_id": "milvus",
"token_count": 3364
} | 2,031 |
"""Test json index."""
import asyncio
import json
from typing import Any, Dict, cast
from unittest.mock import patch
import pytest
from llama_index.core.base.response.schema import Response
from llama_index.core.indices.struct_store.json_query import (
JSONQueryEngine,
JSONType,
)
from llama_index.core.llms.m... | llama_index/llama-index-core/tests/indices/struct_store/test_json_query.py/0 | {
"file_path": "llama_index/llama-index-core/tests/indices/struct_store/test_json_query.py",
"repo_id": "llama_index",
"token_count": 1041
} | 1,151 |
"""Networkx wrapper for graph operations."""
from __future__ import annotations
from typing import Any, List, NamedTuple, Optional, Tuple
KG_TRIPLE_DELIMITER = "<|>"
class KnowledgeTriple(NamedTuple):
"""A triple in the graph."""
subject: str
predicate: str
object_: str
@classmethod
def fr... | langchain/libs/community/langchain_community/graphs/networkx_graph.py/0 | {
"file_path": "langchain/libs/community/langchain_community/graphs/networkx_graph.py",
"repo_id": "langchain",
"token_count": 2911
} | 262 |
import { encodePointer } from "./pointer.js";
import { Schema } from "./types.js";
export const schemaKeyword: Record<string, boolean> = {
additionalItems: true,
unevaluatedItems: true,
items: true,
contains: true,
additionalProperties: true,
unevaluatedProperties: true,
propertyNames: true,
not: true,... | langchainjs/langchain-core/src/utils/@cfworker/json-schema/src/dereference.ts/0 | {
"file_path": "langchainjs/langchain-core/src/utils/@cfworker/json-schema/src/dereference.ts",
"repo_id": "langchainjs",
"token_count": 2035
} | 862 |
import { get_options, run } from "./common.js";
const reference_latency_ms = 70;
const host = __ENV.HOST || '127.0.0.1:8000';
const max_new_tokens = 50;
function generate_payload(gpt){
const input = gpt["conversations"][0]["value"];
return {"inputs": input, "parameters": {"max_new_tokens": max_new_tokens, "... | text-generation-inference/load_tests/tgi.js/0 | {
"file_path": "text-generation-inference/load_tests/tgi.js",
"repo_id": "text-generation-inference",
"token_count": 185
} | 384 |
"""SharePoint files reader."""
import logging
import os
import tempfile
from typing import Any, Dict, List
import requests
from llama_index.core.readers import SimpleDirectoryReader
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
logger = logging.getLogger(__name__)
... | llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-sharepoint/llama_index/readers/microsoft_sharepoint/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-sharepoint/llama_index/readers/microsoft_sharepoint/base.py",
"repo_id": "llama_index",
"token_count": 5582
} | 1,409 |
"""Integration test for Merriam Webster API Wrapper."""
import pytest
from langchain_community.utilities.merriam_webster import MerriamWebsterAPIWrapper
@pytest.fixture
def api_client() -> MerriamWebsterAPIWrapper:
return MerriamWebsterAPIWrapper()
def test_call(api_client: MerriamWebsterAPIWrapper) -> None:
... | langchain/libs/community/tests/integration_tests/utilities/test_merriam_webster_api.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/utilities/test_merriam_webster_api.py",
"repo_id": "langchain",
"token_count": 369
} | 345 |
<jupyter_start><jupyter_text>GrobidGROBID is a machine learning library for extracting, parsing, and re-structuring raw documents.It is designed and expected to be used to parse academic papers, where it works particularly well. Note: if the articles supplied to Grobid are large documents (e.g. dissertations) exceeding... | langchain/docs/docs/integrations/document_loaders/grobid.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/grobid.ipynb",
"repo_id": "langchain",
"token_count": 345
} | 113 |
#![allow(clippy::redundant_closure_call)]
use pyo3::exceptions::{PyTypeError, PyValueError};
use pyo3::prelude::*;
use pyo3::pyclass::CompareOp;
use pyo3::types::{IntoPyDict, PyDict, PyTuple};
use pyo3::ToPyObject;
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::os::raw::c_long;
u... | candle/candle-pyo3/src/lib.rs/0 | {
"file_path": "candle/candle-pyo3/src/lib.rs",
"repo_id": "candle",
"token_count": 29539
} | 69 |
# MNIST
So we now have downloaded the MNIST parquet files, let's put them in a simple struct.
```rust,ignore
{{#include ../lib.rs:book_training_3}}
```
The parsing of the file and putting it into single tensors requires the dataset to fit the entire memory.
It is quite rudimentary, but simple enough for a small data... | candle/candle-book/src/training/mnist.md/0 | {
"file_path": "candle/candle-book/src/training/mnist.md",
"repo_id": "candle",
"token_count": 93
} | 30 |
// 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/avx512.h/0 | {
"file_path": "milvus/internal/core/src/simd/avx512.h",
"repo_id": "milvus",
"token_count": 1017
} | 1,660 |
<!--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/wav2vec2_phoneme.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/wav2vec2_phoneme.md",
"repo_id": "transformers",
"token_count": 851
} | 506 |
---
hide_table_of_contents: true
---
# Chat Message History
:::info
Head to [Integrations](/docs/integrations/chat_memory/) for documentation on built-in chat message history integrations with 3rd-party databases and tools.
:::
One of the core utility classes underpinning most (if not all) memory modules is the `Cha... | langchainjs/docs/core_docs/docs/modules/memory/chat_messages/index.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/modules/memory/chat_messages/index.mdx",
"repo_id": "langchainjs",
"token_count": 256
} | 745 |
// 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/proxy/multi_rate_limiter.go/0 | {
"file_path": "milvus/internal/proxy/multi_rate_limiter.go",
"repo_id": "milvus",
"token_count": 4582
} | 2,019 |
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/ko/torchscript.md/0 | {
"file_path": "transformers/docs/source/ko/torchscript.md",
"repo_id": "transformers",
"token_count": 6886
} | 501 |
<!--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/mluke.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/mluke.md",
"repo_id": "transformers",
"token_count": 825
} | 448 |
from llama_index.readers.bagel.base import BagelReader
__all__ = ["BagelReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-bagel/llama_index/readers/bagel/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-bagel/llama_index/readers/bagel/__init__.py",
"repo_id": "llama_index",
"token_count": 30
} | 1,383 |
[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 = ["AgentSearchRetriever", "AgentSearchRetrieverPack"]
contains_example = true
import_path = ... | llama_index/llama-index-packs/llama-index-packs-agent-search-retriever/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-agent-search-retriever/pyproject.toml",
"repo_id": "llama_index",
"token_count": 681
} | 1,551 |
"""Init file."""
from llama_index.readers.memos.base import (
MemosReader,
)
__all__ = ["MemosReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-memos/llama_index/readers/memos/__init__.py",
"repo_id": "llama_index",
"token_count": 43
} | 1,348 |
from typing import Any, List, Optional, Sequence
from llama_index.core.base.base_query_engine import BaseQueryEngine
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.base.response.schema import RESPONSE_TYPE
from llama_index.core.bridge.pydantic import BaseModel
from llama_index.cor... | llama_index/llama-index-core/llama_index/core/query_engine/retriever_query_engine.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/query_engine/retriever_query_engine.py",
"repo_id": "llama_index",
"token_count": 3558
} | 1,144 |
# LlamaIndex Embeddings Integration: Text Embeddings Inference
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-text-embeddings-inference/README.md",
"repo_id": "llama_index",
"token_count": 16
} | 1,323 |
import { type BaseMessage, type BaseMessageChunk } from "./messages/index.js";
export const RUN_KEY = "__run";
/**
* Output of a single generation.
*/
export interface Generation {
/**
* Generated text output
*/
text: string;
/**
* Raw generation info response from the provider.
* May include thin... | langchainjs/langchain-core/src/outputs.ts/0 | {
"file_path": "langchainjs/langchain-core/src/outputs.ts",
"repo_id": "langchainjs",
"token_count": 918
} | 928 |
// mistral-client.d.ts
declare module "@mistralai/mistralai" {
export type ChatCompletionResult = {
id?: string;
object?: string;
created?: number;
model?: string;
choices:
| Array<{
index: number;
message?: {
role?: "user" | "assistant";
content?:... | langchainjs/libs/langchain-mistralai/src/mistralai.d.ts/0 | {
"file_path": "langchainjs/libs/langchain-mistralai/src/mistralai.d.ts",
"repo_id": "langchainjs",
"token_count": 752
} | 1,062 |
<jupyter_start><jupyter_text>Run TemplateIn `server.py`, set -```add_routes(app, chain_ext, path="/rag-vectara-multiquery")```<jupyter_code>from langserve.client import RemoteRunnable
rag_app_vectara = RemoteRunnable("http://localhost:8000/rag-vectara-multiquery")
rag_app_vectara.invoke("How does agent memory work?")<... | langchain/templates/rag-vectara-multiquery/rag_vectara_multiquery.ipynb/0 | {
"file_path": "langchain/templates/rag-vectara-multiquery/rag_vectara_multiquery.ipynb",
"repo_id": "langchain",
"token_count": 133
} | 671 |
""" PP-HGNet (V1 & V2)
Reference:
https://github.com/PaddlePaddle/PaddleClas/blob/develop/docs/zh_CN/models/ImageNet1k/PP-HGNetV2.md
The Paddle Implement of PP-HGNet (https://github.com/PaddlePaddle/PaddleClas/blob/release/2.5.1/docs/en/models/PP-HGNet_en.md)
PP-HGNet: https://github.com/PaddlePaddle/PaddleClas/blob/r... | pytorch-image-models/timm/models/hgnet.py/0 | {
"file_path": "pytorch-image-models/timm/models/hgnet.py",
"repo_id": "pytorch-image-models",
"token_count": 13284
} | 378 |
python_sources()
| llama_index/llama-index-packs/llama-index-packs-tables/llama_index/packs/tables/chain_of_table/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-tables/llama_index/packs/tables/chain_of_table/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,735 |
# Input Sequences
<tokenizerslangcontent>
<python>
These types represent all the different kinds of sequence that can be used as input of a Tokenizer.
Globally, any sequence can be either a string or a list of strings, according to the operating
mode of the tokenizer: `raw text` vs `pre-tokenized`.
## TextInputSequen... | tokenizers/docs/source-doc-builder/api/input-sequences.mdx/0 | {
"file_path": "tokenizers/docs/source-doc-builder/api/input-sequences.mdx",
"repo_id": "tokenizers",
"token_count": 402
} | 444 |
# candle
Minimalist ML framework for Rust
| candle/candle-core/README.md/0 | {
"file_path": "candle/candle-core/README.md",
"repo_id": "candle",
"token_count": 11
} | 32 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-vector-db/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-vector-db/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,532 |
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/tests/models/efficientformer/test_modeling_efficientformer.py/0 | {
"file_path": "transformers/tests/models/efficientformer/test_modeling_efficientformer.py",
"repo_id": "transformers",
"token_count": 8621
} | 782 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-zapier/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-zapier/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,507 |
import { getEnvironmentVariable } from "@langchain/core/utils/env";
import { Embeddings, type EmbeddingsParams } from "@langchain/core/embeddings";
import { chunkArray } from "@langchain/core/utils/chunk_array";
/**
* Interface that extends EmbeddingsParams and defines additional
* parameters specific to the VoyageE... | langchainjs/libs/langchain-community/src/embeddings/voyage.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/embeddings/voyage.ts",
"repo_id": "langchainjs",
"token_count": 1445
} | 998 |
<jupyter_start><jupyter_text>IntroductionThis colab is design to run the pretrained models from [GeoDiff](https://github.com/MinkaiXu/GeoDiff).The visualization code is inspired by this PyMol [colab](https://colab.research.google.com/gist/iwatobipen/2ec7faeafe5974501e69fcc98c122922/pymol.ipynbscrollTo=Hm4kY7CaZSlw).The... | notebooks/diffusers/geodiff_molecule_conformation.ipynb/0 | {
"file_path": "notebooks/diffusers/geodiff_molecule_conformation.ipynb",
"repo_id": "notebooks",
"token_count": 18632
} | 289 |
<jupyter_start><jupyter_text>Langchain Output Parsing Download Data<jupyter_code>%pip install llama-index-llms-openai
!mkdir -p 'data/paul_graham/'
!wget 'https://raw.githubusercontent.com/run-llama/llama_index/main/docs/examples/data/paul_graham/paul_graham_essay.txt' -O 'data/paul_graham/paul_graham_essay.txt'<jupyte... | llama_index/docs/examples/output_parsing/LangchainOutputParserDemo.ipynb/0 | {
"file_path": "llama_index/docs/examples/output_parsing/LangchainOutputParserDemo.ipynb",
"repo_id": "llama_index",
"token_count": 1511
} | 1,072 |
# LlamaIndex Kvstore Integration: Mongodb Kvstore
| llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb/README.md",
"repo_id": "llama_index",
"token_count": 16
} | 1,499 |
python_sources()
| llama_index/llama-index-integrations/tools/llama-index-tools-code-interpreter/llama_index/tools/code_interpreter/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-code-interpreter/llama_index/tools/code_interpreter/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,508 |
import asyncio
import time
from typing import Any, AsyncIterator, Iterator, List, Mapping, Optional
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
)
from langchain_core.language_models import LanguageModelInput
from langchain_core.language_models.llms import LLM... | langchain/libs/community/langchain_community/llms/fake.py/0 | {
"file_path": "langchain/libs/community/langchain_community/llms/fake.py",
"repo_id": "langchain",
"token_count": 1099
} | 279 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/pkg/util/etcd/etcd_util_test.go/0 | {
"file_path": "milvus/pkg/util/etcd/etcd_util_test.go",
"repo_id": "milvus",
"token_count": 2238
} | 1,835 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/rootcoord/import_helper.go/0 | {
"file_path": "milvus/internal/rootcoord/import_helper.go",
"repo_id": "milvus",
"token_count": 1705
} | 2,057 |
# coding=utf-8
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py/0 | {
"file_path": "transformers/tests/models/wav2vec2_bert/test_modeling_wav2vec2_bert.py",
"repo_id": "transformers",
"token_count": 17010
} | 745 |
from typing import List
from llama_index.legacy.extractors import (
QuestionsAnsweredExtractor,
SummaryExtractor,
TitleExtractor,
)
from llama_index.legacy.indices.prompt_helper import PromptHelper
from llama_index.legacy.llms import MockLLM
from llama_index.legacy.node_parser import SentenceSplitter
from ... | llama_index/llama-index-legacy/tests/indices/test_service_context.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/indices/test_service_context.py",
"repo_id": "llama_index",
"token_count": 729
} | 1,739 |
.. _Ref-Indices-Knowledge-Graph:
Knowledge Graph Index
=====================
Building the Knowledge Graph Index
.. automodule:: llama_index.core.indices.knowledge_graph
:members:
:inherited-members:
:exclude-members: delete, docstore, index_struct, index_struct_cls
| llama_index/docs/api_reference/indices/kg.rst/0 | {
"file_path": "llama_index/docs/api_reference/indices/kg.rst",
"repo_id": "llama_index",
"token_count": 90
} | 1,030 |
#!/usr/bin/env python3
"""PyTorch Inference Script
An example inference script that outputs top-k class ids for images in a folder into a csv.
Hacked together by / Copyright 2020 Ross Wightman (https://github.com/rwightman)
"""
import argparse
import json
import logging
import os
import time
from contextlib import su... | pytorch-image-models/inference.py/0 | {
"file_path": "pytorch-image-models/inference.py",
"repo_id": "pytorch-image-models",
"token_count": 6803
} | 379 |
# coding=utf-8
# Copyright 2022 The Trajectory Transformers paper authors 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://ww... | transformers/src/transformers/models/deprecated/trajectory_transformer/configuration_trajectory_transformer.py/0 | {
"file_path": "transformers/src/transformers/models/deprecated/trajectory_transformer/configuration_trajectory_transformer.py",
"repo_id": "transformers",
"token_count": 2817
} | 658 |
python_sources()
python_tests(
name="tests",
skip_tests=True,
)
| llama_index/llama-index-legacy/tests/indices/list/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/tests/indices/list/BUILD",
"repo_id": "llama_index",
"token_count": 32
} | 1,661 |
[{
"username": "elonmusk",
"user_id": "44196397",
"id": "1519480761749016577",
"conversation_id": "1519480761749016577",
"full_text": "Next I’m buying Coca-Cola to put the cocaine back in",
"reply_count": 187291,
"retweet_count": 648962,
"favorite_count": 4596262,
"hashtags": [],
"symbols": [],
"u... | langchain/docs/docs/integrations/chat_loaders/example_data/dataset_twitter-scraper_2023-08-23_22-13-19-740.json/0 | {
"file_path": "langchain/docs/docs/integrations/chat_loaders/example_data/dataset_twitter-scraper_2023-08-23_22-13-19-740.json",
"repo_id": "langchain",
"token_count": 33648
} | 101 |
from langchain_core.memory import BaseMemory
__all__ = ["BaseMemory"]
| langchain/libs/langchain/langchain/schema/memory.py/0 | {
"file_path": "langchain/libs/langchain/langchain/schema/memory.py",
"repo_id": "langchain",
"token_count": 21
} | 565 |
#!/usr/bin/env python
import os
from pathlib import Path
from typing import Dict, List
import fire
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from transformers.utils.logging import get_logger
logger = get_logger(__name__)
def remove_prefix(text: str, prefix: str):
if text.star... | transformers/examples/research_projects/seq2seq-distillation/convert_pl_checkpoint_to_hf.py/0 | {
"file_path": "transformers/examples/research_projects/seq2seq-distillation/convert_pl_checkpoint_to_hf.py",
"repo_id": "transformers",
"token_count": 1017
} | 574 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-lantern/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-lantern/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,660 |
interactions:
- request:
body: '{"input": [[8134], [2308], [43673]], "encoding_format": "base64"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '65'
Content-Type:
- application/json
User-Age... | langchain/libs/community/tests/integration_tests/vectorstores/cassettes/test_pinecone/TestPinecone.test_from_texts_with_scores.yaml/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/vectorstores/cassettes/test_pinecone/TestPinecone.test_from_texts_with_scores.yaml",
"repo_id": "langchain",
"token_count": 30091
} | 354 |
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/src/transformers/models/upernet/configuration_upernet.py/0 | {
"file_path": "transformers/src/transformers/models/upernet/configuration_upernet.py",
"repo_id": "transformers",
"token_count": 2402
} | 733 |
# `tokenizers-linux-arm64-gnu`
This is the **aarch64-unknown-linux-gnu** binary for `tokenizers`
| tokenizers/bindings/node/npm/linux-arm64-gnu/README.md/0 | {
"file_path": "tokenizers/bindings/node/npm/linux-arm64-gnu/README.md",
"repo_id": "tokenizers",
"token_count": 35
} | 408 |
# Security
LangChain has a large ecosystem of integrations with various external resources like local and remote file systems, APIs and databases. These integrations allow developers to create versatile applications that combine the power of LLMs with the ability to access, interact with and manipulate external resour... | langchainjs/docs/core_docs/docs/security.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/security.mdx",
"repo_id": "langchainjs",
"token_count": 723
} | 766 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "llms/aleph_alpha",
});
export * from "@langchain/community/llms/aleph_alpha";
| langchainjs/langchain/src/llms/aleph_alpha.ts/0 | {
"file_path": "langchainjs/langchain/src/llms/aleph_alpha.ts",
"repo_id": "langchainjs",
"token_count": 76
} | 888 |
package dependency
import (
"context"
"github.com/cockroachdb/errors"
"go.uber.org/zap"
smsgstream "github.com/milvus-io/milvus/internal/mq/msgstream"
"github.com/milvus-io/milvus/internal/storage"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/metrics"
"github.com/milvus-io/milvus/pk... | milvus/internal/util/dependency/factory.go/0 | {
"file_path": "milvus/internal/util/dependency/factory.go",
"repo_id": "milvus",
"token_count": 1859
} | 2,014 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.