text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
from llama_index.storage.kvstore.s3.base import S3DBKVStore
__all__ = ["S3DBKVStore"]
| llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/__init__.py",
"repo_id": "llama_index",
"token_count": 38
} | 1,611 |
<jupyter_start><jupyter_text>Interacting with LLM deployed in Amazon SageMaker Endpoint with LlamaIndexAn Amazon SageMaker endpoint is a fully managed resource that enables the deployment of machine learning models, specifically LLM (Large Language Models), for making predictions on new data.This notebook demonstrates ... | llama_index/docs/examples/llm/sagemaker_endpoint_llm.ipynb/0 | {
"file_path": "llama_index/docs/examples/llm/sagemaker_endpoint_llm.ipynb",
"repo_id": "llama_index",
"token_count": 1760
} | 1,129 |
# Copyright 2023-present 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 law or... | peft/src/peft/tuners/adalora/bnb.py/0 | {
"file_path": "peft/src/peft/tuners/adalora/bnb.py",
"repo_id": "peft",
"token_count": 2713
} | 344 |
---
hide_table_of_contents: true
---
import CodeBlock from "@theme/CodeBlock";
# Cloudflare D1-Backed Chat Memory
:::info
This integration is only supported in Cloudflare Workers.
:::
For longer-term persistence across chat sessions, you can swap out the default in-memory `chatHistory` that backs chat memory classe... | langchainjs/docs/core_docs/docs/integrations/chat_memory/cloudflare_d1.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/chat_memory/cloudflare_d1.mdx",
"repo_id": "langchainjs",
"token_count": 491
} | 699 |
# Copyright 2024 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py",
"repo_id": "diffusers",
"token_count": 9810
} | 242 |
# An Introduction to Unreal Learning Agents
[Learning Agents](https://dev.epicgames.com/community/learning/tutorials/8OWY/unreal-engine-learning-agents-introduction) is an Unreal Engine (UE) plugin that allows you **to train AI characters using machine learning (ML) in Unreal**.
It's an exciting new plugin where you ... | deep-rl-class/units/en/unitbonus3/learning-agents.mdx/0 | {
"file_path": "deep-rl-class/units/en/unitbonus3/learning-agents.mdx",
"repo_id": "deep-rl-class",
"token_count": 804
} | 169 |
// import all entrypoints to test, do not do this in your own app
import "./entrypoints.js";
import "./style.css";
import typescriptLogo from "./typescript.svg";
import viteLogo from "/vite.svg";
import { setupChain } from "./chain";
document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
<div>
<a href="h... | langchainjs/environment_tests/test-exports-vite/src/main.ts/0 | {
"file_path": "langchainjs/environment_tests/test-exports-vite/src/main.ts",
"repo_id": "langchainjs",
"token_count": 345
} | 754 |
{
"details": {
"best_of_sequences": null,
"finish_reason": "stop_sequence",
"generated_tokens": 6,
"prefill": [
{
"id": 14402,
"logprob": null,
"text": "Test"
},
{
"id": 2581,
"logprob": -11.6171875,
"text": " request"
}
],
... | text-generation-inference/integration-tests/models/__snapshots__/test_flash_phi/test_flash_phi_all_params.json/0 | {
"file_path": "text-generation-inference/integration-tests/models/__snapshots__/test_flash_phi/test_flash_phi_all_params.json",
"repo_id": "text-generation-inference",
"token_count": 690
} | 376 |
from __module_name__.vectorstores import __ModuleName__VectorStore
def test_initialization() -> None:
"""Test integration vectorstore initialization."""
__ModuleName__VectorStore()
| langchain/libs/cli/langchain_cli/integration_template/tests/unit_tests/test_vectorstores.py/0 | {
"file_path": "langchain/libs/cli/langchain_cli/integration_template/tests/unit_tests/test_vectorstores.py",
"repo_id": "langchain",
"token_count": 51
} | 218 |
The milvus_benchmark is a non-functional testing tool or service which allows users to run tests on k8s cluster or at local, the primary use case is performance/load/stability testing, the objective is to expose problems in milvus project.
## Quick start
### Description
- Test cases in `milvus_benchmark` can be orga... | milvus/tests/benchmark/README.md/0 | {
"file_path": "milvus/tests/benchmark/README.md",
"repo_id": "milvus",
"token_count": 3339
} | 1,931 |
"""Managed index.
A managed Index - where the index is accessible via some API that
interfaces a managed service.
"""
import os
import time
from typing import Any, List, Optional, Sequence, Type
from llama_index_client import PipelineType, ProjectCreate, StatusEnum
from llama_index.core.base.base_query_engine impor... | llama_index/llama-index-integrations/indices/llama-index-indices-managed-llama-cloud/llama_index/indices/managed/llama_cloud/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/indices/llama-index-indices-managed-llama-cloud/llama_index/indices/managed/llama_cloud/base.py",
"repo_id": "llama_index",
"token_count": 3719
} | 1,211 |
python_sources()
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-pgvecto-rs/llama_index/vector_stores/pgvecto_rs/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,670 |
import logging
from typing import Any, Dict, List, Optional
from llama_index.core.callbacks.base_handler import BaseCallbackHandler
from llama_index.core.callbacks.schema import CBEventType, EventPayload
from aim import Run, Text # type: ignore[attr-defined]
logger = logging.getLogger(__name__)
logger.setLevel(logg... | llama_index/llama-index-integrations/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/callbacks/llama-index-callbacks-aim/llama_index/callbacks/aim/base.py",
"repo_id": "llama_index",
"token_count": 3285
} | 1,290 |
python_sources()
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-anyscale/llama_index/embeddings/anyscale/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-anyscale/llama_index/embeddings/anyscale/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,189 |
// 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/tests/integration/hellomilvus/hello_milvus_test.go/0 | {
"file_path": "milvus/tests/integration/hellomilvus/hello_milvus_test.go",
"repo_id": "milvus",
"token_count": 2032
} | 1,948 |
from llama_index.core.readers.base import BaseReader
from llama_index.readers.elasticsearch import ElasticsearchReader
def test_class():
names_of_base_classes = [b.__name__ for b in ElasticsearchReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/readers/llama-index-readers-elasticsearch/tests/test_readers_elasticsearch.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-elasticsearch/tests/test_readers_elasticsearch.py",
"repo_id": "llama_index",
"token_count": 89
} | 1,342 |
from __future__ import annotations
import asyncio
import inspect
from asyncio import InvalidStateError, Task
from enum import Enum
from typing import TYPE_CHECKING, Awaitable, Optional, Union
if TYPE_CHECKING:
from astrapy.db import (
AstraDB,
AsyncAstraDB,
)
class SetupMode(Enum):
SYNC ... | langchain/libs/community/langchain_community/utilities/astradb.py/0 | {
"file_path": "langchain/libs/community/langchain_community/utilities/astradb.py",
"repo_id": "langchain",
"token_count": 3109
} | 325 |
<jupyter_start><jupyter_text>NVIDIA AI Foundation Endpoints > [NVIDIA AI Foundation Endpoints](https://www.nvidia.com/en-us/ai-data-science/foundation-models/) give users easy access to NVIDIA hosted API endpoints for NVIDIA AI Foundation Models like Mixtral 8x7B, Llama 2, Stable Diffusion, etc. These models, hosted on... | langchain/docs/docs/integrations/text_embedding/nvidia_ai_endpoints.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/text_embedding/nvidia_ai_endpoints.ipynb",
"repo_id": "langchain",
"token_count": 3936
} | 166 |
__version__ = "0.3.0.dev0"
from .configs import DataArguments, DPOConfig, H4ArgumentParser, ModelArguments, SFTConfig
from .data import apply_chat_template, get_datasets
from .model_utils import (
get_checkpoint,
get_kbit_device_map,
get_peft_config,
get_quantization_config,
get_tokenizer,
is_a... | alignment-handbook/src/alignment/__init__.py/0 | {
"file_path": "alignment-handbook/src/alignment/__init__.py",
"repo_id": "alignment-handbook",
"token_count": 133
} | 25 |
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | transformers/src/transformers/models/rembert/tokenization_rembert_fast.py/0 | {
"file_path": "transformers/src/transformers/models/rembert/tokenization_rembert_fast.py",
"repo_id": "transformers",
"token_count": 4311
} | 652 |
"""Module implements an agent that uses OpenAI's APIs function enabled API."""
from typing import Any, List, Optional, Sequence, Tuple, Type, Union
from langchain_core._api import deprecated
from langchain_core.agents import AgentAction, AgentFinish
from langchain_core.callbacks import BaseCallbackManager, Callbacks
f... | langchain/libs/langchain/langchain/agents/openai_functions_agent/base.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/openai_functions_agent/base.py",
"repo_id": "langchain",
"token_count": 4940
} | 469 |
# Copyright 2024 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py",
"repo_id": "diffusers",
"token_count": 6129
} | 227 |
// 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/drop_partition_task_test.go/0 | {
"file_path": "milvus/internal/rootcoord/drop_partition_task_test.go",
"repo_id": "milvus",
"token_count": 2714
} | 1,784 |
---
hide_table_of_contents: true
---
# SearchApi Loader
This guide shows how to use SearchApi with LangChain to load web search results.
## Overview
[SearchApi](https://www.searchapi.io/) is a real-time API that grants developers access to results from a variety of search engines, including engines like [Google Sea... | langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/searchapi.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/searchapi.mdx",
"repo_id": "langchainjs",
"token_count": 499
} | 729 |
from llama_index.llms.dashscope.base import DashScope, DashScopeGenerationModels
__all__ = ["DashScope", "DashScopeGenerationModels"]
| llama_index/llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-dashscope/llama_index/llms/dashscope/__init__.py",
"repo_id": "llama_index",
"token_count": 42
} | 1,280 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-dashvector/llama_index/readers/dashvector/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,338 |
/**
* Type alias for a record where the keys are strings and the values can
* be any type. This is used to represent the input values for a Chain.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type InputValues = Record<string, any>;
/**
* Type alias for a record where the keys are string... | langchainjs/langchain-core/src/memory.ts/0 | {
"file_path": "langchainjs/langchain-core/src/memory.ts",
"repo_id": "langchainjs",
"token_count": 1198
} | 875 |
# Copyright 2020 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 agreed to in writ... | datasets/tests/test_metric_common.py/0 | {
"file_path": "datasets/tests/test_metric_common.py",
"repo_id": "datasets",
"token_count": 3144
} | 151 |
use candle::{DType, IndexOp, Result, Tensor, D};
use candle_nn::VarBuilder;
#[derive(Debug)]
struct PositionEmbeddingRandom {
positional_encoding_gaussian_matrix: Tensor,
}
impl PositionEmbeddingRandom {
fn new(num_pos_feats: usize, vb: VarBuilder) -> Result<Self> {
let positional_encoding_gaussian_ma... | candle/candle-transformers/src/models/segment_anything/prompt_encoder.rs/0 | {
"file_path": "candle/candle-transformers/src/models/segment_anything/prompt_encoder.rs",
"repo_id": "candle",
"token_count": 4719
} | 70 |
# 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 applicabl... | accelerate/tests/test_grad_sync.py/0 | {
"file_path": "accelerate/tests/test_grad_sync.py",
"repo_id": "accelerate",
"token_count": 632
} | 20 |
from llama_index.core.question_gen.types import BaseQuestionGenerator
from llama_index.question_gen.openai import OpenAIQuestionGenerator
def test_class():
names_of_base_classes = [b.__name__ for b in OpenAIQuestionGenerator.__mro__]
assert BaseQuestionGenerator.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/tests/test_question_gen_openai_generator.py/0 | {
"file_path": "llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/tests/test_question_gen_openai_generator.py",
"repo_id": "llama_index",
"token_count": 98
} | 1,446 |
import { test } from "@jest/globals";
import { OpenAI } from "@langchain/openai";
import { Document } from "@langchain/core/documents";
import { loadSummarizationChain } from "../load.js";
test("Test loadSummzationChain stuff", async () => {
const model = new OpenAI({ modelName: "gpt-3.5-turbo-instruct" });
const ... | langchainjs/langchain/src/chains/summarization/tests/load.int.test.ts/0 | {
"file_path": "langchainjs/langchain/src/chains/summarization/tests/load.int.test.ts",
"repo_id": "langchainjs",
"token_count": 526
} | 885 |
import { OllamaFunctions } from "langchain/experimental/chat_models/ollama_functions";
import { HumanMessage } from "@langchain/core/messages";
// Custom system prompt to format tools. You must encourage the model
// to wrap output in a JSON object with "tool" and "tool_input" properties.
const toolSystemPromptTemplat... | langchainjs/examples/src/models/chat/ollama_functions/custom_prompt.ts/0 | {
"file_path": "langchainjs/examples/src/models/chat/ollama_functions/custom_prompt.ts",
"repo_id": "langchainjs",
"token_count": 597
} | 804 |
def test_import() -> None:
from langchain.chains import NeptuneOpenCypherQAChain # noqa: F401
| langchain/libs/langchain/tests/unit_tests/chains/test_neptune_cypher_qa.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/chains/test_neptune_cypher_qa.py",
"repo_id": "langchain",
"token_count": 34
} | 597 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-sagemaker-endpoint/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-sagemaker-endpoint/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,285 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/core/src/query/ExprImpl.h/0 | {
"file_path": "milvus/internal/core/src/query/ExprImpl.h",
"repo_id": "milvus",
"token_count": 1610
} | 1,791 |
# Copyright (C) 2019-2022 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 law or ag... | milvus/build/docker/builder/cpu/ubuntu20.04/Dockerfile/0 | {
"file_path": "milvus/build/docker/builder/cpu/ubuntu20.04/Dockerfile",
"repo_id": "milvus",
"token_count": 999
} | 1,888 |
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | milvus/internal/core/unittest/test_float16.cpp/0 | {
"file_path": "milvus/internal/core/unittest/test_float16.cpp",
"repo_id": "milvus",
"token_count": 11859
} | 1,676 |
from typing import Iterator, List, Optional
from uuid import uuid4
import pytest
from langchain_community.chat_models import ChatOpenAI
from langchain_community.llms.openai import OpenAI
from langchain_core.messages import BaseMessage, HumanMessage
from langchain_core.prompts.chat import ChatPromptTemplate
from langsm... | langchain/libs/langchain/tests/integration_tests/smith/evaluation/test_runner_utils.py/0 | {
"file_path": "langchain/libs/langchain/tests/integration_tests/smith/evaluation/test_runner_utils.py",
"repo_id": "langchain",
"token_count": 7289
} | 614 |
<jupyter_start><jupyter_text>Google Docs ReaderDemonstrates our Google Docs data connector If you're opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.<jupyter_code>%pip install llama-index-readers-google
!pip install llama-index
import logging
import sys
logging.basicConfig(stream=sys.st... | llama_index/docs/examples/data_connectors/GoogleDocsDemo.ipynb/0 | {
"file_path": "llama_index/docs/examples/data_connectors/GoogleDocsDemo.ipynb",
"repo_id": "llama_index",
"token_count": 299
} | 1,128 |
// 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/typeutil/type.go/0 | {
"file_path": "milvus/pkg/util/typeutil/type.go",
"repo_id": "milvus",
"token_count": 644
} | 1,928 |
[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 = ["VoyageEmbedding"]
contains_example = false
import_path = "llama_index.embeddings.voyageai... | llama_index/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-voyageai/pyproject.toml",
"repo_id": "llama_index",
"token_count": 654
} | 1,205 |
import { useMemo } from "react";
import { DropzoneState } from "react-dropzone";
import { XCircleIcon } from "@heroicons/react/24/outline";
const baseStyle = {
flex: 1,
display: "flex",
flexDirection: "column",
alignItems: "center",
padding: "20px",
borderWidth: 2,
borderRadius: 2,
borderColor: "#eeeee... | opengpts/frontend/src/components/FileUpload.tsx/0 | {
"file_path": "opengpts/frontend/src/components/FileUpload.tsx",
"repo_id": "opengpts",
"token_count": 1326
} | 2,022 |
# Copyright 2024-present 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 law or... | peft/src/peft/utils/merge_utils.py/0 | {
"file_path": "peft/src/peft/utils/merge_utils.py",
"repo_id": "peft",
"token_count": 3819
} | 337 |
from typing import Any, Optional, Sequence
from llama_index.legacy.evaluation.base import BaseEvaluator, EvaluationResult
from llama_index.legacy.prompts.mixin import PromptDictType, PromptMixinType
class AugmentationPrecisionEvaluator(BaseEvaluator):
"""Tonic Validate's augmentation precision metric.
The o... | llama_index/llama-index-legacy/llama_index/legacy/evaluation/tonic_validate/augmentation_precision.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/evaluation/tonic_validate/augmentation_precision.py",
"repo_id": "llama_index",
"token_count": 957
} | 1,512 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-legacy/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,684 |
package iterator
import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/proto/etcdpb"
"github.com/milvus-io/milvus/internal/storage"
)
func TestInsertBinlogIteratorSuite(t *testing.T) {
suite.Run(t, new(InsertBinlogIt... | milvus/internal/datanode/iterators/binlog_iterator_test.go/0 | {
"file_path": "milvus/internal/datanode/iterators/binlog_iterator_test.go",
"repo_id": "milvus",
"token_count": 4549
} | 1,922 |
import base64
import mimetypes
def encode_image(image_path: str) -> str:
"""Get base64 string from image URI."""
with open(image_path, "rb") as image_file:
return base64.b64encode(image_file.read()).decode("utf-8")
def image_to_data_url(image_path: str) -> str:
encoding = encode_image(image_path... | langchain/libs/core/langchain_core/utils/image.py/0 | {
"file_path": "langchain/libs/core/langchain_core/utils/image.py",
"repo_id": "langchain",
"token_count": 168
} | 433 |
package indexparamcheck
import (
"strconv"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus/pkg/util/metric"
)
func Test_flatChecker_CheckTrain(t *testing.T) {
p1 := map[string]string{
DIM: strconv.Itoa(128),
Metric: metric.L2,
}
p2 := map[string]string{
DIM: strconv.It... | milvus/pkg/util/indexparamcheck/flat_checker_test.go/0 | {
"file_path": "milvus/pkg/util/indexparamcheck/flat_checker_test.go",
"repo_id": "milvus",
"token_count": 855
} | 1,905 |
python_tests()
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-mistralai/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-mistralai/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,320 |
from __future__ import annotations
import json
from typing import Any, List, Literal, Sequence, Union
from langchain_core.load.serializable import Serializable
from langchain_core.messages import (
AIMessage,
BaseMessage,
FunctionMessage,
HumanMessage,
)
class AgentAction(Serializable):
"""A ful... | langchain/libs/core/langchain_core/agents.py/0 | {
"file_path": "langchain/libs/core/langchain_core/agents.py",
"repo_id": "langchain",
"token_count": 2033
} | 387 |
from enum import Enum
class BaseError(Enum):
pass
class VectorInsertError(BaseError):
pass
class VectorSearchError(BaseError):
pass
class VectorGetError(BaseError):
pass
class VectorQueryError(BaseError):
pass
class VectorDeleteError(BaseError):
pass
class CollectionListError(BaseE... | milvus/tests/restful_client/base/error_code_message.py/0 | {
"file_path": "milvus/tests/restful_client/base/error_code_message.py",
"repo_id": "milvus",
"token_count": 156
} | 1,984 |
<jupyter_start><jupyter_text>OpenInference Callback Handler + Arize Phoenix[OpenInference](https://github.com/Arize-ai/open-inference-spec) is an open standard for capturing and storing AI model inferences. It enables production LLMapp servers to seamlessly integrate with LLM observability solutions such as [Arize](htt... | llama_index/docs/examples/callbacks/OpenInferenceCallback.ipynb/0 | {
"file_path": "llama_index/docs/examples/callbacks/OpenInferenceCallback.ipynb",
"repo_id": "llama_index",
"token_count": 2965
} | 1,070 |
# LangChain google-common
This package contains common resources to access Google AI/ML models
and other Google services in an auth-independent way.
AI/ML models are supported using the same interface no matter if
you are using the Google AI Studio-based version of the model or
the Google Cloud Vertex AI version of t... | langchainjs/libs/langchain-google-common/README.md/0 | {
"file_path": "langchainjs/libs/langchain-google-common/README.md",
"repo_id": "langchainjs",
"token_count": 341
} | 1,014 |
# Brave Search
>[Brave Search](https://en.wikipedia.org/wiki/Brave_Search) is a search engine developed by Brave Software.
> - `Brave Search` uses its own web index. As of May 2022, it covered over 10 billion pages and was used to serve 92%
> of search results without relying on any third-parties, with the remainder... | langchain/docs/docs/integrations/providers/brave_search.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/brave_search.mdx",
"repo_id": "langchain",
"token_count": 396
} | 135 |
"""Markdown parser.
Contains parser for md files.
"""
import re
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple, cast
from llama_index.legacy.readers.base import BaseReader
from llama_index.legacy.schema import Document
class MarkdownReader(BaseReader):
"""Markdown parser.
Ex... | llama_index/llama-index-legacy/llama_index/legacy/readers/file/markdown_reader.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/readers/file/markdown_reader.py",
"repo_id": "llama_index",
"token_count": 1671
} | 1,633 |
import { HuggingFaceInference } from "@langchain/community/llms/hf";
export const run = async () => {
const model = new HuggingFaceInference({
model: "gpt2",
temperature: 0.7,
maxTokens: 50,
});
const res = await model.call(
"Question: What would be a good company name a company that makes colorf... | langchainjs/examples/src/llms/hf.ts/0 | {
"file_path": "langchainjs/examples/src/llms/hf.ts",
"repo_id": "langchainjs",
"token_count": 125
} | 837 |
build_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_7/sift_10m_1024_128_l2_nsg_wal
cache_config.cpu_cache_capacity: 32
engine_config.use_blas_threshold: 1100
engine_config.gpu_search_threshold: 1
gpu_resource_config.enable: true
... | milvus/tests/benchmark/milvus_benchmark/suites/debug_build.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/debug_build.yaml",
"repo_id": "milvus",
"token_count": 360
} | 1,881 |
python_tests()
| llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,596 |
<jupyter_start><jupyter_text>EDEN AI Eden AI is revolutionizing the AI landscape by uniting the best AI providers, empowering users to unlock limitless possibilities and tap into the true potential of artificial intelligence. With an all-in-one comprehensive and hassle-free platform, it allows users to deploy AI featur... | langchain/docs/docs/integrations/text_embedding/edenai.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/text_embedding/edenai.ipynb",
"repo_id": "langchain",
"token_count": 618
} | 160 |
# Copyright 2024 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | diffusers/src/diffusers/commands/env.py/0 | {
"file_path": "diffusers/src/diffusers/commands/env.py",
"repo_id": "diffusers",
"token_count": 1069
} | 235 |
#!/usr/bin/env python
"""Example LangChain server passes through some of the inputs in the response."""
from typing import Any, Callable, Dict, List, Optional, TypedDict
from fastapi import FastAPI
from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from langchain.schema.runn... | langserve/examples/passthrough_dict/server.py/0 | {
"file_path": "langserve/examples/passthrough_dict/server.py",
"repo_id": "langserve",
"token_count": 815
} | 1,042 |
kind: Schedule
apiVersion: chaos-mesh.org/v1alpha1
metadata:
name: test-minio-pod-kill
namespace: chaos-testing
spec:
schedule: '*/5 * * * * *'
startingDeadlineSeconds: 60
concurrencyPolicy: Forbid
historyLimit: 1
type: PodChaos
podChaos:
selector:
namespaces:
- chaos-testing
lab... | milvus/tests/python_client/chaos/chaos_objects/pod_kill/chaos_minio_pod_kill.yaml/0 | {
"file_path": "milvus/tests/python_client/chaos/chaos_objects/pod_kill/chaos_minio_pod_kill.yaml",
"repo_id": "milvus",
"token_count": 192
} | 1,959 |
# coding=utf-8
# Copyright 2021 ASAPP Inc. and the HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | transformers/src/transformers/models/sew/modeling_sew.py/0 | {
"file_path": "transformers/src/transformers/models/sew/modeling_sew.py",
"repo_id": "transformers",
"token_count": 22998
} | 720 |
from typing import Any, List, Sequence
from langchain_core.documents import Document
from langchain.retrievers import ParentDocumentRetriever
from langchain.storage import InMemoryStore
from langchain.text_splitter import CharacterTextSplitter
from tests.unit_tests.indexes.test_indexing import InMemoryVectorStore
c... | langchain/libs/langchain/tests/unit_tests/retrievers/test_parent_document.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/retrievers/test_parent_document.py",
"repo_id": "langchain",
"token_count": 503
} | 614 |
"""
LocalAI is a free, open source, and self-hosted OpenAI alternative.
Docs: https://localai.io/
Source: https://github.com/go-skynet/LocalAI
"""
import warnings
from types import MappingProxyType
from typing import Any, Callable, Dict, Optional, Sequence
from llama_index.core.base.llms.types import ChatMessage, LL... | llama_index/llama-index-integrations/llms/llama-index-llms-localai/llama_index/llms/localai/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-localai/llama_index/llms/localai/base.py",
"repo_id": "llama_index",
"token_count": 1806
} | 1,231 |
from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.dense_x_retrieval import DenseXRetrievalPack
def test_class():
names_of_base_classes = [b.__name__ for b in DenseXRetrievalPack.__mro__]
assert BaseLlamaPack.__name__ in names_of_base_classes
| llama_index/llama-index-packs/llama-index-packs-dense-x-retrieval/tests/test_packs_dense_x_retrieval.py/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-dense-x-retrieval/tests/test_packs_dense_x_retrieval.py",
"repo_id": "llama_index",
"token_count": 107
} | 1,667 |
<jupyter_start><jupyter_text>AssemblyAI Audio TranscriptsThe `AssemblyAIAudioTranscriptLoader` allows to transcribe audio files with the [AssemblyAI API](https://www.assemblyai.com) and loads the transcribed text into documents.To use it, you should have the `assemblyai` python package installed, and theenvironment var... | langchain/docs/docs/integrations/document_loaders/assemblyai.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/assemblyai.ipynb",
"repo_id": "langchain",
"token_count": 1084
} | 97 |
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
import type { ToolInterface } from "@langchain/core/tools";
import type { SerializedAgentT, AgentInput } from "./types.js";
import { LLMChain } from "../chains/llm_chain.js";
export const deserializeHelper = async <
T extends str... | langchainjs/langchain/src/agents/helpers.ts/0 | {
"file_path": "langchainjs/langchain/src/agents/helpers.ts",
"repo_id": "langchainjs",
"token_count": 407
} | 877 |
# Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | datasets/metrics/perplexity/perplexity.py/0 | {
"file_path": "datasets/metrics/perplexity/perplexity.py",
"repo_id": "datasets",
"token_count": 3550
} | 132 |
pub mod bert;
pub mod precompiled;
pub mod prepend;
pub mod replace;
pub mod strip;
pub mod unicode;
pub mod utils;
pub use crate::normalizers::bert::BertNormalizer;
pub use crate::normalizers::precompiled::Precompiled;
pub use crate::normalizers::prepend::Prepend;
pub use crate::normalizers::replace::Replace;
pub use... | tokenizers/tokenizers/src/normalizers/mod.rs/0 | {
"file_path": "tokenizers/tokenizers/src/normalizers/mod.rs",
"repo_id": "tokenizers",
"token_count": 1090
} | 437 |
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.
#
# 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
#
# U... | datasets/src/datasets/naming.py/0 | {
"file_path": "datasets/src/datasets/naming.py",
"repo_id": "datasets",
"token_count": 1178
} | 154 |
import { Document } from "@langchain/core/documents";
import {
VectorStore,
VectorStoreRetriever,
VectorStoreRetrieverInput,
} from "@langchain/core/vectorstores";
export type ScoreThresholdRetrieverInput<V extends VectorStore> = Omit<
VectorStoreRetrieverInput<V>,
"k"
> & {
maxK?: number;
kIncrement?: n... | langchainjs/langchain/src/retrievers/score_threshold.ts/0 | {
"file_path": "langchainjs/langchain/src/retrievers/score_threshold.ts",
"repo_id": "langchainjs",
"token_count": 562
} | 929 |
# coding=utf-8
# Copyright 2022 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/blip/processing_blip.py/0 | {
"file_path": "transformers/src/transformers/models/blip/processing_blip.py",
"repo_id": "transformers",
"token_count": 2615
} | 652 |
<jupyter_start><jupyter_text>Docs | GitHub | Community Arize-Phoenix LlamaPackThis LlamaPack instruments your LlamaIndex app for LLM tracing with [Phoenix](https://github.com/Arize-ai/phoenix), an open-source LLM observability library from [Arize AI](https://phoenix.arize.com/). Install ... | llama_index/llama-index-packs/llama-index-packs-arize-phoenix-query-engine/examples/arize_phoenix_llama_pack.ipynb/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-arize-phoenix-query-engine/examples/arize_phoenix_llama_pack.ipynb",
"repo_id": "llama_index",
"token_count": 909
} | 1,574 |
# LlamaIndex Extractors Integration: Marvin
| llama_index/llama-index-integrations/extractors/llama-index-extractors-marvin/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/extractors/llama-index-extractors-marvin/README.md",
"repo_id": "llama_index",
"token_count": 10
} | 1,279 |
import http.client
import json
import ssl
from typing import Any, List, Mapping, Optional
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.llms import LLM
class NIBittensorLLM(LLM):
"""NIBittensor LLMs
NIBittensorLLM is created by Neural Internet (https://neu... | langchain/libs/community/langchain_community/llms/bittensor.py/0 | {
"file_path": "langchain/libs/community/langchain_community/llms/bittensor.py",
"repo_id": "langchain",
"token_count": 3054
} | 266 |
import pytest
import pytest_socket
import requests
def test_socket_disabled() -> None:
"""This test should fail."""
with pytest.raises(pytest_socket.SocketBlockedError):
requests.get("https://www.example.com")
| langchain/libs/langchain/tests/unit_tests/test_pytest_config.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/test_pytest_config.py",
"repo_id": "langchain",
"token_count": 77
} | 644 |
import { Chroma } from "@langchain/community/vectorstores/chroma";
import { OpenAIEmbeddings } from "@langchain/openai";
const vectorStore = await Chroma.fromExistingCollection(
new OpenAIEmbeddings(),
{ collectionName: "godel-escher-bach" }
);
const response = await vectorStore.similaritySearch("scared", 2);
con... | langchainjs/examples/src/indexes/vector_stores/chroma/search.ts/0 | {
"file_path": "langchainjs/examples/src/indexes/vector_stores/chroma/search.ts",
"repo_id": "langchainjs",
"token_count": 172
} | 783 |
# BREEBS (Open Knowledge)
[BREEBS](https://www.breebs.com/) is an open collaborative knowledge platform.
Anybody can create a Breeb, a knowledge capsule based on PDFs stored on a Google Drive folder.
A breeb can be used by any LLM/chatbot to improve its expertise, reduce hallucinations and give access to sources.
Beh... | langchain/docs/docs/integrations/providers/breebs.md/0 | {
"file_path": "langchain/docs/docs/integrations/providers/breebs.md",
"repo_id": "langchain",
"token_count": 367
} | 128 |
#!/bin/bash
#SBATCH --ntasks-per-node=1
#SBATCH --exclusive
#SBATCH --gres=gpu:8
#SBATCH --partition=hopper-prod # Adjust this for your cluster
#SBATCH --output=/fsx/h4/logs/%x-%j.out # Adjust this for your cluster
#SBATCH --err=/fsx/h4/logs/%x-%j.err # Adjust this for your cluster
set -x -e
source ~/.bashrc
cond... | alignment-handbook/recipes/launch.slurm/0 | {
"file_path": "alignment-handbook/recipes/launch.slurm",
"repo_id": "alignment-handbook",
"token_count": 1135
} | 22 |
from langchain_community.embeddings import OpenAIEmbeddings
from langchain_community.vectorstores import Neo4jVector
# Typical RAG retriever
typical_rag = Neo4jVector.from_existing_index(
OpenAIEmbeddings(), index_name="typical_rag"
)
# Parent retriever
parent_query = """
MATCH (node)<-[:HAS_CHILD]-(parent)
WIT... | langchain/templates/neo4j-advanced-rag/neo4j_advanced_rag/retrievers.py/0 | {
"file_path": "langchain/templates/neo4j-advanced-rag/neo4j_advanced_rag/retrievers.py",
"repo_id": "langchain",
"token_count": 456
} | 646 |
package milvus
import (
"flag"
"fmt"
"io"
"os"
"path"
"syscall"
"github.com/milvus-io/milvus/pkg/util/hardware"
"github.com/milvus-io/milvus/pkg/util/typeutil"
)
const (
StopCmd = "stop"
)
type stop struct {
serverType string
svrAlias string
}
func (c *stop) getHelp() string {
return stopLine + "\n" ... | milvus/cmd/milvus/stop.go/0 | {
"file_path": "milvus/cmd/milvus/stop.go",
"repo_id": "milvus",
"token_count": 704
} | 1,720 |
.. entities:: python
:global:
class
class
classmethod
class method
Tokenizer
:class:`~tokenizers.Tokenizer`
Tokenizer.train
:meth:`~tokenizers.Tokenizer.train`
Tokenizer.save
:meth:`~tokenizers.Tokenizer.save`
Tokenizer.from_file
:meth:`~toke... | tokenizers/docs/source/entities.inc/0 | {
"file_path": "tokenizers/docs/source/entities.inc",
"repo_id": "tokenizers",
"token_count": 2078
} | 469 |
export { LunaryHandler } from "lunary/langchain";
| langchainjs/libs/langchain-community/src/callbacks/handlers/lunary.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/callbacks/handlers/lunary.ts",
"repo_id": "langchainjs",
"token_count": 16
} | 1,049 |
# coding=utf-8
# Copyright 2023 Apple Inc. and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | transformers/src/transformers/models/mobilevitv2/modeling_mobilevitv2.py/0 | {
"file_path": "transformers/src/transformers/models/mobilevitv2/modeling_mobilevitv2.py",
"repo_id": "transformers",
"token_count": 17368
} | 702 |
from langchain_community.retrievers.databerry import DataberryRetriever
__all__ = ["DataberryRetriever"]
| langchain/libs/langchain/langchain/retrievers/databerry.py/0 | {
"file_path": "langchain/libs/langchain/langchain/retrievers/databerry.py",
"repo_id": "langchain",
"token_count": 35
} | 556 |
import json
import os
from pathlib import PurePath
from typing import Any, Dict, Optional
import boto3
from llama_index.core.storage.kvstore.types import DEFAULT_COLLECTION, BaseKVStore
class S3DBKVStore(BaseKVStore):
"""S3 Key-Value store.
Stores key-value pairs in a S3 bucket. Can optionally specify a path... | llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/base.py",
"repo_id": "llama_index",
"token_count": 2176
} | 1,556 |
<jupyter_start><jupyter_text>Using PEFT with timm `peft` allows us to train any model with LoRA as long as the layer type is supported. Since `Conv2D` is one of the supported layer types, it makes sense to test it on image models.In this short notebook, we will demonstrate this with an image classification task using [... | peft/examples/image_classification/image_classification_timm_peft_lora.ipynb/0 | {
"file_path": "peft/examples/image_classification/image_classification_timm_peft_lora.ipynb",
"repo_id": "peft",
"token_count": 3067
} | 328 |
from langchain_community.document_loaders.bibtex import BibtexLoader
__all__ = ["BibtexLoader"]
| langchain/libs/langchain/langchain/document_loaders/bibtex.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/bibtex.py",
"repo_id": "langchain",
"token_count": 31
} | 476 |
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | transformers/tests/models/xlm_roberta/test_modeling_xlm_roberta.py/0 | {
"file_path": "transformers/tests/models/xlm_roberta/test_modeling_xlm_roberta.py",
"repo_id": "transformers",
"token_count": 1277
} | 836 |
from langchain_community.document_loaders.parsers.language.python import PythonSegmenter
__all__ = ["PythonSegmenter"]
| langchain/libs/langchain/langchain/document_loaders/parsers/language/python.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/parsers/language/python.py",
"repo_id": "langchain",
"token_count": 36
} | 497 |
<jupyter_start><jupyter_text>RunhouseThe [Runhouse](https://github.com/run-house/runhouse) allows remote compute and data across environments and users. See the [Runhouse docs](https://runhouse-docs.readthedocs-hosted.com/en/latest/).This example goes over how to use LangChain and [Runhouse](https://github.com/run-hous... | langchain/docs/docs/integrations/llms/runhouse.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/llms/runhouse.ipynb",
"repo_id": "langchain",
"token_count": 1392
} | 126 |
from typing import (
Any,
Awaitable,
Callable,
Dict,
List,
Optional,
Protocol,
Sequence,
cast,
runtime_checkable,
)
import httpx
import tiktoken
from openai import AsyncOpenAI, AzureOpenAI
from openai import OpenAI as SyncOpenAI
from openai.types.chat.chat_completion_chunk impor... | llama_index/llama-index-legacy/llama_index/legacy/llms/openai.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/llms/openai.py",
"repo_id": "llama_index",
"token_count": 11231
} | 1,682 |
{
"docstore/data": {
"73b98f2c-4691-4bdd-8329-c3e61e87231e": {
"__data__": {
"id_": "73b98f2c-4691-4bdd-8329-c3e61e87231e",
"embedding": null,
"metadata": {},
"excluded_embed_metadata_keys": [],
"excluded_llm_metadata_keys": [],
"relationships": {},
"t... | llama_index/llama-index-core/storage/docstore.json/0 | {
"file_path": "llama_index/llama-index-core/storage/docstore.json",
"repo_id": "llama_index",
"token_count": 1266
} | 1,146 |
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/src/transformers/models/graphormer/__init__.py/0 | {
"file_path": "transformers/src/transformers/models/graphormer/__init__.py",
"repo_id": "transformers",
"token_count": 677
} | 627 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-zep/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-zep/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,580 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "chat_models/cloudflare_workersai",
newEntrypointName: "",
newPackageName: "@langchain/cloudflare",
});
export * from "@langchain/community/chat_models/cloudflare_... | langchainjs/langchain/src/chat_models/cloudflare_workersai.ts/0 | {
"file_path": "langchainjs/langchain/src/chat_models/cloudflare_workersai.ts",
"repo_id": "langchainjs",
"token_count": 105
} | 935 |
// 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/segcore_init_c.h/0 | {
"file_path": "milvus/internal/core/src/segcore/segcore_init_c.h",
"repo_id": "milvus",
"token_count": 445
} | 1,938 |
{
"details": {
"best_of_sequences": null,
"finish_reason": "length",
"generated_tokens": 20,
"prefill": [
{
"id": 589,
"logprob": null,
"text": "def"
},
{
"id": 3226,
"logprob": -8.5859375,
"text": " ge"
},
{
"id": 2... | text-generation-inference/integration-tests/models/__snapshots__/test_flash_starcoder_gptq/test_flash_starcoder_gptq_default_params.json/0 | {
"file_path": "text-generation-inference/integration-tests/models/__snapshots__/test_flash_starcoder_gptq/test_flash_starcoder_gptq_default_params.json",
"repo_id": "text-generation-inference",
"token_count": 2310
} | 377 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.