text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
import inspect import re from typing import Dict, List, Tuple from huggingface_hub.utils import insecure_hashlib from .arrow import arrow from .audiofolder import audiofolder from .cache import cache # noqa F401 from .csv import csv from .imagefolder import imagefolder from .json import json from .pandas import pand...
datasets/src/datasets/packaged_modules/__init__.py/0
{ "file_path": "datasets/src/datasets/packaged_modules/__init__.py", "repo_id": "datasets", "token_count": 1108 }
145
<!--Copyright 2021 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/en/model_doc/vision-text-dual-encoder.md/0
{ "file_path": "transformers/docs/source/en/model_doc/vision-text-dual-encoder.md", "repo_id": "transformers", "token_count": 652 }
473
<jupyter_start><jupyter_text>GMailThis loader goes over how to load data from GMail. There are many ways you could want to load data from GMail. This loader is currently fairly opinionated in how to do so. The way it does it is it first looks for all messages that you have sent. It then looks for messages where you are...
langchain/docs/docs/integrations/chat_loaders/gmail.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/chat_loaders/gmail.ipynb", "repo_id": "langchain", "token_count": 831 }
91
"""Default prompt for ReAct agent.""" # ReAct multimodal chat prompt # TODO: have formatting instructions be a part of react output parser REACT_MM_CHAT_SYSTEM_HEADER = """\ You are designed to help with a variety of tasks, from answering questions \ to providing summaries to other types of analyses. You can ta...
llama_index/llama-index-legacy/llama_index/legacy/agent/react_multimodal/prompts.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/agent/react_multimodal/prompts.py", "repo_id": "llama_index", "token_count": 741 }
1,546
<jupyter_start><jupyter_text>Tavily Search [Tavily's Search API](https://tavily.com) is a search engine built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed. SetupThe integration lives in the `langchain-community` package. We also need to install the `tavily-python` pack...
langchain/docs/docs/integrations/tools/tavily_search.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/tools/tavily_search.ipynb", "repo_id": "langchain", "token_count": 1033 }
187
<jupyter_start><jupyter_text>Couchbase[Couchbase](http://couchbase.com/) is an award-winning distributed NoSQL cloud database that delivers unmatched versatility, performance, scalability, and financial value for all of your cloud, mobile, AI, and edge computing applications. Installation<jupyter_code>%pip install --u...
langchain/docs/docs/integrations/document_loaders/couchbase.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/document_loaders/couchbase.ipynb", "repo_id": "langchain", "token_count": 1335 }
99
use async_trait::async_trait; use bytes::Bytes; use futures::{StreamExt, TryStreamExt}; use prost::Message; use std::{ collections::{HashMap, HashSet}, fmt::Debug, sync::{Arc, RwLock}, }; use crate::{ assignment::{ self, assignment_policy::{self, AssignmentPolicy}, }, chroma_pro...
chroma/rust/worker/src/ingest/ingest.rs/0
{ "file_path": "chroma/rust/worker/src/ingest/ingest.rs", "repo_id": "chroma", "token_count": 7173 }
57
#include "q_gemm.cuh" #include "util.cuh" #include "matrix_view.cuh" #include "../config.h" #include "quant/qdq_2.cuh" #include "quant/qdq_3.cuh" #include "quant/qdq_4.cuh" #include "quant/qdq_5.cuh" #include "quant/qdq_6.cuh" #include "quant/qdq_8.cuh" #define GPTQ_BLOCK_KN_SIZE 128 #define GPTQ_BLOCK_M_SIZE_MAX 8 #...
text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm.cu/0
{ "file_path": "text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/cuda/q_gemm.cu", "repo_id": "text-generation-inference", "token_count": 3563 }
398
from langchain_community.graphs.graph_document import GraphDocument, Node, Relationship __all__ = ["Node", "Relationship", "GraphDocument"]
langchain/libs/langchain/langchain/graphs/graph_document.py/0
{ "file_path": "langchain/libs/langchain/langchain/graphs/graph_document.py", "repo_id": "langchain", "token_count": 37 }
554
import base64 import json import os from pathlib import Path from typing import Any from unittest import mock import pytest from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI README_PATH = Path(__file__).parents[4] / "README.md" class FakeUploadResponse: status_code = 200 text = "fake...
langchain/libs/community/tests/integration_tests/tools/nuclia/test_nuclia.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/tools/nuclia/test_nuclia.py", "repo_id": "langchain", "token_count": 1644 }
380
# 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/regnet/convert_regnet_to_pytorch.py/0
{ "file_path": "transformers/src/transformers/models/regnet/convert_regnet_to_pytorch.py", "repo_id": "transformers", "token_count": 8486 }
661
python_sources()
llama_index/llama-index-packs/llama-index-packs-amazon-product-extraction/llama_index/packs/amazon_product_extraction/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-amazon-product-extraction/llama_index/packs/amazon_product_extraction/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,553
// 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_disk_file_manager_test.cpp/0
{ "file_path": "milvus/internal/core/unittest/test_disk_file_manager_test.cpp", "repo_id": "milvus", "token_count": 6440 }
1,766
# 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/tests/pipelines/test_pipelines_zero_shot.py/0
{ "file_path": "transformers/tests/pipelines/test_pipelines_zero_shot.py", "repo_id": "transformers", "token_count": 6335 }
751
apiVersion: milvus.io/v1beta1 kind: Milvus metadata: name: my-release namespace: chaos-testing labels: app: milvus spec: config: log: level: debug common: simdType: avx components: {} dependencies: etcd: inCluster: deletionPolicy: Delete pvcDeletion: true ...
milvus/tests/python_client/customize/template/default.yaml/0
{ "file_path": "milvus/tests/python_client/customize/template/default.yaml", "repo_id": "milvus", "token_count": 296 }
1,897
## For JS backend: # LANGCHAIN_TRACING_V2=true # LANGCHAIN_ENDPOINT="https://api.smith.langchain.com" # LANGCHAIN_API_KEY="YOUR_LANGSMITH_KEY" # LANGCHAIN_PROJECT="YOUR_PROJECT_NAME" # NEXT_PUBLIC_API_BASE_URL="http://localhost:3000/api" # OPENAI_API_KEY="YOUR_OPENAI_API_KEY" # WEAVIATE_HOST="YOUR_WEAVIATE_HOST" # WE...
chat-langchain/chat-langchain/.env.example/0
{ "file_path": "chat-langchain/chat-langchain/.env.example", "repo_id": "chat-langchain", "token_count": 195 }
7
// 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/index/Index.h/0
{ "file_path": "milvus/internal/core/src/index/Index.h", "repo_id": "milvus", "token_count": 1144 }
1,645
import random import uuid from random import randint from typing import cast, List, Any, Dict import pytest import hypothesis.strategies as st from hypothesis import given, settings from chromadb.api import ServerAPI from chromadb.api.types import Embeddings, Metadatas import chromadb.test.property.strategies as strate...
chroma/chromadb/test/property/test_add.py/0
{ "file_path": "chroma/chromadb/test/property/test_add.py", "repo_id": "chroma", "token_count": 2456 }
22
python_sources()
llama_index/llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-fusion-retriever/llama_index/packs/fusion_retriever/hybrid_fusion/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,566
""" LeViT Paper: `LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference` - https://arxiv.org/abs/2104.01136 @article{graham2021levit, title={LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference}, author={Benjamin Graham and Alaaeldin El-Nouby and Hugo Touvron and Pierre Stoc...
pytorch-image-models/timm/models/levit.py/0
{ "file_path": "pytorch-image-models/timm/models/levit.py", "repo_id": "pytorch-image-models", "token_count": 15973 }
379
/* eslint-disable import/first */ /* eslint-disable import/no-duplicates */ import { BufferMemory } from "langchain/memory"; import { HumanMessage, AIMessage } from "@langchain/core/messages"; const memory = new BufferMemory(); await memory.chatHistory.addMessage(new HumanMessage("Hi!")); await memory.chatHistory.add...
langchainjs/examples/src/memory/getting_started.ts/0
{ "file_path": "langchainjs/examples/src/memory/getting_started.ts", "repo_id": "langchainjs", "token_count": 799 }
839
python_sources()
llama_index/llama-index-integrations/readers/llama-index-readers-kibela/llama_index/readers/kibela/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-kibela/llama_index/readers/kibela/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,389
python_sources()
llama_index/llama-index-core/llama_index/core/query_engine/BUILD/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/query_engine/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,208
<jupyter_start><jupyter_text>BiliBili>[Bilibili](https://www.bilibili.tv/) is one of the most beloved long-form video sites in China.This loader utilizes the [bilibili-api](https://github.com/MoyuScript/bilibili-api) to fetch the text transcript from `Bilibili`.With this BiliBiliLoader, users can easily obtain the tran...
langchain/docs/docs/integrations/document_loaders/bilibili.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/document_loaders/bilibili.ipynb", "repo_id": "langchain", "token_count": 202 }
104
import { TavilySearchResults } from "@langchain/community/tools/tavily_search"; import { ChatOpenAI } from "@langchain/openai"; import type { ChatPromptTemplate } from "@langchain/core/prompts"; import { AIMessage, HumanMessage } from "@langchain/core/messages"; import { pull } from "langchain/hub"; import { AgentExec...
langchainjs/examples/src/agents/openai_tools.ts/0
{ "file_path": "langchainjs/examples/src/agents/openai_tools.ts", "repo_id": "langchainjs", "token_count": 421 }
755
{ "fp16": { "enabled": true, "loss_scale": 0, "loss_scale_window": 1000, "initial_scale_power": 16, "hysteresis": 2, "min_loss_scale": 1 }, "optimizer": { "type": "AdamW", "params": { "lr": "auto", "weight_decay": "auto"...
accelerate/examples/deepspeed_config_templates/zero_stage1_config.json/0
{ "file_path": "accelerate/examples/deepspeed_config_templates/zero_stage1_config.json", "repo_id": "accelerate", "token_count": 614 }
6
# Copyright 2022 The Google Research 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 agree...
transformers/examples/research_projects/self-training-text-classification/run.sh/0
{ "file_path": "transformers/examples/research_projects/self-training-text-classification/run.sh", "repo_id": "transformers", "token_count": 961 }
573
from langchain_community.vectorstores.clickhouse import ( Clickhouse, ClickhouseSettings, ) __all__ = ["ClickhouseSettings", "Clickhouse"]
langchain/libs/langchain/langchain/vectorstores/clickhouse.py/0
{ "file_path": "langchain/libs/langchain/langchain/vectorstores/clickhouse.py", "repo_id": "langchain", "token_count": 46 }
571
--- sidebar_position: 4 --- # Tools Tools are interfaces that an agent can use to interact with the world. They combine a few things: 1. The name of the tool 2. A description of what the tool is 3. Schema of what the inputs to the tool are 4. The function to call 5. Whether the result of a tool should be returned di...
langchainjs/docs/core_docs/docs/modules/agents/tools/index.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/modules/agents/tools/index.mdx", "repo_id": "langchainjs", "token_count": 527 }
750
// 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/exec/expression/UnaryExpr.h/0
{ "file_path": "milvus/internal/core/src/exec/expression/UnaryExpr.h", "repo_id": "milvus", "token_count": 5851 }
1,736
from typing import Dict, Tuple import pytest as pytest from langchain.chains.query_constructor.ir import ( Comparator, Comparison, Operation, Operator, StructuredQuery, ) from langchain.retrievers.self_query.pgvector import PGVectorTranslator DEFAULT_TRANSLATOR = PGVectorTranslator() def test_v...
langchain/libs/langchain/tests/unit_tests/retrievers/self_query/test_pgvector.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/retrievers/self_query/test_pgvector.py", "repo_id": "langchain", "token_count": 1115 }
667
from langchain_core.documents.base import Document from langchain_core.documents.transformers import BaseDocumentTransformer __all__ = ["Document", "BaseDocumentTransformer"]
langchain/libs/core/langchain_core/documents/__init__.py/0
{ "file_path": "langchain/libs/core/langchain_core/documents/__init__.py", "repo_id": "langchain", "token_count": 45 }
414
# flake8: noqa from langchain_core.prompts.prompt import PromptTemplate EXAMPLES = [ """Question: What is the elevation range for the area that the eastern sector of the Colorado orogeny extends into? Thought: I need to search Colorado orogeny, find the area that the eastern sector of the Colorado orogeny extends ...
langchain/libs/langchain/langchain/agents/react/wiki_prompt.py/0
{ "file_path": "langchain/libs/langchain/langchain/agents/react/wiki_prompt.py", "repo_id": "langchain", "token_count": 1585 }
448
// 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/convension.go/0
{ "file_path": "milvus/pkg/util/typeutil/convension.go", "repo_id": "milvus", "token_count": 1200 }
1,980
package common import ( "testing" "github.com/stretchr/testify/assert" ) func TestCloneStringList(t *testing.T) { type args struct { l StringList } tests := []struct { name string args args }{ { args: args{ l: nil, }, }, { args: args{ l: []string{"s1", "s2"}, }, }, { args...
milvus/pkg/common/string_list_test.go/0
{ "file_path": "milvus/pkg/common/string_list_test.go", "repo_id": "milvus", "token_count": 271 }
1,889
# Context >[Context](https://context.ai/) provides user analytics for LLM-powered products and features. ## Installation and Setup We need to install the `context-python` Python package: ```bash pip install context-python ``` ## Callbacks See a [usage example](/docs/integrations/callbacks/context). ```python f...
langchain/docs/docs/integrations/providers/context.mdx/0
{ "file_path": "langchain/docs/docs/integrations/providers/context.mdx", "repo_id": "langchain", "token_count": 106 }
137
from llama_index.agent.openai_legacy import ( BaseOpenAIAgent, ContextRetrieverOpenAIAgent, FnRetrieverOpenAIAgent, OpenAIAgent, ) from llama_index.core.agent.types import BaseAgent def test_classes(): names_of_base_classes = [b.__name__ for b in OpenAIAgent.__mro__] assert BaseAgent.__name__ ...
llama_index/llama-index-integrations/agent/llama-index-agent-openai-legacy/tests/test_agent_openai-legacy.py/0
{ "file_path": "llama_index/llama-index-integrations/agent/llama-index-agent-openai-legacy/tests/test_agent_openai-legacy.py", "repo_id": "llama_index", "token_count": 249 }
1,288
import { ChatBaiduWenxin } from "@langchain/community/chat_models/baiduwenxin"; import { HumanMessage } from "@langchain/core/messages"; // Default model is ERNIE-Bot-turbo const ernieTurbo = new ChatBaiduWenxin({ baiduApiKey: "YOUR-API-KEY", // In Node.js defaults to process.env.BAIDU_API_KEY baiduSecretKey: "YOU...
langchainjs/examples/src/models/chat/integration_baiduwenxin.ts/0
{ "file_path": "langchainjs/examples/src/models/chat/integration_baiduwenxin.ts", "repo_id": "langchainjs", "token_count": 422 }
865
import { Document } from "@langchain/core/documents"; import { SerpAPILoader } from "../web/serpapi.js"; test("Test buildUrl method", () => { const loader = new SerpAPILoader({ q: "testQuery", apiKey: "testApiKey" }); expect(loader.buildUrl()).toBe( "https://serpapi.com/search?api_key=testApiKey&q=testQuery" ...
langchainjs/langchain/src/document_loaders/tests/serpapi.test.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/tests/serpapi.test.ts", "repo_id": "langchainjs", "token_count": 317 }
896
<jupyter_start><jupyter_text>Parallel tool useIn the [Chains with multiple tools](/docs/use_cases/tool_use/multiple_tools) guide we saw how to build function-calling chains that select between multiple tools. Some models, like the OpenAI models released in Fall 2023, also support parallel function calling, which allows...
langchain/docs/docs/use_cases/tool_use/parallel.ipynb/0
{ "file_path": "langchain/docs/docs/use_cases/tool_use/parallel.ipynb", "repo_id": "langchain", "token_count": 875 }
204
[tool.poetry] name = "__package_name__" version = "0.0.1" description = "" authors = [] readme = "README.md" [tool.poetry.dependencies] python = ">=3.8.1,<4.0" langchain-core = ">=0.1.5" langchain-openai = ">=0.0.1" [tool.poetry.group.dev.dependencies] langchain-cli = ">=0.0.4" fastapi = "^0.104.0" sse-starlette = "...
langchain/libs/cli/langchain_cli/package_template/pyproject.toml/0
{ "file_path": "langchain/libs/cli/langchain_cli/package_template/pyproject.toml", "repo_id": "langchain", "token_count": 223 }
205
use axum::http::HeaderValue; use clap::Parser; use hf_hub::api::tokio::{Api, ApiBuilder, ApiRepo}; use hf_hub::{Repo, RepoType}; use opentelemetry::sdk::propagation::TraceContextPropagator; use opentelemetry::sdk::trace; use opentelemetry::sdk::trace::Sampler; use opentelemetry::sdk::Resource; use opentelemetry::{globa...
text-generation-inference/router/src/main.rs/0
{ "file_path": "text-generation-inference/router/src/main.rs", "repo_id": "text-generation-inference", "token_count": 8194 }
434
"""Pytorch Densenet implementation w/ tweaks This file is a copy of https://github.com/pytorch/vision 'densenet.py' (BSD-3-Clause) with fixed kwargs passthrough and addition of dynamic global avg/max pool. """ import re from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional a...
pytorch-image-models/timm/models/densenet.py/0
{ "file_path": "pytorch-image-models/timm/models/densenet.py", "repo_id": "pytorch-image-models", "token_count": 7537 }
396
<jupyter_start><jupyter_text>Downloading a LlamaDataset from LlamaHubYou can browse our available benchmark datasets via [llamahub.ai](https://llamahub.ai/). This notebook guide depicts how you can download the dataset and its source text documents. In particular, the `download_llama_dataset` will download the evaluati...
llama_index/docs/examples/llama_dataset/downloading_llama_datasets.ipynb/0
{ "file_path": "llama_index/docs/examples/llama_dataset/downloading_llama_datasets.ipynb", "repo_id": "llama_index", "token_count": 2664 }
1,085
// 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/stats_test.go/0
{ "file_path": "milvus/internal/storage/stats_test.go", "repo_id": "milvus", "token_count": 1931 }
1,892
{ "index_store/data": { "9e1a0871-73d0-4a93-8068-f29dc3c0ded2": { "__type__": "list", "__data__": "{\"index_id\": \"9e1a0871-73d0-4a93-8068-f29dc3c0ded2\", \"summary\": null, \"nodes\": [\"093ded74-80cd-4854-bf93-a2a260b9dbef\", \"1cf62305-7a24-4141-b388-c4d4fd2c0db7\", \"8936f2d4-9f78-4258-9b59-f1ad7...
llama_index/llama-index-legacy/storage/index_store.json/0
{ "file_path": "llama_index/llama-index-legacy/storage/index_store.json", "repo_id": "llama_index", "token_count": 205 }
1,727
"""GitLab Toolkit."""
langchain/libs/community/langchain_community/agent_toolkits/gitlab/__init__.py/0
{ "file_path": "langchain/libs/community/langchain_community/agent_toolkits/gitlab/__init__.py", "repo_id": "langchain", "token_count": 9 }
205
// 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/coordrecovery/coord_recovery_test.go/0
{ "file_path": "milvus/tests/integration/coordrecovery/coord_recovery_test.go", "repo_id": "milvus", "token_count": 3729 }
2,013
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/pkg/mq/msgstream/mqwrapper/nmq/nmq_consumer.go/0
{ "file_path": "milvus/pkg/mq/msgstream/mqwrapper/nmq/nmq_consumer.go", "repo_id": "milvus", "token_count": 1998 }
2,040
import random from pymilvus import Milvus, DataType dim = 128 name = "sift_1m_128_l2" def generate_values(data_type, vectors, ids): values = None if data_type in [DataType.INT32, DataType.INT64]: values = ids elif data_type in [DataType.FLOAT, DataType.DOUBLE]: values = [(i + 0.0) for i in...
milvus/tests/benchmark/milvus_benchmark/test.py/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/test.py", "repo_id": "milvus", "token_count": 442 }
1,956
kind: Schedule apiVersion: chaos-mesh.org/v1alpha1 metadata: name: test-pulsar-pod-kill namespace: chaos-testing spec: schedule: '*/5 * * * * *' startingDeadlineSeconds: 60 concurrencyPolicy: Forbid historyLimit: 1 type: PodChaos podChaos: selector: namespaces: - chaos-testing la...
milvus/tests/python_client/chaos/chaos_objects/pod_kill/chaos_pulsar_pod_kill.yaml/0
{ "file_path": "milvus/tests/python_client/chaos/chaos_objects/pod_kill/chaos_pulsar_pod_kill.yaml", "repo_id": "milvus", "token_count": 193 }
2,171
- name: rootcoord docker_container: name: rootcoord image: "{{image}}" command: ["milvus", "run", "rootcoord"] env: ETCD_ENDPOINTS: "{{ETCD_ENDPOINTS}}" MINIO_ADDRESS: "{{MINIO_ADDRESS}}" PULSAR_ADDRESS: "{{PULSAR_ADDRESS}}" QUERY_COORD_ADDRESS: "{{QUERY_COORD_ADDRESS}}" ...
milvus/deployments/docker/cluster-distributed-deployment/roles/deploy-rootcoord/tasks/main.yml/0
{ "file_path": "milvus/deployments/docker/cluster-distributed-deployment/roles/deploy-rootcoord/tasks/main.yml", "repo_id": "milvus", "token_count": 205 }
1,709
"""Implements Program-Aided Language Models. This module implements the Program-Aided Language Models (PAL) for generating code solutions. PAL is a technique described in the paper "Program-Aided Language Models" (https://arxiv.org/pdf/2211.10435.pdf). """ from __future__ import annotations import ast from typing im...
langchain/libs/experimental/langchain_experimental/pal_chain/base.py/0
{ "file_path": "langchain/libs/experimental/langchain_experimental/pal_chain/base.py", "repo_id": "langchain", "token_count": 6043 }
421
# Metric Card for MSE ## Metric Description Mean Squared Error(MSE) represents the average of the squares of errors -- i.e. the average squared difference between the estimated values and the actual values. ![image](https://user-images.githubusercontent.com/14205986/165999302-eba3702d-81e3-4363-9c0e-d3bfceb7ec5a.pn...
datasets/metrics/mse/README.md/0
{ "file_path": "datasets/metrics/mse/README.md", "repo_id": "datasets", "token_count": 1554 }
120
"""Mock utils for query transform.""" from llama_index.legacy.indices.query.query_transform.prompts import ( DecomposeQueryTransformPrompt, ) from llama_index.legacy.prompts.prompt_type import PromptType MOCK_DECOMPOSE_TMPL = "{context_str}\n{query_str}" MOCK_DECOMPOSE_PROMPT = DecomposeQueryTransformPrompt( ...
llama_index/llama-index-legacy/tests/indices/query/query_transform/mock_utils.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/indices/query/query_transform/mock_utils.py", "repo_id": "llama_index", "token_count": 141 }
1,531
from llama_index.core.llama_pack import BaseLlamaPack from llama_index.packs.panel_chatbot import PanelChatPack def test_class(): names_of_base_classes = [b.__name__ for b in PanelChatPack.__mro__] assert BaseLlamaPack.__name__ in names_of_base_classes
llama_index/llama-index-packs/llama-index-packs-panel-chatbot/tests/test_packs_panel_chatbot.py/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-panel-chatbot/tests/test_packs_panel_chatbot.py", "repo_id": "llama_index", "token_count": 95 }
1,672
{ "modelname": "TemplateTF", "uppercase_modelname": "TEMPLATE_TF", "lowercase_modelname": "template_tf", "camelcase_modelname": "TemplateTf", "authors": "The HuggingFace Team", "checkpoint_identifier": "brand-new-bert-base-cased", "tokenizer_type": "Based on BERT", "generate_tensorflow_pytorch_and_flax"...
transformers/templates/adding_a_new_model/tests/tf-encoder-bert-tokenizer.json/0
{ "file_path": "transformers/templates/adding_a_new_model/tests/tf-encoder-bert-tokenizer.json", "repo_id": "transformers", "token_count": 148 }
791
import os import re from typing import Iterator, List import requests from langchain_core.documents import Document from langchain_community.document_loaders.base import BaseLoader class EtherscanLoader(BaseLoader): """Load transactions from `Ethereum` mainnet. The Loader use Etherscan API to interact with...
langchain/libs/community/langchain_community/document_loaders/etherscan.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/etherscan.py", "repo_id": "langchain", "token_count": 3560 }
235
python_sources()
llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,308
<jupyter_start><jupyter_text>PromptLayer>[PromptLayer](https://docs.promptlayer.com/introduction) is a platform for prompt engineering. It also helps with the LLM observability to visualize requests, version prompts, and track usage.>>While `PromptLayer` does have LLMs that integrate directly with LangChain (e.g. [`Pro...
langchain/docs/docs/integrations/callbacks/promptlayer.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/callbacks/promptlayer.ipynb", "repo_id": "langchain", "token_count": 1323 }
98
export const PREFIX = `You are a helpful AI assistant.`; export const SUFFIX = ``;
langchainjs/langchain/src/agents/openai_functions/prompt.ts/0
{ "file_path": "langchainjs/langchain/src/agents/openai_functions/prompt.ts", "repo_id": "langchainjs", "token_count": 25 }
840
import json import re import warnings from typing import List, Tuple import requests from langchain_core.documents import Document from langchain_community.document_loaders.base import BaseLoader class BiliBiliLoader(BaseLoader): """Load `BiliBili` video transcripts.""" def __init__(self, video_urls: List[...
langchain/libs/community/langchain_community/document_loaders/bilibili.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/bilibili.py", "repo_id": "langchain", "token_count": 1364 }
231
import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import { LLM, type BaseLLMParams } from "@langchain/core/language_models/llms"; import { GenerationChunk } from "@langchain/core/outputs"; import { getEnvironmentVariable } from "@langchain/core/utils/env"; /** * Interface defining the para...
langchainjs/libs/langchain-community/src/llms/hf.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/llms/hf.ts", "repo_id": "langchainjs", "token_count": 2018 }
985
import unittest import pytest from langchain_community.document_loaders.parsers.language.java import JavaSegmenter @pytest.mark.requires("tree_sitter", "tree_sitter_languages") class TestJavaSegmenter(unittest.TestCase): def setUp(self) -> None: self.example_code = """class Hello { public static voi...
langchain/libs/community/tests/unit_tests/document_loaders/parsers/language/test_java.py/0
{ "file_path": "langchain/libs/community/tests/unit_tests/document_loaders/parsers/language/test_java.py", "repo_id": "langchain", "token_count": 672 }
386
<!--- Copyright 2021 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
transformers/examples/tensorflow/translation/README.md/0
{ "file_path": "transformers/examples/tensorflow/translation/README.md", "repo_id": "transformers", "token_count": 903 }
599
import { BaseRetriever, BaseRetrieverInput } from "@langchain/core/retrievers"; import type { VectorStoreInterface } from "@langchain/core/vectorstores"; import type { DocumentInterface } from "@langchain/core/documents"; import { CallbackManagerForRetrieverRun } from "@langchain/core/callbacks/manager"; /** * Interf...
langchainjs/langchain/src/retrievers/time_weighted.ts/0
{ "file_path": "langchainjs/langchain/src/retrievers/time_weighted.ts", "repo_id": "langchainjs", "token_count": 3208 }
1,013
import tempfile import unittest from make_student import create_student_by_copying_alternating_layers from transformers import AutoConfig from transformers.file_utils import cached_property from transformers.testing_utils import require_torch TINY_BART = "sshleifer/bart-tiny-random" TINY_T5 = "patrickvonplaten/t5-t...
transformers/examples/research_projects/seq2seq-distillation/_test_make_student.py/0
{ "file_path": "transformers/examples/research_projects/seq2seq-distillation/_test_make_student.py", "repo_id": "transformers", "token_count": 660 }
543
import os from pathlib import Path from langchain_community.document_loaders import UnstructuredRSTLoader EXAMPLE_DIRECTORY = file_path = Path(__file__).parent.parent / "examples" def test_unstructured_rst_loader() -> None: """Test unstructured loader.""" file_path = os.path.join(EXAMPLE_DIRECTORY, "README....
langchain/libs/community/tests/integration_tests/document_loaders/test_rst.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/document_loaders/test_rst.py", "repo_id": "langchain", "token_count": 154 }
331
// 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/datanode/rate_collector_test.go/0
{ "file_path": "milvus/internal/datanode/rate_collector_test.go", "repo_id": "milvus", "token_count": 466 }
1,924
# Deployment In today's fast-paced technological landscape, the use of Large Language Models (LLMs) is rapidly expanding. As a result, it is crucial for developers to understand how to effectively deploy these models in production environments. LLM interfaces typically fall into two categories: - **Case 1: Utilizing ...
langchain/docs/docs/guides/deployments/index.mdx/0
{ "file_path": "langchain/docs/docs/guides/deployments/index.mdx", "repo_id": "langchain", "token_count": 2223 }
92
package common import "reflect" type Str2Str map[string]string func (m Str2Str) Clone() Str2Str { if m == nil { return nil } clone := make(Str2Str) for key, value := range m { clone[key] = value } return clone } func (m Str2Str) Equal(other Str2Str) bool { return reflect.DeepEqual(m, other) } func Clone...
milvus/pkg/common/map.go/0
{ "file_path": "milvus/pkg/common/map.go", "repo_id": "milvus", "token_count": 148 }
2,029
python_sources()
llama_index/llama-index-packs/llama-index-packs-ollama-query-engine/llama_index/packs/ollama_query_engine/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-ollama-query-engine/llama_index/packs/ollama_query_engine/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,685
import { zodToJsonSchema, JsonSchema7ObjectType } from "zod-to-json-schema"; import { ObjectTool, FINISH_NAME } from "./schema.js"; /** * Class that generates prompts for generative agents. It maintains a list * of constraints, commands, resources, and performance evaluations. */ export class PromptGenerator { c...
langchainjs/langchain/src/experimental/autogpt/prompt_generator.ts/0
{ "file_path": "langchainjs/langchain/src/experimental/autogpt/prompt_generator.ts", "repo_id": "langchainjs", "token_count": 1955 }
934
<jupyter_start><jupyter_text>OpenAPIWe can construct agents to consume arbitrary APIs, here APIs conformant to the `OpenAPI`/`Swagger` specification. 1st example: hierarchical planning agentIn this example, we'll consider an approach called hierarchical planning, common in robotics and appearing in recent works for LL...
langchain/docs/docs/integrations/toolkits/openapi.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/toolkits/openapi.ipynb", "repo_id": "langchain", "token_count": 3072 }
169
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ module.exports = { presets: [require.resolve("@docusaurus/core/lib/babel/preset")], };
langchain/docs/babel.config.js/0
{ "file_path": "langchain/docs/babel.config.js", "repo_id": "langchain", "token_count": 91 }
87
""" Lookahead Optimizer Wrapper. Implementation modified from: https://github.com/alphadl/lookahead.pytorch Paper: `Lookahead Optimizer: k steps forward, 1 step back` - https://arxiv.org/abs/1907.08610 Hacked together by / Copyright 2020 Ross Wightman """ from collections import OrderedDict from typing import Callable...
pytorch-image-models/timm/optim/lookahead.py/0
{ "file_path": "pytorch-image-models/timm/optim/lookahead.py", "repo_id": "pytorch-image-models", "token_count": 1134 }
381
<jupyter_start><jupyter_text>Structure answers with OpenAI functionsOpenAI functions allows for structuring of response output. This is often useful in question answering when you want to not only get the final answer but also supporting evidence, citations, etc.In this notebook we show how to use an LLM chain which us...
langchain/cookbook/openai_functions_retrieval_qa.ipynb/0
{ "file_path": "langchain/cookbook/openai_functions_retrieval_qa.ipynb", "repo_id": "langchain", "token_count": 1960 }
79
python_tests()
llama_index/llama-index-integrations/tools/llama-index-tools-wolfram-alpha/tests/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-wolfram-alpha/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,504
# coding=utf-8 # Copyright 2023 University of Wisconsin-Madison 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.o...
transformers/src/transformers/models/mra/modeling_mra.py/0
{ "file_path": "transformers/src/transformers/models/mra/modeling_mra.py", "repo_id": "transformers", "token_count": 26152 }
635
<!--Copyright 2024 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
diffusers/docs/source/en/api/schedulers/ddpm.md/0
{ "file_path": "diffusers/docs/source/en/api/schedulers/ddpm.md", "repo_id": "diffusers", "token_count": 470 }
177
use crate::pre_tokenizers::PreTokenizerWrapper; use crate::tokenizer::{PreTokenizedString, PreTokenizer, Result}; use crate::utils::macro_rules_attribute; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq)] #[macro_rules_attribute(impl_serde_type!)] pub struct Sequence { pretokenizers: Vec<PreT...
tokenizers/tokenizers/src/pre_tokenizers/sequence.rs/0
{ "file_path": "tokenizers/tokenizers/src/pre_tokenizers/sequence.rs", "repo_id": "tokenizers", "token_count": 1011 }
456
# 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/bert/test_modeling_tf_bert.py/0
{ "file_path": "transformers/tests/models/bert/test_modeling_tf_bert.py", "repo_id": "transformers", "token_count": 13599 }
769
python_tests()
llama_index/llama-index-packs/llama-index-packs-redis-ingestion-pipeline/tests/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-redis-ingestion-pipeline/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,695
apiVersion: chaos-mesh.org/v1alpha1 kind: StressChaos metadata: name: test-querynode-memory-stress-replica namespace: chaos-testing spec: selector: pods: chaos-testing: - mic-replica-milvus-querynode-86c77dd756-rfw8r - mic-replica-milvus-querynode-86c77dd756-wmtdk mode: all stressors...
milvus/tests/python_client/chaos/chaos_objects/memory_stress/chaos_replicas_memory_stress_pods.yaml/0
{ "file_path": "milvus/tests/python_client/chaos/chaos_objects/memory_stress/chaos_replicas_memory_stress_pods.yaml", "repo_id": "milvus", "token_count": 170 }
2,021
from transformers import ViTForImageClassification, Trainer, TrainingArguments,default_data_collator,ViTFeatureExtractor from datasets import load_from_disk,load_metric import random import logging import sys import argparse import os import numpy as np import subprocess subprocess.run([ "git", "config...
notebooks/sagemaker/09_image_classification_vision_transformer/scripts/train.py/0
{ "file_path": "notebooks/sagemaker/09_image_classification_vision_transformer/scripts/train.py", "repo_id": "notebooks", "token_count": 2150 }
286
apiVersion: chaos-mesh.org/v1alpha1 kind: PodChaos metadata: name: pod-failure-example namespace: chaos-testing spec: action: pod-failure mode: one selector: labelSelectors: 'app.kubernetes.io/component': 'tikv' scheduler: cron: '@every 2m'
milvus/tests/benchmark/milvus_benchmark/chaos/template/PodChaos.yaml/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/chaos/template/PodChaos.yaml", "repo_id": "milvus", "token_count": 109 }
1,861
# 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/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py/0
{ "file_path": "transformers/src/transformers/models/biogpt/convert_biogpt_original_pytorch_checkpoint_to_pytorch.py", "repo_id": "transformers", "token_count": 4719 }
639
export { MaskingParser } from "./parser.js"; export { RegexMaskingTransformer } from "./regex_masking_transformer.js"; export { MaskingTransformer } from "./transformer.js"; export { type MaskingParserConfig, type HashFunction, type HookFunction, } from "./types.js";
langchainjs/langchain/src/experimental/masking/index.ts/0
{ "file_path": "langchainjs/langchain/src/experimental/masking/index.ts", "repo_id": "langchainjs", "token_count": 86 }
925
kind: StressChaos apiVersion: chaos-mesh.org/v1alpha1 metadata: name: test-datanode-memory-stress namespace: chaos-testing spec: selector: namespaces: - chaos-testing labelSelectors: release: milvus-chaos app: pulsar mode: one stressors: cpu: workers: 4 load: 80 m...
milvus/tests/python_client/chaos/chaos_objects/mem_stress/chaos_pulsar_mem_stress.yaml/0
{ "file_path": "milvus/tests/python_client/chaos/chaos_objects/mem_stress/chaos_pulsar_mem_stress.yaml", "repo_id": "milvus", "token_count": 164 }
2,020
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/datacoord/compaction_trigger_test.go/0
{ "file_path": "milvus/internal/datacoord/compaction_trigger_test.go", "repo_id": "milvus", "token_count": 37724 }
1,911
# 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/image_processor.py/0
{ "file_path": "diffusers/src/diffusers/image_processor.py", "repo_id": "diffusers", "token_count": 16585 }
227
from llama_index.core.readers.base import BaseReader from llama_index.readers.jira import JiraReader def test_class(): names_of_base_classes = [b.__name__ for b in JiraReader.__mro__] assert BaseReader.__name__ in names_of_base_classes
llama_index/llama-index-integrations/readers/llama-index-readers-jira/tests/test_readers_jira.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-jira/tests/test_readers_jira.py", "repo_id": "llama_index", "token_count": 88 }
1,395
"""Experimental implementation of RELLM wrapped LLM.""" from __future__ import annotations from typing import TYPE_CHECKING, Any, List, Optional, cast from langchain.callbacks.manager import CallbackManagerForLLMRun from langchain_community.llms.huggingface_pipeline import HuggingFacePipeline from langchain_community...
langchain/libs/experimental/langchain_experimental/llms/rellm_decoder.py/0
{ "file_path": "langchain/libs/experimental/langchain_experimental/llms/rellm_decoder.py", "repo_id": "langchain", "token_count": 937 }
450
import { useMemo } from "react"; import defaults from "../utils/defaults"; import { JsonForms } from "@jsonforms/react"; import { JsonFormsCore, JsonSchema } from "@jsonforms/core"; import { renderers, cells } from "../renderers"; export type InputValue = Pick<JsonFormsCore, "data" | "errors">; export function Sectio...
langserve/langserve/playground/src/sections/SectionInputs.tsx/0
{ "file_path": "langserve/langserve/playground/src/sections/SectionInputs.tsx", "repo_id": "langserve", "token_count": 1038 }
1,031
<jupyter_start><jupyter_text>BagelDB>[Bagel](https://docs.bageldb.ai/) is a Open Vector Database for AI. It is built for distributed Machine Learning compute. Cutting AI data infra spend by tenfold. &nbsp;&nbsp;- [Website](https://www.bageldb.ai/)- [Documentation](https://docs.bageldb.ai/)- [Twitter](https://twi...
llama_index/docs/examples/vector_stores/BagelIndexDemo.ipynb/0
{ "file_path": "llama_index/docs/examples/vector_stores/BagelIndexDemo.ipynb", "repo_id": "llama_index", "token_count": 3472 }
1,088
import { NodeHandler, ASTParser } from "./base.js"; import { IdentifierType } from "./types.js"; /** * Handles identifiers in the LangChain Expression Language. Extends the * NodeHandler class. */ export class IdentifierHandler extends NodeHandler { /** * Checks if a given node is an identifier. If it is, it r...
langchainjs/langchain/src/output_parsers/expression_type_handlers/identifier_handler.ts/0
{ "file_path": "langchainjs/langchain/src/output_parsers/expression_type_handlers/identifier_handler.ts", "repo_id": "langchainjs", "token_count": 467 }
896
const { execSync } = require("child_process"); const { Command } = require("commander"); const fs = require("fs"); const path = require("path"); const { spawn } = require("child_process"); const readline = require("readline"); const semver = require('semver') const PRIMARY_PROJECTS = ["langchain", "@langchain/core", "...
langchainjs/release_workspace.js/0
{ "file_path": "langchainjs/release_workspace.js", "repo_id": "langchainjs", "token_count": 4125 }
1,113
FROM ontotext/graphdb:10.5.1 RUN mkdir -p /opt/graphdb/dist/data/repositories/starwars COPY config.ttl /opt/graphdb/dist/data/repositories/starwars/ COPY starwars-data.trig / COPY graphdb_create.sh /run.sh ENTRYPOINT bash /run.sh
langchain/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/Dockerfile/0
{ "file_path": "langchain/libs/langchain/tests/integration_tests/chains/docker-compose-ontotext-graphdb/Dockerfile", "repo_id": "langchain", "token_count": 103 }
622
from llama_index.core.data_structs.data_structs import IndexDict from llama_index.core.schema import TextNode from llama_index.core.storage.storage_context import StorageContext def test_storage_context_dict() -> None: storage_context = StorageContext.from_defaults() # add node = TextNode(text="test", em...
llama_index/llama-index-core/tests/storage/test_storage_context.py/0
{ "file_path": "llama_index/llama-index-core/tests/storage/test_storage_context.py", "repo_id": "llama_index", "token_count": 374 }
1,278
"""Slack tool spec.""" import logging from datetime import datetime from ssl import SSLContext from typing import List, Optional from llama_index.legacy.readers.slack import SlackReader from llama_index.legacy.schema import Document from llama_index.legacy.tools.tool_spec.base import BaseToolSpec logger = logging.ge...
llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/slack/base.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/tools/tool_spec/slack/base.py", "repo_id": "llama_index", "token_count": 946 }
1,721