text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
/**
* Represents a string value with autocompleted, but not required, suggestions.
*/
export type StringWithAutocomplete<T> = T | (string & Record<never, never>);
| langchainjs/langchain/src/util/types.ts/0 | {
"file_path": "langchainjs/langchain/src/util/types.ts",
"repo_id": "langchainjs",
"token_count": 47
} | 1,030 |
"""FastAPI integration for langchain runnables.
This code contains integration for langchain runnables with FastAPI.
The main entry point is the `add_routes` function which adds the routes to an existing
FastAPI app or APIRouter.
"""
import weakref
from typing import (
Any,
Literal,
Optional,
Sequence... | langserve/langserve/server.py/0 | {
"file_path": "langserve/langserve/server.py",
"repo_id": "langserve",
"token_count": 19896
} | 1,034 |
use super::{GgmlDType, QStorage};
use crate::backend::BackendStorage;
use crate::{DType, MetalDevice, MetalStorage, Result, Shape};
use metal::Buffer;
use std::sync::Arc;
pub struct QMetalStorage {
dtype: GgmlDType,
device: MetalDevice,
buffer: Arc<Buffer>,
}
impl QMetalStorage {
pub fn zeros(device: ... | candle/candle-core/src/quantized/metal.rs/0 | {
"file_path": "candle/candle-core/src/quantized/metal.rs",
"repo_id": "candle",
"token_count": 5004
} | 32 |
<jupyter_start><jupyter_text>Agent Debates with ToolsThis example shows how to simulate multi-agent dialogues where agents have access to tools. Import LangChain related modules<jupyter_code>from typing import Callable, List
from langchain.memory import ConversationBufferMemory
from langchain.schema import (
AIMe... | langchain/cookbook/two_agent_debate_tools.ipynb/0 | {
"file_path": "langchain/cookbook/two_agent_debate_tools.ipynb",
"repo_id": "langchain",
"token_count": 3553
} | 77 |
# 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/src/transformers/models/trocr/configuration_trocr.py/0 | {
"file_path": "transformers/src/transformers/models/trocr/configuration_trocr.py",
"repo_id": "transformers",
"token_count": 2596
} | 754 |
# Introduction to Deep Reinforcement Learning [[introduction-to-deep-reinforcement-learning]]
<img src="https://huggingface.co/datasets/huggingface-deep-rl-course/course-images/resolve/main/en/unit1/thumbnail.jpg" alt="Unit 1 thumbnail" width="100%">
Welcome to the most fascinating topic in Artificial Intelligence: ... | deep-rl-class/units/en/unit1/introduction.mdx/0 | {
"file_path": "deep-rl-class/units/en/unit1/introduction.mdx",
"repo_id": "deep-rl-class",
"token_count": 477
} | 175 |
"""Node parser interface."""
from abc import ABC, abstractmethod
from typing import Any, Callable, List, Sequence
from llama_index.core.bridge.pydantic import Field, validator
from llama_index.core.callbacks import CallbackManager, CBEventType, EventPayload
from llama_index.core.node_parser.node_utils import (
bui... | llama_index/llama-index-core/llama_index/core/node_parser/interface.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/node_parser/interface.py",
"repo_id": "llama_index",
"token_count": 3048
} | 1,278 |
// Audio processing code, adapted from whisper.cpp
// https://github.com/ggerganov/whisper.cpp
use super::worker;
pub trait Float: num_traits::Float + num_traits::FloatConst + num_traits::NumAssign {}
impl Float for f32 {}
impl Float for f64 {}
// https://github.com/ggerganov/whisper.cpp/blob/4774d2feb01a772a15de81f... | candle/candle-wasm-examples/whisper/src/audio.rs/0 | {
"file_path": "candle/candle-wasm-examples/whisper/src/audio.rs",
"repo_id": "candle",
"token_count": 3162
} | 88 |
# Memos Loader
This loader fetchs text from self-hosted [memos](https://github.com/usememos/memos).
## Usage
To use this loader, you need to specify the host where memos is deployed. If you need to filter, pass the [corresponding parameter](https://github.com/usememos/memos/blob/4fe8476169ecd2fc4b164a25611aae6861e36... | llama_index/llama-index-integrations/readers/llama-index-readers-memos/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-memos/README.md",
"repo_id": "llama_index",
"token_count": 296
} | 1,382 |
// 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/util.go/0 | {
"file_path": "milvus/internal/datacoord/util.go",
"repo_id": "milvus",
"token_count": 2501
} | 1,697 |
import { Example, Run, ScoreType, ValueType } from "../schemas.js";
/**
* Represents the result of an evaluation.
*/
export type EvaluationResult = {
/**
* The key associated with the evaluation result.
*/
key: string;
/**
* The score of the evaluation result.
*/
score?: ScoreType;
/**
* The... | langsmith-sdk/js/src/evaluation/evaluator.ts/0 | {
"file_path": "langsmith-sdk/js/src/evaluation/evaluator.ts",
"repo_id": "langsmith-sdk",
"token_count": 346
} | 1,046 |
from typing import TYPE_CHECKING
from ...utils import (
DIFFUSERS_SLOW_IMPORT,
_LazyModule,
)
_import_structure = {
"pipeline_consistency_models": ["ConsistencyModelPipeline"],
}
if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
from .pipeline_consistency_models import ConsistencyModelPipeline
else:
i... | diffusers/src/diffusers/pipelines/consistency_models/__init__.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/consistency_models/__init__.py",
"repo_id": "diffusers",
"token_count": 209
} | 243 |
"""Test EdenAi's object detection Tool .
In order to run this test, you need to have an EdenAI api key.
You can get it by registering for free at https://app.edenai.run/user/register.
A test key can be found at https://app.edenai.run/admin/account/settings by
clicking on the 'sandbox' toggle.
(calls will be free, and ... | langchain/libs/community/tests/integration_tests/tools/edenai/test_image_objectdetection.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/tools/edenai/test_image_objectdetection.py",
"repo_id": "langchain",
"token_count": 294
} | 367 |
<!--Copyright 2020 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/en/model_doc/convbert.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/convbert.md",
"repo_id": "transformers",
"token_count": 1393
} | 504 |
// 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/segcore/SegcoreConfig.h/0 | {
"file_path": "milvus/internal/core/src/segcore/SegcoreConfig.h",
"repo_id": "milvus",
"token_count": 782
} | 1,765 |
/// Batching and inference logic
use crate::validation::{Validation, ValidationError};
use crate::{
ChatTemplateInputs, Entry, GenerateRequest, GenerateStreamResponse, HubTokenizerConfig,
Message, PrefillToken, Queue, Token,
};
use futures::future::try_join_all;
use minijinja::{Environment, ErrorKind, Template}... | text-generation-inference/router/src/infer.rs/0 | {
"file_path": "text-generation-inference/router/src/infer.rs",
"repo_id": "text-generation-inference",
"token_count": 18529
} | 374 |
# 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... | transformers/src/transformers/models/opt/__init__.py/0 | {
"file_path": "transformers/src/transformers/models/opt/__init__.py",
"repo_id": "transformers",
"token_count": 1188
} | 710 |
from langchain.agents import AgentExecutor
from langchain.agents.format_scratchpad import format_xml
from langchain.tools import DuckDuckGoSearchRun
from langchain.tools.render import render_text_description
from langchain_community.llms import OpenAI
from langchain_core.pydantic_v1 import BaseModel
from solo_performa... | langchain/templates/solo-performance-prompting-agent/solo_performance_prompting_agent/agent.py/0 | {
"file_path": "langchain/templates/solo-performance-prompting-agent/solo_performance_prompting_agent/agent.py",
"repo_id": "langchain",
"token_count": 404
} | 701 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-dashvector/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-dashvector/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,422 |
"""Google's Gemini multi-modal models."""
import os
from typing import Any, Dict, Optional, Sequence
import google.generativeai as genai
import PIL
from llama_index.core.base.llms.types import (
ChatMessage,
ChatResponse,
ChatResponseAsyncGen,
ChatResponseGen,
CompletionResponse,
CompletionResp... | llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-gemini/llama_index/multi_modal_llms/gemini/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-gemini/llama_index/multi_modal_llms/gemini/base.py",
"repo_id": "llama_index",
"token_count": 4087
} | 1,253 |
# 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/vit_mae/test_modeling_tf_vit_mae.py/0 | {
"file_path": "transformers/tests/models/vit_mae/test_modeling_tf_vit_mae.py",
"repo_id": "transformers",
"token_count": 7979
} | 847 |
# Outlook Local Calendar Loader
This loader reads your past and upcoming Calendar events from your local Outlook .ost or .pst and parses the relevant info into `Documents`.
It runs on Windows only and has only been tested with Windows 11. It has been designed to have a supoerset of the functionality of the Google Cal... | llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-outlook/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-outlook/README.md",
"repo_id": "llama_index",
"token_count": 558
} | 1,385 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-epsilla/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-epsilla/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,522 |
# Text Summarization with Pretrained Encoders
This folder contains part of the code necessary to reproduce the results on abstractive summarization from the article [Text Summarization with Pretrained Encoders](https://arxiv.org/pdf/1908.08345.pdf) by [Yang Liu](https://nlp-yang.github.io/) and [Mirella Lapata](https:... | transformers/examples/research_projects/bertabs/README.md/0 | {
"file_path": "transformers/examples/research_projects/bertabs/README.md",
"repo_id": "transformers",
"token_count": 909
} | 555 |
from llama_index.readers.maps.base import OpenMap
__all__ = ["OpenMap"]
| llama_index/llama-index-integrations/readers/llama-index-readers-maps/llama_index/readers/maps/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-maps/llama_index/readers/maps/__init__.py",
"repo_id": "llama_index",
"token_count": 26
} | 1,396 |
from llama_index.readers.linear.base import LinearReader
__all__ = ["LinearReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-linear/llama_index/readers/linear/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-linear/llama_index/readers/linear/__init__.py",
"repo_id": "llama_index",
"token_count": 27
} | 1,515 |
use std::time::{Duration, Instant};
use criterion::black_box;
use tokenizers::{
Decoder, EncodeInput, Model, Normalizer, PostProcessor, PreTokenizer, TokenizerImpl, Trainer,
};
pub fn iter_bench_encode<M, N, PT, PP, D>(
iters: u64,
tokenizer: &TokenizerImpl<M, N, PT, PP, D>,
lines: &[EncodeInput],
) ... | tokenizers/tokenizers/benches/common/mod.rs/0 | {
"file_path": "tokenizers/tokenizers/benches/common/mod.rs",
"repo_id": "tokenizers",
"token_count": 964
} | 460 |
/* eslint-disable no-promise-executor-return */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { test } from "@jest/globals";
import { RunnableBranch } from "../branch.js";
import { ChatPromptTemplate } from "../../prompts/chat.js";
import { FakeStreamingLLM } from "../../utils/testing/index.js";
impor... | langchainjs/langchain-core/src/runnables/tests/runnable_branch.test.ts/0 | {
"file_path": "langchainjs/langchain-core/src/runnables/tests/runnable_branch.test.ts",
"repo_id": "langchainjs",
"token_count": 1337
} | 866 |
""" ReXNet
A PyTorch impl of `ReXNet: Diminishing Representational Bottleneck on Convolutional Neural Network` -
https://arxiv.org/abs/2007.00992
Adapted from original impl at https://github.com/clovaai/rexnet
Copyright (c) 2020-present NAVER Corp. MIT license
Changes for timm, feature extraction, and rounded channe... | pytorch-image-models/timm/models/rexnet.py/0 | {
"file_path": "pytorch-image-models/timm/models/rexnet.py",
"repo_id": "pytorch-image-models",
"token_count": 5784
} | 389 |
import { Configuration, ApiApi as DefaultApi } from "./generated";
import { handleSuccess, handleError, validateTenantDatabase } from "./utils";
import { ConfigOptions } from './types';
import {
AuthOptions,
ClientAuthProtocolAdapter,
IsomorphicFetchClientAuthProtocolAdapter
} from "./auth";
const DEFAULT_... | chroma/clients/js/src/AdminClient.ts/0 | {
"file_path": "chroma/clients/js/src/AdminClient.ts",
"repo_id": "chroma",
"token_count": 3188
} | 31 |
[
{
"server": "idc-sh002",
"suite_params": [
{
"suite": "2_insert_data.yaml",
"image_type": "cpu"
}
]
}
]
| milvus/tests/benchmark/milvus_benchmark/scheduler/insert.json/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/scheduler/insert.json",
"repo_id": "milvus",
"token_count": 136
} | 2,139 |
from typing import Any, Iterator, Optional
from langchain_core.documents import Document
from langchain_community.document_loaders.base import BaseBlobParser
from langchain_community.document_loaders.blob_loaders import Blob
class AzureAIDocumentIntelligenceParser(BaseBlobParser):
"""Loads a PDF with Azure Docu... | langchain/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/doc_intelligence.py",
"repo_id": "langchain",
"token_count": 2136
} | 243 |
"""Loads RST files."""
from typing import Any, List
from langchain_community.document_loaders.unstructured import (
UnstructuredFileLoader,
validate_unstructured_version,
)
class UnstructuredRSTLoader(UnstructuredFileLoader):
"""Load `RST` files using `Unstructured`.
You can run the loader in one of... | langchain/libs/community/langchain_community/document_loaders/rst.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/rst.py",
"repo_id": "langchain",
"token_count": 678
} | 261 |
<jupyter_start><jupyter_text>ClientDemo of a client interacting with a remote agent. You can interact with this via API directly<jupyter_code>import requests
inputs = {"input": {"input": "what does eugene think of cats?"}}
response = requests.post("http://localhost:8000/invoke", json=inputs)
response.json()<jupyter_... | langserve/examples/agent/client.ipynb/0 | {
"file_path": "langserve/examples/agent/client.ipynb",
"repo_id": "langserve",
"token_count": 2564
} | 1,122 |
import os
from pathlib import Path
import pytest
from datasets.inspect import (
get_dataset_config_info,
get_dataset_config_names,
get_dataset_default_config_name,
get_dataset_infos,
get_dataset_split_names,
inspect_dataset,
inspect_metric,
)
from datasets.packaged_modules.csv import csv
... | datasets/tests/test_inspect.py/0 | {
"file_path": "datasets/tests/test_inspect.py",
"repo_id": "datasets",
"token_count": 2081
} | 152 |
import { useEffect, useState } from "react";
import { marked } from "marked";
import { ShareIcon } from "@heroicons/react/24/outline";
import { useDropzone } from "react-dropzone";
import { orderBy, last } from "lodash";
import { ConfigListProps } from "../hooks/useConfigList";
import { SchemaField, Schemas } from "..... | opengpts/frontend/src/components/Config.tsx/0 | {
"file_path": "opengpts/frontend/src/components/Config.tsx",
"repo_id": "opengpts",
"token_count": 9084
} | 2,203 |
# coding=utf-8
# Copyright 2024 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | diffusers/src/diffusers/models/unets/uvit_2d.py/0 | {
"file_path": "diffusers/src/diffusers/models/unets/uvit_2d.py",
"repo_id": "diffusers",
"token_count": 8290
} | 245 |
# Second Quiz [[quiz2]]
The best way to learn and [to avoid the illusion of competence](https://www.coursera.org/lecture/learning-how-to-learn/illusions-of-competence-BuFzf) **is to test yourself.** This will help you to find **where you need to reinforce your knowledge**.
### Q1: What is Q-Learning?
<Question
ch... | deep-rl-class/units/en/unit2/quiz2.mdx/0 | {
"file_path": "deep-rl-class/units/en/unit2/quiz2.mdx",
"repo_id": "deep-rl-class",
"token_count": 1077
} | 165 |
# coding=utf-8
# Copyright 2020-present Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.a... | transformers/src/transformers/models/funnel/modeling_tf_funnel.py/0 | {
"file_path": "transformers/src/transformers/models/funnel/modeling_tf_funnel.py",
"repo_id": "transformers",
"token_count": 35382
} | 667 |
import uuid
from typing import Optional
import pytest
from langchain_community.vectorstores import Qdrant
from tests.integration_tests.vectorstores.fake_embeddings import (
ConsistentFakeEmbeddings,
)
from tests.integration_tests.vectorstores.qdrant.async_api.fixtures import ( # noqa
qdrant_locations,
)
@p... | langchain/libs/community/tests/integration_tests/vectorstores/qdrant/async_api/test_add_texts.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/vectorstores/qdrant/async_api/test_add_texts.py",
"repo_id": "langchain",
"token_count": 1712
} | 351 |
# this is a demo of inference of IDEFICS-9B using 4bit-quantization which needs about 7GB of GPU memory
# which makes it possible to run even on Google Colab
import torch
from transformers import IdeficsForVisionText2Text, AutoProcessor, BitsAndBytesConfig
device = "cuda" if torch.cuda.is_available() else "cpu"
chec... | notebooks/examples/idefics/inference_4bit.py/0 | {
"file_path": "notebooks/examples/idefics/inference_4bit.py",
"repo_id": "notebooks",
"token_count": 396
} | 321 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "tools/serpapi",
});
export * from "@langchain/community/tools/serpapi";
| langchainjs/langchain/src/tools/serpapi.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/serpapi.ts",
"repo_id": "langchainjs",
"token_count": 72
} | 974 |
[tool.poetry]
name = "rag-vectara"
version = "0.1.0"
description = "RAG using vectara retriever"
authors = [
"Ofer Mendelevitch <ofer@vectara.com>",
]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = "^0.1"
openai = "<2"
tiktoken = "^0.5.1"
[tool.poetry.group.dev.dependencies]
l... | langchain/templates/rag-vectara/pyproject.toml/0 | {
"file_path": "langchain/templates/rag-vectara/pyproject.toml",
"repo_id": "langchain",
"token_count": 325
} | 694 |
// 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/mock_test.go/0 | {
"file_path": "milvus/internal/datacoord/mock_test.go",
"repo_id": "milvus",
"token_count": 9786
} | 1,695 |
import re
from typing import Any, Dict, Optional, Tuple
import pytest
from tests.mock_utils.mock_prompts import (
MOCK_REFINE_PROMPT,
MOCK_SCHEMA_EXTRACT_PROMPT,
MOCK_TEXT_QA_PROMPT,
)
def _mock_output_parser(output: str) -> Optional[Dict[str, Any]]:
"""Mock output parser.
Split via commas inst... | llama_index/llama-index-legacy/tests/indices/struct_store/conftest.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/indices/struct_store/conftest.py",
"repo_id": "llama_index",
"token_count": 529
} | 1,663 |
# Whatsapp chat loader
## Export a Whatsapp chat
1. Open a chat
2. Tap on the menu > More > Export chat
3. Select **Without media**
4. Save the `.txt` file in your working directory
For more info see [Whatsapp's Help Center](https://faq.whatsapp.com/1180414079177245/)
## Usage
- Messages will get saved in the form... | llama_index/llama-index-integrations/readers/llama-index-readers-whatsapp/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-whatsapp/README.md",
"repo_id": "llama_index",
"token_count": 444
} | 1,572 |
import { Readable } from "stream";
import {
ensureAuthOptionScopes,
GoogleAbstractedClient,
GoogleAbstractedClientOps,
GoogleBaseLLMInput,
JsonStream,
} from "@langchain/google-common";
import { GoogleAuth, GoogleAuthOptions } from "google-auth-library";
class NodeJsonStream extends JsonStream {
constructo... | langchainjs/libs/langchain-google-gauth/src/auth.ts/0 | {
"file_path": "langchainjs/libs/langchain-google-gauth/src/auth.ts",
"repo_id": "langchainjs",
"token_count": 616
} | 1,027 |
// Code generated by mockery v2.32.4. DO NOT EDIT.
package mocks
import (
context "context"
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
metadata "google.golang.org/grpc/metadata"
mock "github.com/stretchr/testify/mock"
)
// MockQueryStreamSegmentsServer is an autogenerated mock type for ... | milvus/internal/util/streamrpc/mocks/mock_query_stream_segments_server.go/0 | {
"file_path": "milvus/internal/util/streamrpc/mocks/mock_query_stream_segments_server.go",
"repo_id": "milvus",
"token_count": 3719
} | 2,081 |
# backend
| opengpts/backend/README.md/0 | {
"file_path": "opengpts/backend/README.md",
"repo_id": "opengpts",
"token_count": 3
} | 1,983 |
### Translating the Transformers documentation into your language
As part of our mission to democratize machine learning, we'd love to make the Transformers library available in many more languages! Follow the steps below if you want to help translate the documentation into your language 🙏.
**🗞️ Open an issue**
To... | transformers/docs/TRANSLATING.md/0 | {
"file_path": "transformers/docs/TRANSLATING.md",
"repo_id": "transformers",
"token_count": 948
} | 491 |
// 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/segcore/TimestampIndex.h/0 | {
"file_path": "milvus/internal/core/src/segcore/TimestampIndex.h",
"repo_id": "milvus",
"token_count": 688
} | 1,738 |
import candle
from candle import Tensor
_UNSIGNED_DTYPES = set([str(candle.u8), str(candle.u32)])
def _assert_tensor_metadata(
actual: Tensor,
expected: Tensor,
check_device: bool = True,
check_dtype: bool = True,
check_layout: bool = True,
check_stride: bool = False,
):
if check_device:... | candle/candle-pyo3/py_src/candle/testing/__init__.py/0 | {
"file_path": "candle/candle-pyo3/py_src/candle/testing/__init__.py",
"repo_id": "candle",
"token_count": 854
} | 66 |
DOCSTORE_ID_KEY = "doc_id"
| langchain/templates/propositional-retrieval/propositional_retrieval/constants.py/0 | {
"file_path": "langchain/templates/propositional-retrieval/propositional_retrieval/constants.py",
"repo_id": "langchain",
"token_count": 14
} | 723 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-pinecone/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-pinecone/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,505 |
import snakeCase from "decamelize";
import camelCase from "camelcase";
export interface SerializedFields {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
}
export interface SerializedKeyAlias {
[key: string]: string;
}
export function keyToJson(key: string, map?: SerializedK... | langchainjs/langchain-core/src/load/map_keys.ts/0 | {
"file_path": "langchainjs/langchain-core/src/load/map_keys.ts",
"repo_id": "langchainjs",
"token_count": 279
} | 926 |
// 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/util/componentutil/componentutil.go/0 | {
"file_path": "milvus/internal/util/componentutil/componentutil.go",
"repo_id": "milvus",
"token_count": 1172
} | 1,792 |
python_sources()
| llama_index/llama-index-packs/llama-index-packs-rag-fusion-query-pipeline/llama_index/packs/rag_fusion_query_pipeline/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-rag-fusion-query-pipeline/llama_index/packs/rag_fusion_query_pipeline/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,690 |
"""Module implements a memory stream for communication between two co-routines.
This module provides a way to communicate between two co-routines using a memory
channel. The writer and reader can be in the same event loop or in different event
loops. When they're in different event loops, they will also be in differen... | langchain/libs/core/langchain_core/tracers/memory_stream.py/0 | {
"file_path": "langchain/libs/core/langchain_core/tracers/memory_stream.py",
"repo_id": "langchain",
"token_count": 1423
} | 409 |
from llama_index.core.vector_stores.types import VectorStore
from llama_index.vector_stores.azureaisearch import AzureAISearchVectorStore
def test_class():
names_of_base_classes = [b.__name__ for b in AzureAISearchVectorStore.__mro__]
assert VectorStore.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-azureaisearch/tests/test_vector_stores_cogsearch.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-azureaisearch/tests/test_vector_stores_cogsearch.py",
"repo_id": "llama_index",
"token_count": 98
} | 1,472 |
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class FlaxForcedBOSTokenLogitsProcessor(metaclass=DummyObject):
_backends = ["flax"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["flax"])
class FlaxForced... | transformers/src/transformers/utils/dummy_flax_objects.py/0 | {
"file_path": "transformers/src/transformers/utils/dummy_flax_objects.py",
"repo_id": "transformers",
"token_count": 13843
} | 756 |
python_tests(
interpreter_constraints=["==3.9.*", "==3.10.*"],
)
| llama_index/llama-index-integrations/llms/llama-index-llms-gemini/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-gemini/tests/BUILD",
"repo_id": "llama_index",
"token_count": 29
} | 1,256 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-faiss/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-faiss/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,464 |
// 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/checkers/segment_checker_test.go/0 | {
"file_path": "milvus/internal/querycoordv2/checkers/segment_checker_test.go",
"repo_id": "milvus",
"token_count": 7470
} | 1,974 |
from __future__ import annotations
from typing import Optional, Type
from langchain_core.callbacks import (
AsyncCallbackManagerForToolRun,
CallbackManagerForToolRun,
)
from langchain_core.pydantic_v1 import BaseModel, Field
from langchain_community.tools.playwright.base import BaseBrowserTool
from langchain... | langchain/libs/community/langchain_community/tools/playwright/click.py/0 | {
"file_path": "langchain/libs/community/langchain_community/tools/playwright/click.py",
"repo_id": "langchain",
"token_count": 1184
} | 297 |
import logging
import sys
import uuid
import pytest
from langchain.callbacks.tracers import LoggingCallbackHandler
def test_logging(
caplog: pytest.LogCaptureFixture, capsys: pytest.CaptureFixture[str]
) -> None:
# Set up a Logger and a handler so we can check the Logger's handlers work too
logger = log... | langchain/libs/langchain/tests/unit_tests/callbacks/tracers/test_logging.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/callbacks/tracers/test_logging.py",
"repo_id": "langchain",
"token_count": 477
} | 633 |
from langchain.schema.runnable.utils import __all__
EXPECTED_ALL = [
"AddableDict",
"ConfigurableField",
"ConfigurableFieldMultiOption",
"ConfigurableFieldSingleOption",
"ConfigurableFieldSpec",
"GetLambdaSource",
"IsFunctionArgDict",
"IsLocalDict",
"SupportsAdd",
"aadd",
"a... | langchain/libs/langchain/tests/unit_tests/schema/runnable/test_utils.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/schema/runnable/test_utils.py",
"repo_id": "langchain",
"token_count": 302
} | 610 |
use crate::{
normalizer::Range, Encoding, NormalizedString, OffsetReferential, Offsets, Result, Token,
};
use std::collections::HashMap;
/// Various possible types of offsets
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OffsetType {
Byte,
Char,
}
/// Wrapper for a subpart of a `NormalizedString`.... | tokenizers/tokenizers/src/tokenizer/pre_tokenizer.rs/0 | {
"file_path": "tokenizers/tokenizers/src/tokenizer/pre_tokenizer.rs",
"repo_id": "tokenizers",
"token_count": 4873
} | 458 |
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | transformers/src/transformers/generation/streamers.py/0 | {
"file_path": "transformers/src/transformers/generation/streamers.py",
"repo_id": "transformers",
"token_count": 3605
} | 596 |
# Visitor Pattern
Visitor Pattern is used in segcore for parse and execute Execution Plan.
1. Inside `${core}/src/query/PlanNode.h`, contains physical plan for vector search:
1. `FloatVectorANNS` FloatVector search execution node
2. `BinaryVectorANNS` BinaryVector search execution node
2. `${core}/src/query/Ex... | milvus/docs/design_docs/segcore/visitor.md/0 | {
"file_path": "milvus/docs/design_docs/segcore/visitor.md",
"repo_id": "milvus",
"token_count": 344
} | 1,855 |
python_sources()
| llama_index/llama-index-integrations/llms/llama-index-llms-openllm/llama_index/llms/openllm/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-openllm/llama_index/llms/openllm/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,234 |
<jupyter_start><jupyter_text>Fine-tune Pix2Struct using Hugging Face `transformers` and `datasets` 🤗This tutorial is largely based from the [GiT tutorial](https://colab.research.google.com/drive/1HLxgrG7xZJ9FvXckNG61J72FkyrbqKAA?usp=sharing) on how to fine-tune GiT on a custom image captioning dataset. Here we will us... | notebooks/examples/image_captioning_pix2struct.ipynb/0 | {
"file_path": "notebooks/examples/image_captioning_pix2struct.ipynb",
"repo_id": "notebooks",
"token_count": 3848
} | 304 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/llms/llama-index-llms-mistralai/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-mistralai/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,287 |
# Post-processors
<tokenizerslangcontent>
<python>
## BertProcessing
[[autodoc]] tokenizers.processors.BertProcessing
## ByteLevel
[[autodoc]] tokenizers.processors.ByteLevel
## RobertaProcessing
[[autodoc]] tokenizers.processors.RobertaProcessing
## TemplateProcessing
[[autodoc]] tokenizers.processors.Template... | tokenizers/docs/source-doc-builder/api/post-processors.mdx/0 | {
"file_path": "tokenizers/docs/source-doc-builder/api/post-processors.mdx",
"repo_id": "tokenizers",
"token_count": 174
} | 411 |
# Sprint ControlNet en JAX/Diffusers
Bienvenue au sprint communautaire en JAX/Diffusers ! L'objectif de ce sprint est de travailler sur des modèles de diffusion amusants et créatifs en utilisant JAX et Diffusers.
Lors de cet événement, nous créerons diverses applications avec des modèles de diffusion en JAX/Flax et D... | diffusion-models-class/units/fr/events/4.mdx/0 | {
"file_path": "diffusion-models-class/units/fr/events/4.mdx",
"repo_id": "diffusion-models-class",
"token_count": 15277
} | 298 |
<jupyter_start><jupyter_text>OpenAI ToolsThese output parsers extract tool calls from OpenAI’s function calling API responses. This means they are only usable with models that support function calling, and specifically the latest `tools` and `tool_choice` parameters. We recommend familiarizing yourself with [function c... | langchainjs/docs/core_docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb/0 | {
"file_path": "langchainjs/docs/core_docs/docs/modules/model_io/output_parsers/types/openai_tools.ipynb",
"repo_id": "langchainjs",
"token_count": 1268
} | 764 |
# Trello Loader
This loader loads documents from Trello. The user specifies an API key and API token to initialize the TrelloReader. They then specify a board_id to
load in the corresponding Document objects representing Trello cards.
## Usage
Here's an example usage of the TrelloReader.
```python
from llama_index ... | llama_index/llama-index-integrations/readers/llama-index-readers-trello/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-trello/README.md",
"repo_id": "llama_index",
"token_count": 196
} | 1,450 |
import { MouseEvent } from "react";
import {
Heading,
Link,
Card,
CardHeader,
Flex,
Spacer,
} from "@chakra-ui/react";
export function EmptyState(props: { onChoice: (question: string) => any }) {
const handleClick = (e: MouseEvent) => {
props.onChoice((e.target as HTMLDivElement).innerText);
};
r... | chat-langchain/chat-langchain/app/components/EmptyState.tsx/0 | {
"file_path": "chat-langchain/chat-langchain/app/components/EmptyState.tsx",
"repo_id": "chat-langchain",
"token_count": 1681
} | 8 |
from llama_index.readers.intercom.base import IntercomReader
__all__ = ["IntercomReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-intercom/llama_index/readers/intercom/__init__.py",
"repo_id": "llama_index",
"token_count": 29
} | 1,368 |
<jupyter_start><jupyter_text>Confluence>[Confluence](https://www.atlassian.com/software/confluence) is a wiki collaboration platform that saves and organizes all of the project-related material. `Confluence` is a knowledge base that primarily handles content management activities. A loader for `Confluence` pages.This c... | langchain/docs/docs/integrations/document_loaders/confluence.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/confluence.ipynb",
"repo_id": "langchain",
"token_count": 845
} | 104 |
from llama_index.llms.palm.base import PaLM
__all__ = ["PaLM"]
| llama_index/llama-index-integrations/llms/llama-index-llms-palm/llama_index/llms/palm/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-palm/llama_index/llms/palm/__init__.py",
"repo_id": "llama_index",
"token_count": 27
} | 1,297 |
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | diffusers/docs/source/ko/using-diffusers/pipeline_overview.md/0 | {
"file_path": "diffusers/docs/source/ko/using-diffusers/pipeline_overview.md",
"repo_id": "diffusers",
"token_count": 1173
} | 203 |
# 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/fastspeech2_conformer/convert_fastspeech2_conformer_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "transformers/src/transformers/models/fastspeech2_conformer/convert_fastspeech2_conformer_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "transformers",
"token_count": 3863
} | 617 |
<jupyter_start><jupyter_text>Bind runtime argsSometimes we want to invoke a Runnable within a Runnable sequence with constant arguments that are not part of the output of the preceding Runnable in the sequence, and which are not part of the user input. We can use `Runnable.bind()` to easily pass these arguments in.Supp... | langchain/docs/docs/expression_language/how_to/binding.ipynb/0 | {
"file_path": "langchain/docs/docs/expression_language/how_to/binding.ipynb",
"repo_id": "langchain",
"token_count": 1537
} | 88 |
<jupyter_start><jupyter_text>Hologres>[Hologres](https://www.alibabacloud.com/help/en/hologres/latest/introduction) is a unified real-time data warehousing service developed by Alibaba Cloud. You can use Hologres to write, update, process, and analyze large amounts of data in real time. >Hologres supports standard SQL ... | langchain/docs/docs/integrations/vectorstores/hologres.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/vectorstores/hologres.ipynb",
"repo_id": "langchain",
"token_count": 1093
} | 182 |
# coding=utf-8
# Copyright 2024 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py/0 | {
"file_path": "diffusers/tests/pipelines/controlnet/test_controlnet_sdxl.py",
"repo_id": "diffusers",
"token_count": 18561
} | 277 |
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable arrow-body-style */
import OpenAI from "openai";
import wiki from "wikipedia";
import { Client, Dataset, RunTree, RunTreeConfig } from "langsmith";
import { runOnDataset } from "../run... | langchainjs/langchain/src/smith/tests/run_on_dataset.int.test.ts/0 | {
"file_path": "langchainjs/langchain/src/smith/tests/run_on_dataset.int.test.ts",
"repo_id": "langchainjs",
"token_count": 2893
} | 950 |
# docstyle-ignore
INSTALL_CONTENT = """
# Installazione di Transformers
! pip install transformers datasets
# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e
# rimuovi la modalità commento al comando seguente.
# ! pip install git+https://github.com/huggingface/transformers... | transformers/docs/source/it/_config.py/0 | {
"file_path": "transformers/docs/source/it/_config.py",
"repo_id": "transformers",
"token_count": 188
} | 537 |
# coding=utf-8
# Copyright (c) Facebook, Inc. and its affiliates.
# Copyright (c) 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... | transformers/src/transformers/models/deprecated/mmbt/configuration_mmbt.py/0 | {
"file_path": "transformers/src/transformers/models/deprecated/mmbt/configuration_mmbt.py",
"repo_id": "transformers",
"token_count": 531
} | 621 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/distributed/datacoord/service_test.go/0 | {
"file_path": "milvus/internal/distributed/datacoord/service_test.go",
"repo_id": "milvus",
"token_count": 6305
} | 1,786 |
import candle
from candle import Tensor, QTensor
from candle.utils import load_safetensors, save_gguf, load_gguf, save_safetensors
from pathlib import Path
TEST_DIR = Path(__file__).parent.parent / "_workdir"
TEST_DIR.mkdir(exist_ok=True)
def test_can_roundtrip_safetensors():
tensors = {
"a": candle.rand... | candle/candle-pyo3/tests/native/test_utils.py/0 | {
"file_path": "candle/candle-pyo3/tests/native/test_utils.py",
"repo_id": "candle",
"token_count": 774
} | 64 |
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/evaluation/multi_modal/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/evaluation/multi_modal/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,562 |
import { Serializable } from "@langchain/core/load/serializable";
import { Tool } from "@langchain/core/tools";
import { renderTemplate } from "@langchain/core/prompts";
import {
AsyncCaller,
AsyncCallerParams,
} from "@langchain/core/utils/async_caller";
import { getEnvironmentVariable } from "@langchain/core/util... | langchainjs/langchain/src/tools/zapier.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/zapier.ts",
"repo_id": "langchainjs",
"token_count": 3255
} | 944 |
// 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/mq/msgstream/msg.go/0 | {
"file_path": "milvus/pkg/mq/msgstream/msg.go",
"repo_id": "milvus",
"token_count": 7531
} | 1,892 |
#!/usr/bin/env python3
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | transformers/tests/models/blenderbot_small/test_tokenization_blenderbot_small.py/0 | {
"file_path": "transformers/tests/models/blenderbot_small/test_tokenization_blenderbot_small.py",
"repo_id": "transformers",
"token_count": 1491
} | 802 |
// 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/conc/future.go/0 | {
"file_path": "milvus/pkg/util/conc/future.go",
"repo_id": "milvus",
"token_count": 809
} | 1,832 |
"""Spider evaluation script."""
import argparse
import ast
import json
import logging
import os
from typing import Dict, List, Optional
from llama_index.core.base.llms.types import ChatMessage, MessageRole
from llama_index.core.base.response.schema import Response
from llama_index.indices.struct_store.sql import SQLQu... | llama_index/benchmarks/struct_indices/spider/evaluate.py/0 | {
"file_path": "llama_index/benchmarks/struct_indices/spider/evaluate.py",
"repo_id": "llama_index",
"token_count": 4194
} | 1,155 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "tools/searchapi",
});
export * from "@langchain/community/tools/searchapi";
| langchainjs/langchain/src/tools/searchapi.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/searchapi.ts",
"repo_id": "langchainjs",
"token_count": 70
} | 1,024 |
# Observability
## Local Observability Stack
To run the Chroma with local observability stack (OpenTelemetry + Zipkin),
run the following command from the root of the repository:
```bash
docker compose -f examples/observability/docker-compose.local-observability.yml up --build -d
```
| chroma/examples/observability/README.md/0 | {
"file_path": "chroma/examples/observability/README.md",
"repo_id": "chroma",
"token_count": 80
} | 43 |
package storage
import (
"testing"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/util/merr"
)
func TestInsertDataSuite(t *testing.T) {
suite.Run(t, new(InsertDataSuite))
}
fu... | milvus/internal/storage/insert_data_test.go/0 | {
"file_path": "milvus/internal/storage/insert_data_test.go",
"repo_id": "milvus",
"token_count": 4758
} | 1,871 |
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | transformers/src/transformers/models/auto/processing_auto.py/0 | {
"file_path": "transformers/src/transformers/models/auto/processing_auto.py",
"repo_id": "transformers",
"token_count": 7135
} | 633 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.