text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
"""Code to ingest blob into a vectorstore.
Code is responsible for taking binary data, parsing it and then indexing it
into a vector store.
This code should be agnostic to how the blob got generated; i.e., it does not
know about server/uploading etc.
"""
from typing import List
from langchain.text_splitter import Te... | opengpts/backend/app/ingest.py/0 | {
"file_path": "opengpts/backend/app/ingest.py",
"repo_id": "opengpts",
"token_count": 530
} | 2,018 |
insert_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_gpu/deep_1b_1024_96_ip_ivf
cache_config.cpu_cache_capacity: 8
engine_config.use_blas_threshold: 1100
engine_config.gpu_search_threshold: 1
gpu_resource_config.enable: false
... | milvus/tests/benchmark/milvus_benchmark/suites/insert_performance_deep1b.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/insert_performance_deep1b.yaml",
"repo_id": "milvus",
"token_count": 1467
} | 1,883 |
# LlamaIndex Callbacks Integration: DeepEval
| llama_index/llama-index-integrations/callbacks/llama-index-callbacks-deepeval/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/callbacks/llama-index-callbacks-deepeval/README.md",
"repo_id": "llama_index",
"token_count": 12
} | 1,245 |
import logging
from abc import abstractmethod
from typing import Any, Dict, Generic, List, Optional, Type
import pandas as pd
from llama_index.core.llms import LLM
from llama_index.core.schema import BaseNode, TextNode
from llama_index.core.service_context import ServiceContext
from llama_index.core.types import BaseP... | llama_index/llama-index-integrations/program/llama-index-program-evaporate/llama_index/program/evaporate/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/program/llama-index-program-evaporate/llama_index/program/evaporate/base.py",
"repo_id": "llama_index",
"token_count": 4326
} | 1,357 |
/* eslint-disable import/no-extraneous-dependencies */
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";
export default defineSchema({
documents: defineTable({
embedding: v.array(v.number()),
text: v.string(),
metadata: v.any(),
}).vectorIndex("byEmbedding",... | langchainjs/libs/langchain-community/src/vectorstores/tests/convex/convex/schema.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/vectorstores/tests/convex/convex/schema.ts",
"repo_id": "langchainjs",
"token_count": 140
} | 997 |
"""Implement an LLM driven browser."""
from __future__ import annotations
import warnings
from typing import Any, Dict, List, Optional
from langchain_community.llms.openai import OpenAI
from langchain_core.callbacks import CallbackManagerForChainRun
from langchain_core.language_models import BaseLanguageModel
from la... | langchain/libs/langchain/langchain/chains/natbot/base.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/natbot/base.py",
"repo_id": "langchain",
"token_count": 1949
} | 461 |
<!---
Copyright 2023 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... | transformers/docs/source/en/model_memory_anatomy.md/0 | {
"file_path": "transformers/docs/source/en/model_memory_anatomy.md",
"repo_id": "transformers",
"token_count": 3290
} | 508 |
# Normalizers
<tokenizerslangcontent>
<python>
## BertNormalizer
[[autodoc]] tokenizers.normalizers.BertNormalizer
## Lowercase
[[autodoc]] tokenizers.normalizers.Lowercase
## NFC
[[autodoc]] tokenizers.normalizers.NFC
## NFD
[[autodoc]] tokenizers.normalizers.NFD
## NFKC
[[autodoc]] tokenizers.normalizers.NF... | tokenizers/docs/source-doc-builder/api/normalizers.mdx/0 | {
"file_path": "tokenizers/docs/source-doc-builder/api/normalizers.mdx",
"repo_id": "tokenizers",
"token_count": 350
} | 429 |
""" Convolution with Weight Standardization (StdConv and ScaledStdConv)
StdConv:
@article{weightstandardization,
author = {Siyuan Qiao and Huiyu Wang and Chenxi Liu and Wei Shen and Alan Yuille},
title = {Weight Standardization},
journal = {arXiv preprint arXiv:1903.10520},
year = {2019},
}
Code:... | pytorch-image-models/timm/layers/std_conv.py/0 | {
"file_path": "pytorch-image-models/timm/layers/std_conv.py",
"repo_id": "pytorch-image-models",
"token_count": 2483
} | 392 |
<jupyter_start><jupyter_text>GitHubThis notebooks shows how you can load issues and pull requests (PRs) for a given repository on [GitHub](https://github.com/). Also shows how you can load github files for a given repository on [GitHub](https://github.com/). We will use the LangChain Python repository as an example. S... | langchain/docs/docs/integrations/document_loaders/github.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/github.ipynb",
"repo_id": "langchain",
"token_count": 842
} | 108 |
#!/usr/bin/env python3
# Copyright 2018 CMU and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | transformers/examples/research_projects/bertology/run_bertology.py/0 | {
"file_path": "transformers/examples/research_projects/bertology/run_bertology.py",
"repo_id": "transformers",
"token_count": 7347
} | 536 |
package planparserv2
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/proto/planpb"
)
func Test_relationalCompatible(t *testing.T) {
type args struct {
t1 schemapb.DataType
t2 schemapb.DataType
}
tests := ... | milvus/internal/parser/planparserv2/utils_test.go/0 | {
"file_path": "milvus/internal/parser/planparserv2/utils_test.go",
"repo_id": "milvus",
"token_count": 3810
} | 2,009 |
import multiprocessing
import numbers
import random
import numpy
import threading
import pytest
import pandas as pd
import decimal
from decimal import Decimal, getcontext
from time import sleep
import heapq
from base.client_base import TestcaseBase
from utils.util_log import test_log as log
from common import common_f... | milvus/tests/python_client/milvus_client/test_milvus_client_query.py/0 | {
"file_path": "milvus/tests/python_client/milvus_client/test_milvus_client_query.py",
"repo_id": "milvus",
"token_count": 5322
} | 1,909 |
search_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_011/filter/sift_10m_128_l2/
cache_config.cpu_cache_capacity: 32GB
engine_config.use_blas_threshold: 0
engine_config.gpu_search_threshold: 100
gpu_resource_config.enable: tru... | milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_search_sift10m_filter.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_search_sift10m_filter.yaml",
"repo_id": "milvus",
"token_count": 1646
} | 2,143 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/m... | langchainjs/environment_tests/test-exports-vite/index.html/0 | {
"file_path": "langchainjs/environment_tests/test-exports-vite/index.html",
"repo_id": "langchainjs",
"token_count": 156
} | 786 |
Multistep Query Engine
=======================
.. automodule:: llama_index.core.query_engine.multistep_query_engine
:members:
:inherited-members:
.. :exclude-members: index_struct, query, set_llm_predictor, set_prompt_helper
| llama_index/docs/api_reference/query/query_engines/multistep_query_engine.rst/0 | {
"file_path": "llama_index/docs/api_reference/query/query_engines/multistep_query_engine.rst",
"repo_id": "llama_index",
"token_count": 84
} | 1,033 |
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/src/transformers/models/dinat/configuration_dinat.py/0 | {
"file_path": "transformers/src/transformers/models/dinat/configuration_dinat.py",
"repo_id": "transformers",
"token_count": 2945
} | 623 |
"""Simple keyword-table based index.
Similar to KeywordTableIndex, but uses a simpler keyword extraction
technique that doesn't involve GPT - just uses regex.
"""
from typing import Any, Set, Union
from llama_index.core.base.base_retriever import BaseRetriever
from llama_index.core.indices.keyword_table.base import... | llama_index/llama-index-core/llama_index/core/indices/keyword_table/simple_base.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/indices/keyword_table/simple_base.py",
"repo_id": "llama_index",
"token_count": 488
} | 1,177 |
# Copyright 2024 Custom Diffusion authors. 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 appl... | diffusers/examples/custom_diffusion/retrieve.py/0 | {
"file_path": "diffusers/examples/custom_diffusion/retrieve.py",
"repo_id": "diffusers",
"token_count": 1429
} | 205 |
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/datasets-logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/d... | datasets/README.md/0 | {
"file_path": "datasets/README.md",
"repo_id": "datasets",
"token_count": 4002
} | 117 |
"""Classification of logical fallacies in Natural Language Arguments \
from https://arxiv.org/pdf/2212.07425.pdf
"""
from typing import Dict
from langchain_experimental.fallacy_removal.models import LogicalFallacy
FALLACIES: Dict[str, LogicalFallacy] = {
"adhominem": LogicalFallacy(
name="adhominem",
... | langchain/libs/experimental/langchain_experimental/fallacy_removal/fallacies.py/0 | {
"file_path": "langchain/libs/experimental/langchain_experimental/fallacy_removal/fallacies.py",
"repo_id": "langchain",
"token_count": 3488
} | 420 |
from langchain_community.tools.google_serper.tool import (
GoogleSerperResults,
GoogleSerperRun,
)
"""Google Serper API Toolkit."""
"""Tool for the Serer.dev Google Search API."""
__all__ = ["GoogleSerperRun", "GoogleSerperResults"]
| langchain/libs/langchain/langchain/tools/google_serper/__init__.py/0 | {
"file_path": "langchain/libs/langchain/langchain/tools/google_serper/__init__.py",
"repo_id": "langchain",
"token_count": 80
} | 558 |
from langchain_community.document_loaders.rtf import UnstructuredRTFLoader
__all__ = ["UnstructuredRTFLoader"]
| langchain/libs/langchain/langchain/document_loaders/rtf.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/rtf.py",
"repo_id": "langchain",
"token_count": 37
} | 516 |
<jupyter_start><jupyter_text>Stock Market Data Query EngineHere we showcase our `StockMarketDataQueryEnginePack`.<jupyter_code>%pip install llama-index-llms-openai
from llama_index.core.llama_pack import download_llama_pack
StockMarketDataQueryEnginePack = download_llama_pack(
"StockMarketDataQueryEnginePack",
... | llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/examples/stock_market_data_query_engine.ipynb/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/examples/stock_market_data_query_engine.ipynb",
"repo_id": "llama_index",
"token_count": 559
} | 1,700 |
import pytest
import random
from common import common_func as cf
from common import common_type as ct
from common.common_type import CaseLabel, CheckTasks
from common.milvus_sys import MilvusSys
from utils.util_pymilvus import *
from deploy.base import TestDeployBase
from deploy import common as dc
from deploy.common i... | milvus/tests/python_client/deploy/testcases/test_action_after_reinstall.py/0 | {
"file_path": "milvus/tests/python_client/deploy/testcases/test_action_after_reinstall.py",
"repo_id": "milvus",
"token_count": 4729
} | 2,003 |
[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.mypy]
disallow_untyped_defs = true
exclude = ["_static", "build", "examples", "notebooks", "venv"]
ignore_missi... | llama_index/llama-index-integrations/callbacks/llama-index-callbacks-uptrain/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/callbacks/llama-index-callbacks-uptrain/pyproject.toml",
"repo_id": "llama_index",
"token_count": 602
} | 1,186 |
# MLflow AI Gateway
:::warning
MLflow AI Gateway has been deprecated. Please use [MLflow Deployments for LLMs](./mlflow) instead.
:::
>[The MLflow AI Gateway](https://www.mlflow.org/docs/latest/gateway/index) service is a powerful tool designed to streamline the usage and management of various large
> language mod... | langchain/docs/docs/integrations/providers/mlflow_ai_gateway.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/mlflow_ai_gateway.mdx",
"repo_id": "langchain",
"token_count": 1423
} | 141 |
# Copyright 2020 The HuggingFace 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
#
# Unless required by applicable law or ... | datasets/metrics/cuad/cuad.py/0 | {
"file_path": "datasets/metrics/cuad/cuad.py",
"repo_id": "datasets",
"token_count": 2242
} | 128 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-cogniswitch/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-cogniswitch/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,476 |
# Security Policy
## Supported Versions
<!--
Use this section to tell people about which versions of your project are
currently being supported with security updates.
| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_... | datasets/SECURITY.md/0 | {
"file_path": "datasets/SECURITY.md",
"repo_id": "datasets",
"token_count": 306
} | 113 |
# Youtube Transcript Loader
This loader fetches the text transcript of Youtube videos using the `youtube_transcript_api` Python package.
## Usage
To use this loader, you will need to first `pip install youtube_transcript_api`.
Then, simply pass an array of YouTube links into `load_data`:
```python
from llama_hub.y... | llama_index/llama-index-integrations/readers/llama-index-readers-youtube-transcript/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-youtube-transcript/README.md",
"repo_id": "llama_index",
"token_count": 407
} | 1,397 |
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/it/big_models.md/0 | {
"file_path": "transformers/docs/source/it/big_models.md",
"repo_id": "transformers",
"token_count": 2210
} | 472 |
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/hi/pipeline_tutorial.md/0 | {
"file_path": "transformers/docs/source/hi/pipeline_tutorial.md",
"repo_id": "transformers",
"token_count": 13906
} | 482 |
# Metric Card for FrugalScore
## Metric Description
FrugalScore is a reference-based metric for Natural Language Generation (NLG) model evaluation. It is based on a distillation approach that allows to learn a fixed, low cost version of any expensive NLG metric, while retaining most of its original performance.
The ... | datasets/metrics/frugalscore/README.md/0 | {
"file_path": "datasets/metrics/frugalscore/README.md",
"repo_id": "datasets",
"token_count": 2127
} | 125 |
# 🦜️🔗 LangChain 🤝 Streamlit agent examples
[](https://codespaces.new/langchain-ai/streamlit-agent?quickstart=1)
This repository contains reference implementations of various LangChain agents as Streamlit apps including:
- `basic_streaming.py`: S... | streamlit-agent/README.md/0 | {
"file_path": "streamlit-agent/README.md",
"repo_id": "streamlit-agent",
"token_count": 1257
} | 1,927 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-google/llama_index/readers/google/calendar/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-google/llama_index/readers/google/calendar/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,306 |
from llama_index.vector_stores.supabase.base import SupabaseVectorStore
__all__ = ["SupabaseVectorStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-supabase/llama_index/vector_stores/supabase/__init__.py",
"repo_id": "llama_index",
"token_count": 32
} | 1,622 |
#!/bin/bash
#SBATCH --job-name=trl
#SBATCH --partition=hopper-prod
#SBATCH --gpus-per-task={{gpus_per_task}}
#SBATCH --cpus-per-gpu={{cpus_per_gpu}}
#SBATCH --ntasks={{ntasks}}
#SBATCH --output=slurm/logs/%x_%j.out
#SBATCH --array={{array}}
##SBATCH --exclude=ip-26-0-149-199
module load cuda/12.1
{{nodes}}
seeds={{s... | trl/benchmark/trl.slurm_template/0 | {
"file_path": "trl/benchmark/trl.slurm_template",
"repo_id": "trl",
"token_count": 217
} | 852 |
from llama_index.core.readers.base import BaseReader
from llama_index.readers.feishu_docs import FeishuDocsReader
def test_class():
names_of_base_classes = [b.__name__ for b in FeishuDocsReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/readers/llama-index-readers-feishu-docs/tests/test_readers_feishu_docs.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-feishu-docs/tests/test_readers_feishu_docs.py",
"repo_id": "llama_index",
"token_count": 97
} | 1,345 |
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/tts/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/tts/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,609 |
package common
import (
"errors"
)
var (
// Tenant errors
ErrTenantNotFound = errors.New("tenant not found")
ErrTenantUniqueConstraintViolation = errors.New("tenant unique constraint violation")
// Database errors
ErrDatabaseNotFound = errors.New("database not found")
ErrData... | chroma/go/coordinator/internal/common/errors.go/0 | {
"file_path": "chroma/go/coordinator/internal/common/errors.go",
"repo_id": "chroma",
"token_count": 585
} | 44 |
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | milvus/internal/core/src/query/visitors/ExtractInfoPlanNodeVisitor.cpp/0 | {
"file_path": "milvus/internal/core/src/query/visitors/ExtractInfoPlanNodeVisitor.cpp",
"repo_id": "milvus",
"token_count": 924
} | 1,881 |
import os
from langchain_community.embeddings import VertexAIEmbeddings
from langchain_community.llms import VertexAI
from langchain_community.vectorstores import MatchingEngine
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import PromptTemplate
from langchain_core.pydantic_v1 i... | langchain/templates/rag-matching-engine/rag_matching_engine/chain.py/0 | {
"file_path": "langchain/templates/rag-matching-engine/rag_matching_engine/chain.py",
"repo_id": "langchain",
"token_count": 865
} | 700 |
import logging
import os
import tempfile
from typing import Any, Iterator, List
from langchain_core.documents import Document
from langchain_community.document_loaders.base import BaseLoader
from langchain_community.document_loaders.unstructured import UnstructuredFileLoader
logger = logging.getLogger(__name__)
cl... | langchain/libs/community/langchain_community/document_loaders/baiducloud_bos_file.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/baiducloud_bos_file.py",
"repo_id": "langchain",
"token_count": 836
} | 244 |
<jupyter_start><jupyter_text>Retriever Query Engine with Custom Retrievers - Simple Hybrid SearchIn this tutorial, we show you how to define a very simple version of hybrid search! Combine keyword lookup retrieval with vector retrieval using "AND" and "OR" conditions. Setup If you're opening this Notebook on colab, yo... | llama_index/docs/examples/query_engine/CustomRetrievers.ipynb/0 | {
"file_path": "llama_index/docs/examples/query_engine/CustomRetrievers.ipynb",
"repo_id": "llama_index",
"token_count": 2319
} | 1,080 |
#[cfg(feature = "mkl")]
extern crate intel_mkl_src;
#[cfg(feature = "accelerate")]
extern crate accelerate_src;
use std::io::Write;
use std::path::PathBuf;
use candle_transformers::models::quantized_t5 as t5;
use anyhow::{Error as E, Result};
use candle::{Device, Tensor};
use candle_transformers::generation::LogitsP... | candle/candle-examples/examples/quantized-t5/main.rs/0 | {
"file_path": "candle/candle-examples/examples/quantized-t5/main.rs",
"repo_id": "candle",
"token_count": 3631
} | 43 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/storage/primary_keys_test.go/0 | {
"file_path": "milvus/internal/storage/primary_keys_test.go",
"repo_id": "milvus",
"token_count": 1428
} | 1,864 |
from llama_index.legacy.indices.managed.zilliz.base import ZillizCloudPipelineIndex
from llama_index.legacy.indices.managed.zilliz.retriever import (
ZillizCloudPipelineRetriever,
)
__all__ = ["ZillizCloudPipelineIndex", "ZillizCloudPipelineRetriever"]
| llama_index/llama-index-legacy/llama_index/legacy/indices/managed/zilliz/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/indices/managed/zilliz/__init__.py",
"repo_id": "llama_index",
"token_count": 98
} | 1,719 |
from langchain_community.embeddings import DeterministicFakeEmbedding
def test_deterministic_fake_embeddings() -> None:
"""
Test that the deterministic fake embeddings return the same
embedding vector for the same text.
"""
fake = DeterministicFakeEmbedding(size=10)
text = "Hello world!"
a... | langchain/libs/community/tests/unit_tests/embeddings/test_deterministic_embedding.py/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/embeddings/test_deterministic_embedding.py",
"repo_id": "langchain",
"token_count": 221
} | 374 |
#[cfg(feature = "mkl")]
extern crate intel_mkl_src;
#[cfg(feature = "accelerate")]
extern crate accelerate_src;
use candle::{DType, IndexOp, D};
use candle_nn::{ModuleT, VarBuilder};
use candle_transformers::models::vgg::{Models, Vgg};
use clap::{Parser, ValueEnum};
#[derive(Clone, Copy, Debug, ValueEnum)]
enum Whic... | candle/candle-examples/examples/vgg/main.rs/0 | {
"file_path": "candle/candle-examples/examples/vgg/main.rs",
"repo_id": "candle",
"token_count": 960
} | 45 |
import copy
import pickle
from typing import List, Union
import numpy as np
import pyarrow as pa
import pytest
from datasets import Sequence, Value
from datasets.features.features import Array2D, Array2DExtensionType, ClassLabel, Features, Image, get_nested_type
from datasets.table import (
ConcatenationTable,
... | datasets/tests/test_table.py/0 | {
"file_path": "datasets/tests/test_table.py",
"repo_id": "datasets",
"token_count": 21484
} | 163 |
# coding=utf-8
# Copyright 2021, The Facebook AI Research Team 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.or... | transformers/src/transformers/models/mbart/modeling_mbart.py/0 | {
"file_path": "transformers/src/transformers/models/mbart/modeling_mbart.py",
"repo_id": "transformers",
"token_count": 44214
} | 697 |
import gc
import unittest
import torch
from transformers import CLIPTextConfig, CLIPTextModel, CLIPTextModelWithProjection, CLIPTokenizer
from diffusers import (
AutoencoderKL,
DDIMScheduler,
DDPMScheduler,
PriorTransformer,
StableUnCLIPPipeline,
UNet2DConditionModel,
)
from diffusers.pipeline... | diffusers/tests/pipelines/stable_unclip/test_stable_unclip.py/0 | {
"file_path": "diffusers/tests/pipelines/stable_unclip/test_stable_unclip.py",
"repo_id": "diffusers",
"token_count": 3990
} | 258 |
from abc import ABC, abstractmethod
from typing import Dict, List, Optional, Union
class DatasetInfo(ABC):
def __init__(self):
pass
@abstractmethod
def num_classes(self):
pass
@abstractmethod
def label_names(self):
pass
@abstractmethod
def label_descriptions(sel... | pytorch-image-models/timm/data/dataset_info.py/0 | {
"file_path": "pytorch-image-models/timm/data/dataset_info.py",
"repo_id": "pytorch-image-models",
"token_count": 941
} | 369 |
# openai-functions-tool-retrieval-agent
The novel idea introduced in this template is the idea of using retrieval to select the set of tools to use to answer an agent query. This is useful when you have many many tools to select from. You cannot put the description of all the tools in the prompt (because of context le... | langchain/templates/openai-functions-tool-retrieval-agent/README.md/0 | {
"file_path": "langchain/templates/openai-functions-tool-retrieval-agent/README.md",
"repo_id": "langchain",
"token_count": 856
} | 705 |
from abc import abstractmethod
from typing import Dict, Type
from overrides import overrides, EnforceOverrides
class ChromaError(Exception, EnforceOverrides):
def code(self) -> int:
"""Return an appropriate HTTP response code for this error"""
return 400 # Bad Request
def message(self) -> st... | chroma/chromadb/errors.py/0 | {
"file_path": "chroma/chromadb/errors.py",
"repo_id": "chroma",
"token_count": 724
} | 16 |
ann_accuracy:
collections:
-
milvus:
db_config.primary_path: /test/milvus/db_data_011/cluster/sift_128_euclidean
cache_config.cpu_cache_capacity: 16GB
engine_config.use_blas_threshold: 1100
engine_config.gpu_search_threshold: 1
gpu_resource_config.enable: false
... | milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_accuracy_ann_debug.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_accuracy_ann_debug.yaml",
"repo_id": "milvus",
"token_count": 979
} | 1,862 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-astra/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-astra/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,542 |
insert_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_010/shards_sift_1m_128_128_l2_insert
engine_config.use_blas_threshold: 1100
engine_config.gpu_search_threshold: 1
gpu_resource_config.enable: false
gpu_resource_config.search_resou... | milvus/tests/benchmark/milvus_benchmark/suites/shards_insert_performance_sift1m.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/shards_insert_performance_sift1m.yaml",
"repo_id": "milvus",
"token_count": 290
} | 2,098 |
from langchain_community.vectorstores.docarray.in_memory import DocArrayInMemorySearch
__all__ = ["DocArrayInMemorySearch"]
| langchain/libs/langchain/langchain/vectorstores/docarray/in_memory.py/0 | {
"file_path": "langchain/libs/langchain/langchain/vectorstores/docarray/in_memory.py",
"repo_id": "langchain",
"token_count": 35
} | 572 |
if [ -z $1 ]; then
echo "usage: $0 <path_to_core>"
exit -1
else
echo start formating
fi
CorePath=$1
formatThis() {
find "$1" | grep -E "(*\.cpp|*\.h|*\.cc)$" | grep -v "gen_tools/templates" | grep -v "\.pb\." | grep -v "tantivy-binding.h" | xargs clang-format-10 -i
}
formatThis "${CorePath}/src"
forma... | milvus/internal/core/run_clang_format.sh/0 | {
"file_path": "milvus/internal/core/run_clang_format.sh",
"repo_id": "milvus",
"token_count": 261
} | 1,777 |
#!/bin/bash
set -e
export IS_PERSISTENT=1
export CHROMA_SERVER_NOFILE=65535
args="$@"
if [[ $args =~ ^uvicorn.* ]]; then
echo "Starting server with args: $(eval echo "$args")"
echo -e "\033[31mWARNING: Please remove 'uvicorn chromadb.app:app' from your command line arguments. This is now handled by the entryp... | chroma/bin/docker_entrypoint.sh/0 | {
"file_path": "chroma/bin/docker_entrypoint.sh",
"repo_id": "chroma",
"token_count": 184
} | 11 |
// Code generated by mockery v2.32.4. DO NOT EDIT.
package mocks
import (
context "context"
commonpb "github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
clientv3 "go.etcd.io/etcd/client/v3"
indexpb "github.com/milvus-io/milvus/internal/proto/indexpb"
internalpb "github.com/milvus-io/milvus/internal/proto/i... | milvus/internal/mocks/mock_indexnode.go/0 | {
"file_path": "milvus/internal/mocks/mock_indexnode.go",
"repo_id": "milvus",
"token_count": 9806
} | 1,830 |
<jupyter_start><jupyter_text>Confident>[DeepEval](https://confident-ai.com) package for unit testing LLMs.> Using Confident, everyone can build robust language models through faster iterations> using both unit testing and integration testing. We provide support for each step in the iteration> from synthetic data creati... | langchain/docs/docs/integrations/callbacks/confident.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/callbacks/confident.ipynb",
"repo_id": "langchain",
"token_count": 1431
} | 89 |
import random
import time
from typing import List
from llama_index.schema import TextNode
from llama_index.vector_stores.simple import SimpleVectorStore
from llama_index.vector_stores.types import (
VectorStoreQuery,
VectorStoreQueryMode,
)
def generate_nodes(
num_vectors: int = 100, embedding_length: in... | llama_index/benchmarks/vector_stores/bench_simple_vector_store.py/0 | {
"file_path": "llama_index/benchmarks/vector_stores/bench_simple_vector_store.py",
"repo_id": "llama_index",
"token_count": 727
} | 1,156 |
import { z } from "zod";
import { GmailBaseTool, GmailBaseToolParams } from "./base.js";
import { GET_THREAD_DESCRIPTION } from "./descriptions.js";
export class GmailGetThread extends GmailBaseTool {
name = "gmail_get_thread";
schema = z.object({
threadId: z.string(),
});
description = GET_THREAD_DESCRI... | langchainjs/libs/langchain-community/src/tools/gmail/get_thread.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/tools/gmail/get_thread.ts",
"repo_id": "langchainjs",
"token_count": 1030
} | 985 |
export const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers":
"authorization, x-client-info, apikey, content-type",
};
| langchain-template-supabase/supabase/functions/_shared/cors.ts/0 | {
"file_path": "langchain-template-supabase/supabase/functions/_shared/cors.ts",
"repo_id": "langchain-template-supabase",
"token_count": 59
} | 72 |
/* eslint-disable no-process-env */
import * as uuid from "uuid";
import flatten from "flat";
import {
RecordMetadata,
PineconeRecord,
Index as PineconeIndex,
} from "@pinecone-database/pinecone";
import {
MaxMarginalRelevanceSearchOptions,
VectorStore,
} from "@langchain/core/vectorstores";
import type { E... | langchainjs/libs/langchain-community/src/vectorstores/pinecone.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/vectorstores/pinecone.ts",
"repo_id": "langchainjs",
"token_count": 4188
} | 1,049 |
# AINetwork
>[AI Network](https://www.ainetwork.ai/build-on-ain) is a layer 1 blockchain designed to accommodate
> large-scale AI models, utilizing a decentralized GPU network powered by the
> [$AIN token](https://www.ainetwork.ai/token), enriching AI-driven `NFTs` (`AINFTs`).
## Installation and Setup
You need t... | langchain/docs/docs/integrations/providers/ainetwork.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/ainetwork.mdx",
"repo_id": "langchain",
"token_count": 219
} | 138 |
import { PromptTemplate } from "@langchain/core/prompts";
import { StringOutputParser } from "@langchain/core/output_parsers";
import { ChatAnthropic } from "@langchain/anthropic";
import { SerpAPI } from "@langchain/community/tools/serpapi";
const search = new SerpAPI();
const prompt =
PromptTemplate.fromTemplate(... | langchainjs/examples/src/guides/expression_language/cookbook_tools.ts/0 | {
"file_path": "langchainjs/examples/src/guides/expression_language/cookbook_tools.ts",
"repo_id": "langchainjs",
"token_count": 196
} | 777 |
python_sources()
| llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-s3/llama_index/storage/kvstore/s3/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,411 |
from langchain_community.tools.human.tool import HumanInputRun
__all__ = ["HumanInputRun"]
| langchain/libs/langchain/langchain/tools/human/tool.py/0 | {
"file_path": "langchain/libs/langchain/langchain/tools/human/tool.py",
"repo_id": "langchain",
"token_count": 27
} | 579 |
use std::ffi::{c_char, CStr};
use crate::util::index_exist;
#[no_mangle]
pub extern "C" fn tantivy_index_exist(path: *const c_char) -> bool {
let path_str = unsafe { CStr::from_ptr(path) };
index_exist(path_str.to_str().unwrap())
}
| milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/util_c.rs/0 | {
"file_path": "milvus/internal/core/thirdparty/tantivy/tantivy-binding/src/util_c.rs",
"repo_id": "milvus",
"token_count": 104
} | 1,814 |
use crate::tokenizer::{Decoder, PreTokenizedString, PreTokenizer, Result, SplitDelimiterBehavior};
use serde::{Deserialize, Deserializer, Serialize};
/// Enum representing options for the metaspace prepending scheme.
#[derive(Debug, Clone, PartialEq, Serialize, Eq, Deserialize, Copy)]
#[serde(rename_all = "snake_case"... | tokenizers/tokenizers/src/pre_tokenizers/metaspace.rs/0 | {
"file_path": "tokenizers/tokenizers/src/pre_tokenizers/metaspace.rs",
"repo_id": "tokenizers",
"token_count": 6508
} | 483 |
import { collections } from "$lib/server/database";
import { ObjectId } from "mongodb";
import { describe, expect, it } from "vitest";
import { convertLegacyConversation } from "./convertLegacyConversation";
import { insertLegacyConversation } from "./treeHelpers.spec";
describe("convertLegacyConversation", () => {
... | chat-ui/src/lib/utils/tree/convertLegacyConversation.spec.ts/0 | {
"file_path": "chat-ui/src/lib/utils/tree/convertLegacyConversation.spec.ts",
"repo_id": "chat-ui",
"token_count": 425
} | 110 |
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
from langserve import add_routes
app = FastAPI()
@app.get("/")
async def redirect_root_to_docs():
return RedirectResponse("/docs")
# Edit this to add the chain you want to add
add_routes(app, NotImplemented)
if __name__ == "__main__":
... | langchain/libs/cli/langchain_cli/project_template/app/server.py/0 | {
"file_path": "langchain/libs/cli/langchain_cli/project_template/app/server.py",
"repo_id": "langchain",
"token_count": 142
} | 220 |
# `tokenizers-android-arm64`
This is the **aarch64-linux-android** binary for `tokenizers`
| tokenizers/bindings/node/npm/android-arm64/README.md/0 | {
"file_path": "tokenizers/bindings/node/npm/android-arm64/README.md",
"repo_id": "tokenizers",
"token_count": 31
} | 413 |
# Copyright 2023 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/tests/models/clap/test_processor_clap.py/0 | {
"file_path": "transformers/tests/models/clap/test_processor_clap.py",
"repo_id": "transformers",
"token_count": 1895
} | 737 |
<jupyter_start><jupyter_text>Llama Pack - Neo4j Query EngineThis Llama Pack creates a Neo4j knowledge graph query engine, and executes its `query` function. This pack offers the option of creating multiple types of query engines for Neo4j knowledge graphs, namely:* Knowledge graph vector-based entity retrieval (default... | llama_index/llama-index-packs/llama-index-packs-neo4j-query-engine/examples/llama_packs_neo4j.ipynb/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-neo4j-query-engine/examples/llama_packs_neo4j.ipynb",
"repo_id": "llama_index",
"token_count": 1337
} | 1,663 |
import threading
import pytest
import time
from time import sleep
from pathlib import Path
import json
from pymilvus import connections
from common.cus_resource_opts import CustomResourceOperations as CusResource
from common.milvus_sys import MilvusSys
from utils.util_log import test_log as log
from datetime import dat... | milvus/tests/python_client/chaos/test_chaos_apply.py/0 | {
"file_path": "milvus/tests/python_client/chaos/test_chaos_apply.py",
"repo_id": "milvus",
"token_count": 3541
} | 1,901 |
from multiprocessing.connection import Connection
import sys
import os
import shutil
import subprocess
import tempfile
from types import ModuleType
from typing import Generator, List, Tuple, Dict, Any, Callable, Type
from hypothesis import given, settings
import hypothesis.strategies as st
import pytest
import json
fro... | chroma/chromadb/test/property/test_cross_version_persist.py/0 | {
"file_path": "chroma/chromadb/test/property/test_cross_version_persist.py",
"repo_id": "chroma",
"token_count": 4352
} | 25 |
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/it/model_sharing.md/0 | {
"file_path": "transformers/docs/source/it/model_sharing.md",
"repo_id": "transformers",
"token_count": 4021
} | 483 |
.. mdinclude:: ../../CONTRIBUTING.md
| llama_index/docs/contributing/contributing.rst/0 | {
"file_path": "llama_index/docs/contributing/contributing.rst",
"repo_id": "llama_index",
"token_count": 15
} | 1,121 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "llms/cohere",
newEntrypointName: "",
newPackageName: "@langchain/cohere",
});
export * from "@langchain/community/llms/cohere";
| langchainjs/langchain/src/llms/cohere.ts/0 | {
"file_path": "langchainjs/langchain/src/llms/cohere.ts",
"repo_id": "langchainjs",
"token_count": 94
} | 914 |
# 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/test_pipelines.py/0 | {
"file_path": "diffusers/tests/pipelines/test_pipelines.py",
"repo_id": "diffusers",
"token_count": 38900
} | 289 |
from llama_index.vector_stores.cassandra.base import CassandraVectorStore
__all__ = ["CassandraVectorStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-cassandra/llama_index/vector_stores/cassandra/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-cassandra/llama_index/vector_stores/cassandra/__init__.py",
"repo_id": "llama_index",
"token_count": 32
} | 1,516 |
from langchain_community.agent_toolkits.openapi.prompt import (
DESCRIPTION,
OPENAPI_PREFIX,
OPENAPI_SUFFIX,
)
__all__ = ["OPENAPI_PREFIX", "OPENAPI_SUFFIX", "DESCRIPTION"]
| langchain/libs/langchain/langchain/agents/agent_toolkits/openapi/prompt.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/agent_toolkits/openapi/prompt.py",
"repo_id": "langchain",
"token_count": 79
} | 467 |
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/en/model_doc/mms.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/mms.md",
"repo_id": "transformers",
"token_count": 4924
} | 460 |
"""Test conversation chain and memory."""
import pytest
from langchain_core.memory import BaseMemory
from langchain_core.prompts.prompt import PromptTemplate
from langchain.chains.conversation.base import ConversationChain
from langchain.memory.buffer import ConversationBufferMemory
from langchain.memory.buffer_window... | langchain/libs/langchain/tests/unit_tests/chains/test_conversation.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/chains/test_conversation.py",
"repo_id": "langchain",
"token_count": 1822
} | 620 |
# Snowflake Query Engine Pack
This LlamaPack uses `snowflake-sqlalchemy` to connect to Snowflake, then calls `NLSQLTableQueryEngine` to query data.
## Usage
You can download the pack to a the `./snowflake_pack` directory:
```python
from llama_index.core.llama_pack import download_llama_pack
# download and install ... | llama_index/llama-index-packs/llama-index-packs-snowflake-query-engine/README.md/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-snowflake-query-engine/README.md",
"repo_id": "llama_index",
"token_count": 424
} | 1,684 |
from collections.abc import Iterator
from typing import Iterable
class tracked_str(str):
origins = {}
def set_origin(self, origin: str):
if super().__repr__() not in self.origins:
self.origins[super().__repr__()] = origin
def get_origin(self):
return self.origins.get(super().... | datasets/src/datasets/utils/track.py/0 | {
"file_path": "datasets/src/datasets/utils/track.py",
"repo_id": "datasets",
"token_count": 648
} | 152 |
# Inspired by: https://github.com/Mikubill/sd-webui-controlnet/discussions/1236 and https://github.com/Mikubill/sd-webui-controlnet/discussions/1280
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import numpy as np
import PIL.Image
import torch
from diffusers import StableDiffusionControlNetPipe... | diffusers/examples/community/stable_diffusion_controlnet_reference.py/0 | {
"file_path": "diffusers/examples/community/stable_diffusion_controlnet_reference.py",
"repo_id": "diffusers",
"token_count": 21091
} | 208 |
# coding=utf-8
# Copyright 2022 Google AI, Ross Wightman, 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/license... | transformers/src/transformers/models/vit_hybrid/modeling_vit_hybrid.py/0 | {
"file_path": "transformers/src/transformers/models/vit_hybrid/modeling_vit_hybrid.py",
"repo_id": "transformers",
"token_count": 13320
} | 710 |
python_sources()
| llama_index/llama-index-cli/llama_index/cli/upgrade/BUILD/0 | {
"file_path": "llama_index/llama-index-cli/llama_index/cli/upgrade/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,158 |
# 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... | transformers/tests/models/vision_text_dual_encoder/test_processor_vision_text_dual_encoder.py/0 | {
"file_path": "transformers/tests/models/vision_text_dual_encoder/test_processor_vision_text_dual_encoder.py",
"repo_id": "transformers",
"token_count": 2796
} | 755 |
"""NASA Toolkit"""
| langchain/libs/langchain/langchain/agents/agent_toolkits/nasa/__init__.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/agent_toolkits/nasa/__init__.py",
"repo_id": "langchain",
"token_count": 6
} | 435 |
import { OpenAI } from "@langchain/openai";
import { ConversationChain } from "langchain/chains";
const model = new OpenAI({});
const chain = new ConversationChain({ llm: model });
const res1 = await chain.call({ input: "Hi! I'm Jim." });
console.log({ res1 });
const res2 = await chain.call({ input: "What's my name?" ... | langchainjs/examples/src/chains/conversation_chain.ts/0 | {
"file_path": "langchainjs/examples/src/chains/conversation_chain.ts",
"repo_id": "langchainjs",
"token_count": 105
} | 787 |
# 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/utils/check_table.py/0 | {
"file_path": "diffusers/utils/check_table.py",
"repo_id": "diffusers",
"token_count": 3010
} | 299 |
// 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/connection_manager.go/0 | {
"file_path": "milvus/internal/distributed/connection_manager.go",
"repo_id": "milvus",
"token_count": 4720
} | 1,983 |
poetry_requirements(
name="poetry",
module_mapping={"guardrails-ai": ["guardrails"]},
)
| llama_index/llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/output_parsers/llama-index-output-parsers-guardrails/BUILD",
"repo_id": "llama_index",
"token_count": 40
} | 1,257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.