text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
import { test, expect, afterAll, beforeAll } from "@jest/globals";
import { ErrorCode, MilvusClient } from "@zilliz/milvus2-sdk-node";
import { OpenAIEmbeddings } from "@langchain/openai";
import { Milvus } from "../milvus.js";
let collectionName: string;
let embeddings: OpenAIEmbeddings;
// https://docs.zilliz.com/do... | langchainjs/libs/langchain-community/src/vectorstores/tests/milvus.int.test.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/vectorstores/tests/milvus.int.test.ts",
"repo_id": "langchainjs",
"token_count": 2293
} | 1,028 |
// Build script to run nvcc and generate the C glue code for launching the flash-attention kernel.
// The cuda build time is very long so one can set the CANDLE_FLASH_ATTN_BUILD_DIR environment
// variable in order to cache the compiled artifacts and avoid recompiling too often.
use anyhow::{Context, Result};
use std::... | candle/candle-flash-attn/build.rs/0 | {
"file_path": "candle/candle-flash-attn/build.rs",
"repo_id": "candle",
"token_count": 1604
} | 50 |
from llama_index.readers.airbyte_gong.base import AirbyteGongReader
__all__ = ["AirbyteGongReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-gong/llama_index/readers/airbyte_gong/__init__.py",
"repo_id": "llama_index",
"token_count": 36
} | 1,326 |
import logging
from typing import (
TYPE_CHECKING,
Any,
Iterable,
List,
Optional,
Tuple,
Type,
TypeVar,
cast,
)
from uuid import uuid4
import numpy as np
from langchain_core.documents import Document
from langchain_core.embeddings import Embeddings
from langchain_core.utils import g... | langchain/libs/community/langchain_community/vectorstores/momento_vector_index.py/0 | {
"file_path": "langchain/libs/community/langchain_community/vectorstores/momento_vector_index.py",
"repo_id": "langchain",
"token_count": 8260
} | 338 |
# 세이프텐서 로드
[safetensors](https://github.com/huggingface/safetensors)는 텐서를 저장하고 로드하기 위한 안전하고 빠른 파일 형식입니다. 일반적으로 PyTorch 모델 가중치는 Python의 [`pickle`](https://docs.python.org/3/library/pickle.html) 유틸리티를 사용하여 `.bin` 파일에 저장되거나 `피클`됩니다. 그러나 `피클`은 안전하지 않으며 피클된 파일에는 실행될 수 있는 악성 코드가 포함될 수 있습니다. 세이프텐서는 `피클`의 안전한 대안으로 모델 가중치를 공유하... | diffusers/docs/source/ko/using-diffusers/using_safetensors.md/0 | {
"file_path": "diffusers/docs/source/ko/using-diffusers/using_safetensors.md",
"repo_id": "diffusers",
"token_count": 4065
} | 208 |
import * as uuid from "uuid";
import {
type VectorStoreInterface,
type VectorStoreRetrieverInterface,
} from "@langchain/core/vectorstores";
import { Document } from "@langchain/core/documents";
import { TextSplitter } from "../text_splitter.js";
import {
MultiVectorRetriever,
type MultiVectorRetrieverInput,
}... | langchainjs/langchain/src/retrievers/parent_document.ts/0 | {
"file_path": "langchainjs/langchain/src/retrievers/parent_document.ts",
"repo_id": "langchainjs",
"token_count": 2149
} | 1,009 |
# Copyright 2023-present the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | peft/tests/test_multitask_prompt_tuning.py/0 | {
"file_path": "peft/tests/test_multitask_prompt_tuning.py",
"repo_id": "peft",
"token_count": 4293
} | 355 |
# Latent Consistency Distillation Example:
[Latent Consistency Models (LCMs)](https://arxiv.org/abs/2310.04378) is a method to distill a latent diffusion model to enable swift inference with minimal steps. This example demonstrates how to use latent consistency distillation to distill SDXL for inference with few times... | diffusers/examples/consistency_distillation/README_sdxl.md/0 | {
"file_path": "diffusers/examples/consistency_distillation/README_sdxl.md",
"repo_id": "diffusers",
"token_count": 2096
} | 212 |
<!--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/using-diffusers/contribute_pipeline.md/0 | {
"file_path": "diffusers/docs/source/en/using-diffusers/contribute_pipeline.md",
"repo_id": "diffusers",
"token_count": 2939
} | 189 |
<jupyter_start><jupyter_text>Conversation Token Buffer`ConversationTokenBufferMemory` keeps a buffer of recent interactions in memory, and uses token length rather than number of interactions to determine when to flush interactions.Let's first walk through how to use the utilities. Using memory with LLM<jupyter_code>f... | langchain/docs/docs/modules/memory/types/token_buffer.ipynb/0 | {
"file_path": "langchain/docs/docs/modules/memory/types/token_buffer.ipynb",
"repo_id": "langchain",
"token_count": 758
} | 190 |
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.codespell]
check-filenames = true
check-hidden = true
ignore-words-list = "astroid,gallary,momento,narl,ot,rouge"
# Feel free to un-skip examples, and experimental, you will just need to
# work through many typos (--write-changes... | llama_index/pyproject.toml/0 | {
"file_path": "llama_index/pyproject.toml",
"repo_id": "llama_index",
"token_count": 2306
} | 1,709 |
# Ollama
>[Ollama](https://ollama.ai/) is a python library. It allows you to run open-source large language models,
> such as LLaMA2, locally.
>
>`Ollama` bundles model weights, configuration, and data into a single package, defined by a Modelfile.
>It optimizes setup and configuration details, including GPU usage.
... | langchain/docs/docs/integrations/providers/ollama.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/ollama.mdx",
"repo_id": "langchain",
"token_count": 472
} | 155 |
<jupyter_start><jupyter_text>Creating an Automated Feedback Pipeline with LangSmith[](https://colab.research.google.com/github/langchain-ai/langsmith-cookbook/blob/main/feedback-examples/algorithmic-feedback/algorithmic_feedback.ipynb)Manually analyzing text processed by your language model is useful, but not scalable.... | langsmith-cookbook/feedback-examples/algorithmic-feedback/algorithmic_feedback.ipynb/0 | {
"file_path": "langsmith-cookbook/feedback-examples/algorithmic-feedback/algorithmic_feedback.ipynb",
"repo_id": "langsmith-cookbook",
"token_count": 5360
} | 1,054 |
from langchain_anthropic.chat_models import ChatAnthropicMessages
__all__ = ["ChatAnthropicMessages"]
| langchain/libs/partners/anthropic/langchain_anthropic/__init__.py/0 | {
"file_path": "langchain/libs/partners/anthropic/langchain_anthropic/__init__.py",
"repo_id": "langchain",
"token_count": 32
} | 648 |
import pandas as pd
import pytest
from base.client_base import TestcaseBase
from common.common_type import CheckTasks, CaseLabel
from common.common_func import param_info
from common import common_func as cf
from common import common_type as ct
from utils.util_log import test_log as log
prefix = "db"
@pytest.mark.t... | milvus/tests/python_client/testcases/test_database.py/0 | {
"file_path": "milvus/tests/python_client/testcases/test_database.py",
"repo_id": "milvus",
"token_count": 19716
} | 2,186 |
export {
type BaseDynamicToolInput,
type DynamicToolInput,
type DynamicStructuredToolInput,
DynamicTool,
DynamicStructuredTool,
} from "@langchain/core/tools";
| langchainjs/libs/langchain-community/src/tools/dynamic.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/tools/dynamic.ts",
"repo_id": "langchainjs",
"token_count": 50
} | 969 |
<jupyter_start><jupyter_text>Rewrite-Retrieve-Read**Rewrite-Retrieve-Read** is a method proposed in the paper [Query Rewriting for Retrieval-Augmented Large Language Models](https://arxiv.org/pdf/2305.14283.pdf)> Because the original query can not be always optimal to retrieve for the LLM, especially in the real world.... | langchain/cookbook/rewrite.ipynb/0 | {
"file_path": "langchain/cookbook/rewrite.ipynb",
"repo_id": "langchain",
"token_count": 867
} | 81 |
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | transformers/src/transformers/quantizers/quantizer_awq.py/0 | {
"file_path": "transformers/src/transformers/quantizers/quantizer_awq.py",
"repo_id": "transformers",
"token_count": 1709
} | 729 |
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.codespell]
check-filenames = true
check-hidden = true
skip = "*.csv,*.html,*.json,*.jsonl,*.pdf,*.txt,*.ipynb"
[tool.llamahub]
classes = ["GuidancePydanticProgram"]
contains_example = false
import_path = "llama_index.program.gui... | llama_index/llama-index-integrations/program/llama-index-program-guidance/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/program/llama-index-program-guidance/pyproject.toml",
"repo_id": "llama_index",
"token_count": 648
} | 1,301 |
import uuid
from types import SimpleNamespace
from unittest import mock
from langchain_core.outputs import LLMResult
from langchain_community.callbacks.tracers import comet
def test_comet_tracer__trace_chain_with_single_span__happyflow() -> None:
# Setup mocks
chain_module_mock = mock.Mock()
chain_insta... | langchain/libs/community/tests/unit_tests/callbacks/tracers/test_comet.py/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/callbacks/tracers/test_comet.py",
"repo_id": "langchain",
"token_count": 1401
} | 365 |
from langchain_core.runnables.branch import RunnableBranch
__all__ = ["RunnableBranch"]
| langchain/libs/langchain/langchain/schema/runnable/branch.py/0 | {
"file_path": "langchain/libs/langchain/langchain/schema/runnable/branch.py",
"repo_id": "langchain",
"token_count": 32
} | 545 |
import { IEmbeddingFunction } from "./IEmbeddingFunction";
let googleGenAiApi: any;
export class GoogleGenerativeAiEmbeddingFunction implements IEmbeddingFunction {
private api_key: string;
private model: string;
private googleGenAiApi?: any;
private taskType: string;
constructor({ googleApiKey, ... | chroma/clients/js/src/embeddings/GoogleGeminiEmbeddingFunction.ts/0 | {
"file_path": "chroma/clients/js/src/embeddings/GoogleGeminiEmbeddingFunction.ts",
"repo_id": "chroma",
"token_count": 1128
} | 31 |
use super::common::LayerNormNoWeights;
use candle::{Module, Result, Tensor};
use candle_nn::VarBuilder;
#[derive(Debug)]
pub struct MixingResidualBlock {
norm1: LayerNormNoWeights,
depthwise_conv: candle_nn::Conv2d,
norm2: LayerNormNoWeights,
channelwise_lin1: candle_nn::Linear,
channelwise_lin2: c... | candle/candle-transformers/src/models/wuerstchen/paella_vq.rs/0 | {
"file_path": "candle/candle-transformers/src/models/wuerstchen/paella_vq.rs",
"repo_id": "candle",
"token_count": 4078
} | 74 |
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | diffusers/docs/source/ko/training/instructpix2pix.md/0 | {
"file_path": "diffusers/docs/source/ko/training/instructpix2pix.md",
"repo_id": "diffusers",
"token_count": 5652
} | 191 |
<jupyter_start><jupyter_text>Fine-tuning a gpt-3.5 ReAct Agent on Better Chain of ThoughtIn this guide, we fine-tune a ReAct Agent powered by gpt-3.5-turbo to perform better chain-of-thought prompting over financial statements.We do this in the following steps:1. Setup LlamaIndex query engine tools over Uber 10Q filing... | llama_index/docs/examples/finetuning/react_agent/react_agent_finetune.ipynb/0 | {
"file_path": "llama_index/docs/examples/finetuning/react_agent/react_agent_finetune.ipynb",
"repo_id": "llama_index",
"token_count": 4769
} | 1,187 |
import type { CheerioAPI } from "cheerio";
import { Document } from "@langchain/core/documents";
import { CheerioWebBaseLoader } from "./cheerio.js";
/**
* Interface representing the parameters for configuring the
* GitbookLoader. It has an optional property shouldLoadAllPaths, which
* indicates whether all paths s... | langchainjs/langchain/src/document_loaders/web/gitbook.ts/0 | {
"file_path": "langchainjs/langchain/src/document_loaders/web/gitbook.ts",
"repo_id": "langchainjs",
"token_count": 1183
} | 871 |
import { test, describe, expect } from "@jest/globals";
import { AI21 } from "../ai21.js";
describe.skip("AI21", () => {
test("test call", async () => {
const ai21 = new AI21({});
const result = await ai21.call(
"What is a good name for a company that makes colorful socks?"
);
console.log({ res... | langchainjs/libs/langchain-community/src/llms/tests/ai21.int.test.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/llms/tests/ai21.int.test.ts",
"repo_id": "langchainjs",
"token_count": 531
} | 1,002 |
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/src/transformers/models/owlvit/__init__.py/0 | {
"file_path": "transformers/src/transformers/models/owlvit/__init__.py",
"repo_id": "transformers",
"token_count": 1197
} | 651 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/util/importutilv2/json/row_parser.go/0 | {
"file_path": "milvus/internal/util/importutilv2/json/row_parser.go",
"repo_id": "milvus",
"token_count": 5374
} | 1,805 |
import pytest
from llama_index.legacy.storage.kvstore.redis_kvstore import RedisKVStore
try:
from redis import Redis
except ImportError:
Redis = None # type: ignore
@pytest.fixture()
def kvstore_with_data(redis_kvstore: RedisKVStore) -> RedisKVStore:
test_key = "test_key"
test_blob = {"test_obj_key"... | llama_index/llama-index-legacy/tests/storage/kvstore/test_redis_kvstore.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/storage/kvstore/test_redis_kvstore.py",
"repo_id": "llama_index",
"token_count": 1007
} | 1,651 |
import multiprocessing as mp
import os
import pytest
import requests
DATA_PATH = os.path.join("tests", "data")
def download(url, with_filename=None):
filename = with_filename if with_filename is not None else url.rsplit("/")[-1]
filepath = os.path.join(DATA_PATH, filename)
if not os.path.exists(filepa... | tokenizers/bindings/python/tests/utils.py/0 | {
"file_path": "tokenizers/bindings/python/tests/utils.py",
"repo_id": "tokenizers",
"token_count": 1569
} | 443 |
from langchain_community.vectorstores.neo4j_vector import (
Neo4jVector,
SearchType,
)
__all__ = [
"SearchType",
"Neo4jVector",
]
| langchain/libs/langchain/langchain/vectorstores/neo4j_vector.py/0 | {
"file_path": "langchain/libs/langchain/langchain/vectorstores/neo4j_vector.py",
"repo_id": "langchain",
"token_count": 64
} | 574 |
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/src/transformers/utils/hub.py/0 | {
"file_path": "transformers/src/transformers/utils/hub.py",
"repo_id": "transformers",
"token_count": 23219
} | 788 |
{
"name": "tokenizers-linux-arm64-gnu",
"version": "0.13.4-rc1",
"os": [
"linux"
],
"cpu": [
"arm64"
],
"main": "tokenizers.linux-arm64-gnu.node",
"files": [
"tokenizers.linux-arm64-gnu.node"
],
"description": "Tokenizers platform specific bindings",
"keywords": [
"napi-rs",
"N... | tokenizers/bindings/node/npm/linux-arm64-gnu/package.json/0 | {
"file_path": "tokenizers/bindings/node/npm/linux-arm64-gnu/package.json",
"repo_id": "tokenizers",
"token_count": 289
} | 455 |
# OpenAPI Agent Toolkit
This example shows how to load and use an agent with a OpenAPI toolkit.
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";
<IntegrationInstallTooltip></IntegrationInstallTooltip>
```bash npm2yarn
npm install @langchain/openai
```
```typescript
import * ... | langchainjs/docs/core_docs/docs/integrations/toolkits/openapi.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/toolkits/openapi.mdx",
"repo_id": "langchainjs",
"token_count": 663
} | 738 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-zendesk-support/llama_index/readers/airbyte_zendesk_support/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-zendesk-support/llama_index/readers/airbyte_zendesk_support/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,457 |
import numpy as np
import torch
from ...utils import is_invisible_watermark_available
if is_invisible_watermark_available():
from imwatermark import WatermarkEncoder
# Copied from https://github.com/Stability-AI/generative-models/blob/613af104c6b85184091d42d374fef420eddb356d/scripts/demo/streamlit_helpers.py#L... | diffusers/src/diffusers/pipelines/stable_diffusion_xl/watermark.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/stable_diffusion_xl/watermark.py",
"repo_id": "diffusers",
"token_count": 509
} | 235 |
{
"_type": "prompt",
"input_variables": ["adjective", "content"],
"template_path": "simple_template.txt"
}
| langchain/libs/core/tests/unit_tests/examples/simple_prompt_with_template_file.json/0 | {
"file_path": "langchain/libs/core/tests/unit_tests/examples/simple_prompt_with_template_file.json",
"repo_id": "langchain",
"token_count": 49
} | 445 |
from langchain_community.vectorstores.opensearch_vector_search import (
OpenSearchVectorSearch,
)
__all__ = [
"OpenSearchVectorSearch",
]
| langchain/libs/langchain/langchain/vectorstores/opensearch_vector_search.py/0 | {
"file_path": "langchain/libs/langchain/langchain/vectorstores/opensearch_vector_search.py",
"repo_id": "langchain",
"token_count": 49
} | 629 |
use crate::processors::PostProcessorWrapper;
use crate::tokenizer::{Encoding, PostProcessor, Result};
use crate::utils::macro_rules_attribute;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Eq)]
#[macro_rules_attribute(impl_serde_type!)]
pub struct Sequence {
processors: Vec<PostProcessorWr... | tokenizers/tokenizers/src/processors/sequence.rs/0 | {
"file_path": "tokenizers/tokenizers/src/processors/sequence.rs",
"repo_id": "tokenizers",
"token_count": 2313
} | 462 |
# 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/glue/glue.py/0 | {
"file_path": "datasets/metrics/glue/glue.py",
"repo_id": "datasets",
"token_count": 2408
} | 120 |
from io import BytesIO
from langchain.text_splitter import RecursiveCharacterTextSplitter
from app.upload import IngestRunnable, _guess_mimetype
from tests.unit_tests.fixtures import get_sample_paths
from tests.unit_tests.utils import InMemoryVectorStore
def test_ingestion_runnable() -> None:
"""Test ingestion ... | opengpts/backend/tests/unit_tests/agent_executor/test_upload.py/0 | {
"file_path": "opengpts/backend/tests/unit_tests/agent_executor/test_upload.py",
"repo_id": "opengpts",
"token_count": 570
} | 1,921 |
//
// WARNING: This file is automatically generated! Please edit onnx.in.proto.
//
// SPDX-License-Identifier: Apache-2.0
syntax = "proto3";
package onnx;
// Overview
//
// ONNX is an open specification that is comprised of the following components:
//
// 1) A definition of an extensible computation graph model... | candle/candle-onnx/src/onnx.proto3/0 | {
"file_path": "candle/candle-onnx/src/onnx.proto3",
"repo_id": "candle",
"token_count": 10183
} | 60 |
use crate::tokenizer::PaddingOptions;
use napi::bindgen_prelude::*;
use napi_derive::napi;
use tokenizers::utils::truncation::TruncationDirection;
use tokenizers::Encoding;
#[napi(js_name = "Encoding")]
#[derive(Clone, Default)]
pub struct JsEncoding {
pub(crate) encoding: Option<Encoding>,
}
impl From<Encoding> fo... | tokenizers/bindings/node/src/encoding.rs/0 | {
"file_path": "tokenizers/bindings/node/src/encoding.rs",
"repo_id": "tokenizers",
"token_count": 3778
} | 454 |
"""Chain for question-answering against a vector database."""
from __future__ import annotations
import inspect
import warnings
from abc import abstractmethod
from typing import Any, Dict, List, Optional
from langchain_core.callbacks import (
AsyncCallbackManagerForChainRun,
CallbackManagerForChainRun,
Ca... | langchain/libs/langchain/langchain/chains/retrieval_qa/base.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/retrieval_qa/base.py",
"repo_id": "langchain",
"token_count": 4235
} | 468 |
python_tests()
| llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/kvstore/llama-index-storage-kvstore-mongodb/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,607 |
<jupyter_start><jupyter_text>SEC filing>The SEC filing is a financial statement or other formal document submitted to the U.S. Securities and Exchange Commission (SEC). Public companies, certain insiders, and broker-dealers are required to make regular SEC filings. Investors and financial professionals rely on these fi... | langchain/docs/docs/integrations/retrievers/sec_filings.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/retrievers/sec_filings.ipynb",
"repo_id": "langchain",
"token_count": 947
} | 155 |
:root {
--max-width: 1100px;
--border-radius: 12px;
--font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
}
* {
box-sizing: border-box;
padding: 0;
ma... | langchain-template-supabase/src/styles/globals.css/0 | {
"file_path": "langchain-template-supabase/src/styles/globals.css",
"repo_id": "langchain-template-supabase",
"token_count": 194
} | 70 |
import { test } from "@jest/globals";
import * as fs from "node:fs/promises";
import { fileURLToPath } from "node:url";
import * as path from "node:path";
import { PromptTemplate } from "@langchain/core/prompts";
import {
BytesOutputParser,
StringOutputParser,
} from "@langchain/core/output_parsers";
import { Ollam... | langchainjs/libs/langchain-community/src/llms/tests/ollama.int.test.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/llms/tests/ollama.int.test.ts",
"repo_id": "langchainjs",
"token_count": 1338
} | 959 |
"""Init params."""
| llama_index/llama-index-legacy/llama_index/legacy/agent/legacy/react/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/agent/legacy/react/__init__.py",
"repo_id": "llama_index",
"token_count": 6
} | 1,687 |
"""Joplin reader class.
When Joplin is installed and running it will parse all markdown
files into a List of Documents.
"""
import json
import os
import urllib
from datetime import datetime
from typing import Iterator, List, Optional
from llama_index.core.readers.base import BaseReader
from llama_index.readers.file... | llama_index/llama-index-integrations/readers/llama-index-readers-joplin/llama_index/readers/joplin/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-joplin/llama_index/readers/joplin/base.py",
"repo_id": "llama_index",
"token_count": 2257
} | 1,396 |
<!--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/conceptual/evaluation.md/0 | {
"file_path": "diffusers/docs/source/en/conceptual/evaluation.md",
"repo_id": "diffusers",
"token_count": 8299
} | 166 |
<!--Copyright 2020 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/ja/model_doc/albert.md/0 | {
"file_path": "transformers/docs/source/ja/model_doc/albert.md",
"repo_id": "transformers",
"token_count": 2960
} | 525 |
// 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_inverted_index.cpp/0 | {
"file_path": "milvus/internal/core/unittest/test_inverted_index.cpp",
"repo_id": "milvus",
"token_count": 9685
} | 1,953 |
# coding=utf-8
# Copyright 2018 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/examples/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.py/0 | {
"file_path": "transformers/examples/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.py",
"repo_id": "transformers",
"token_count": 2412
} | 519 |
from abc import abstractmethod
from typing import TYPE_CHECKING, List
from langchain_community.document_loaders.parsers.language.code_segmenter import (
CodeSegmenter,
)
if TYPE_CHECKING:
from tree_sitter import Language, Parser
class TreeSitterSegmenter(CodeSegmenter):
"""Abstract class for `CodeSegmen... | langchain/libs/community/langchain_community/document_loaders/parsers/language/tree_sitter_segmenter.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/language/tree_sitter_segmenter.py",
"repo_id": "langchain",
"token_count": 1509
} | 256 |
# Copyright 2022 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | datasets/src/datasets/utils/tf_utils.py/0 | {
"file_path": "datasets/src/datasets/utils/tf_utils.py",
"repo_id": "datasets",
"token_count": 11176
} | 153 |
# coding=utf-8
# Copyright 2023 Xuan Ouyang, Shuohuan Wang, Chao Pang, Yu Sun, Hao Tian, Hua Wu, Haifeng Wang 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... | transformers/src/transformers/models/ernie_m/configuration_ernie_m.py/0 | {
"file_path": "transformers/src/transformers/models/ernie_m/configuration_ernie_m.py",
"repo_id": "transformers",
"token_count": 2264
} | 630 |
<jupyter_start><jupyter_text>Chaindesk>[Chaindesk platform](https://docs.chaindesk.ai/introduction) brings data from anywhere (Datsources: Text, PDF, Word, PowerPpoint, Excel, Notion, Airtable, Google Sheets, etc..) into Datastores (container of multiple Datasources).Then your Datastores can be connected to ChatGPT via... | langchain/docs/docs/integrations/retrievers/chaindesk.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/retrievers/chaindesk.ipynb",
"repo_id": "langchain",
"token_count": 364
} | 155 |
# LangSmith Next.js Chat UI Example
[](https://github.com/langchain-ai/langsmith-cookbook/tree/main/./feedback-examples/nextjs/README.md)
[](https://vercel.com/new/clone?repository-url=https%... | langsmith-cookbook/feedback-examples/nextjs/README.md/0 | {
"file_path": "langsmith-cookbook/feedback-examples/nextjs/README.md",
"repo_id": "langsmith-cookbook",
"token_count": 2486
} | 1,135 |
"""Init file."""
| llama_index/llama-index-legacy/tests/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/__init__.py",
"repo_id": "llama_index",
"token_count": 6
} | 1,614 |
#include <metal_stdlib>
#include <metal_integer>
#include <metal_atomic>
using namespace metal;
// Constants
// 2^32 and 1/2^32. Useful for converting between float and uint.
static constexpr constant ulong UNIF01_NORM32 = 4294967296;
static constexpr constant float UNIF01_INV32 = 2.328306436538696289e-10;
// 2 * pi
... | candle/candle-metal-kernels/src/random.metal/0 | {
"file_path": "candle/candle-metal-kernels/src/random.metal",
"repo_id": "candle",
"token_count": 3513
} | 60 |
# Copyright 2024 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py",
"repo_id": "diffusers",
"token_count": 10811
} | 254 |
Dockerfile
.vscode/
.idea
.gitignore
LICENSE
README.md
node_modules/
.svelte-kit/
.env*
!.env
!.env.local | chat-ui/.dockerignore/0 | {
"file_path": "chat-ui/.dockerignore",
"repo_id": "chat-ui",
"token_count": 51
} | 82 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-requests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-requests/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,496 |
python_tests()
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-tair/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,624 |
"""Markdown node parser."""
import re
from typing import Any, Dict, List, Optional, Sequence
from llama_index.legacy.callbacks.base import CallbackManager
from llama_index.legacy.node_parser.interface import NodeParser
from llama_index.legacy.node_parser.node_utils import build_nodes_from_splits
from llama_index.lega... | llama_index/llama-index-legacy/llama_index/legacy/node_parser/file/markdown.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/node_parser/file/markdown.py",
"repo_id": "llama_index",
"token_count": 1778
} | 1,579 |
[
{
"server": "idc-sh002",
"suite_params": [
{
"suite": "011_cpu_accuracy_ann.yaml",
"image_type": "cpu"
},
{
"suite": "011_gpu_accuracy_ann.yaml",
"image_type": "gpu"
}
]
},
... | milvus/tests/benchmark/milvus_benchmark/scheduler/011_data.json/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/scheduler/011_data.json",
"repo_id": "milvus",
"token_count": 1023
} | 2,137 |
"""Util that calls Wikipedia."""
import logging
from typing import Any, Dict, List, Optional
from langchain_core.documents import Document
from langchain_core.pydantic_v1 import BaseModel, root_validator
logger = logging.getLogger(__name__)
WIKIPEDIA_MAX_QUERY_LENGTH = 300
class WikipediaAPIWrapper(BaseModel):
... | langchain/libs/community/langchain_community/utilities/wikipedia.py/0 | {
"file_path": "langchain/libs/community/langchain_community/utilities/wikipedia.py",
"repo_id": "langchain",
"token_count": 1846
} | 305 |
import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict
from ..features import ClassLabel, Features, Image
from .base import TaskTemplate
@dataclass(frozen=True)
class ImageClassification(TaskTemplate):
task: str = field(default="image-classification", metadata={"include_in_asdict_... | datasets/src/datasets/tasks/image_classification.py/0 | {
"file_path": "datasets/src/datasets/tasks/image_classification.py",
"repo_id": "datasets",
"token_count": 487
} | 150 |
import type { VectorStoreRetrieverInterface } from "@langchain/core/vectorstores";
import {
BaseChatPromptTemplate,
SerializedBasePromptTemplate,
} from "@langchain/core/prompts";
import {
BaseMessage,
HumanMessage,
SystemMessage,
} from "@langchain/core/messages";
import { PartialValues } from "@langchain/co... | langchainjs/langchain/src/experimental/autogpt/prompt.ts/0 | {
"file_path": "langchainjs/langchain/src/experimental/autogpt/prompt.ts",
"repo_id": "langchainjs",
"token_count": 1933
} | 956 |
import logging
import re
from datetime import datetime
from typing import Any, Dict, List, Optional
from langchain.chains import LLMChain
from langchain.prompts import PromptTemplate
from langchain.retrievers import TimeWeightedVectorStoreRetriever
from langchain.schema import BaseMemory, Document
from langchain.utils... | langchain/libs/experimental/langchain_experimental/generative_agents/memory.py/0 | {
"file_path": "langchain/libs/experimental/langchain_experimental/generative_agents/memory.py",
"repo_id": "langchain",
"token_count": 5201
} | 448 |
label: 'Q&A with RAG'
position: 3 | langchainjs/docs/core_docs/docs/use_cases/question_answering/_category_.yml/0 | {
"file_path": "langchainjs/docs/core_docs/docs/use_cases/question_answering/_category_.yml",
"repo_id": "langchainjs",
"token_count": 14
} | 768 |
<jupyter_start><jupyter_text>OpenAI For this notebook we will use the OpenAI ChatGPT models. We import the OpenAI agent and set the api_key, you will have to provide your own API key.<jupyter_code># Setup OpenAI Agent
import openai
openai.api_key = "sk-your-key"
from llama_index.agent import OpenAIAgent<jupyter_output... | llama_index/llama-index-integrations/tools/llama-index-tools-database/examples/database.ipynb/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-database/examples/database.ipynb",
"repo_id": "llama_index",
"token_count": 1200
} | 1,480 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-redis/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-redis/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,464 |
from langchain_community.llms.aleph_alpha import AlephAlpha
__all__ = ["AlephAlpha"]
| langchain/libs/langchain/langchain/llms/aleph_alpha.py/0 | {
"file_path": "langchain/libs/langchain/langchain/llms/aleph_alpha.py",
"repo_id": "langchain",
"token_count": 29
} | 557 |
<jupyter_start><jupyter_text>WhatsApp Chat>[WhatsApp](https://www.whatsapp.com/) (also called `WhatsApp Messenger`) is a freeware, cross-platform, centralized instant messaging (IM) and voice-over-IP (VoIP) service. It allows users to send text and voice messages, make voice and video calls, and share images, documents... | langchain/docs/docs/integrations/document_loaders/whatsapp_chat.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/whatsapp_chat.ipynb",
"repo_id": "langchain",
"token_count": 184
} | 122 |
import { writable } from "svelte/store";
export const pendingMessage = writable<
| {
content: string;
files: File[];
}
| undefined
>();
| chat-ui/src/lib/stores/pendingMessage.ts/0 | {
"file_path": "chat-ui/src/lib/stores/pendingMessage.ts",
"repo_id": "chat-ui",
"token_count": 56
} | 104 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-twitter/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-twitter/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,535 |
python_sources()
python_tests(
name="tests",
skip_tests=True,
)
| llama_index/llama-index-legacy/tests/logger/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/tests/logger/BUILD",
"repo_id": "llama_index",
"token_count": 32
} | 1,627 |
<jupyter_start><jupyter_text>Google SerperThis notebook goes over how to use the `Google Serper` component to search the web. First you need to sign up for a free account at [serper.dev](https://serper.dev) and get your api key.<jupyter_code>import os
import pprint
os.environ["SERPER_API_KEY"] = ""
from langchain_comm... | langchain/docs/docs/integrations/tools/google_serper.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/tools/google_serper.ipynb",
"repo_id": "langchain",
"token_count": 3967
} | 187 |
{
"name": "test-exports-esm",
"version": "0.0.0",
"workspaces": [
"libs/*"
],
"private": true,
"description": "Tests for the things exported by the langchain package",
"main": "./index.mjs",
"type": "module",
"scripts": {
"build": "tsc",
"test": "npm run test:esm && npm run test:cjs && npm... | langchainjs/environment_tests/test-exports-esm/package.json/0 | {
"file_path": "langchainjs/environment_tests/test-exports-esm/package.json",
"repo_id": "langchainjs",
"token_count": 505
} | 751 |
"""Init file."""
from llama_index.readers.remote.base import (
RemoteReader,
)
__all__ = ["RemoteReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-remote/llama_index/readers/remote/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-remote/llama_index/readers/remote/__init__.py",
"repo_id": "llama_index",
"token_count": 40
} | 1,413 |
// Code generated by mockery v2.32.4. DO NOT EDIT.
package proxyutil
import (
context "context"
sessionutil "github.com/milvus-io/milvus/internal/util/sessionutil"
mock "github.com/stretchr/testify/mock"
)
// MockProxyWatcher is an autogenerated mock type for the ProxyWatcherInterface type
type MockProxyWatcher ... | milvus/internal/util/proxyutil/mock_proxy_watcher.go/0 | {
"file_path": "milvus/internal/util/proxyutil/mock_proxy_watcher.go",
"repo_id": "milvus",
"token_count": 2283
} | 1,885 |
from langchain_community.vectorstores.singlestoredb import (
SingleStoreDB,
SingleStoreDBRetriever,
)
__all__ = ["SingleStoreDB", "SingleStoreDBRetriever"]
| langchain/libs/langchain/langchain/vectorstores/singlestoredb.py/0 | {
"file_path": "langchain/libs/langchain/langchain/vectorstores/singlestoredb.py",
"repo_id": "langchain",
"token_count": 56
} | 587 |
use candle::{Device, Result, Tensor};
use candle_transformers::generation::LogitsProcessor;
#[test]
fn sample_with_zero_temperature() -> Result<()> {
let mut logits_process = LogitsProcessor::new(1337, None, None);
let logits = Tensor::new(&[0.1, 0.2, 0.3, 0.4], &Device::Cpu)?;
let token = logits_process.s... | candle/candle-transformers/tests/generation_tests.rs/0 | {
"file_path": "candle/candle-transformers/tests/generation_tests.rs",
"repo_id": "candle",
"token_count": 408
} | 71 |
# SK-ResNet
**SK ResNet** is a variant of a [ResNet](https://www.paperswithcode.com/method/resnet) that employs a [Selective Kernel](https://paperswithcode.com/method/selective-kernel) unit. In general, all the large kernel convolutions in the original bottleneck blocks in ResNet are replaced by the proposed [SK convo... | pytorch-image-models/docs/models/.templates/models/skresnet.md/0 | {
"file_path": "pytorch-image-models/docs/models/.templates/models/skresnet.md",
"repo_id": "pytorch-image-models",
"token_count": 1276
} | 319 |
"""Zapier tool spec."""
import json
from typing import Optional
import requests
from llama_index.core.tools.tool_spec.base import BaseToolSpec
ACTION_URL_TMPL = "https://nla.zapier.com/api/v1/dynamic/exposed/{action_id}/execute/"
class ZapierToolSpec(BaseToolSpec):
"""Zapier tool spec."""
spec_functions =... | llama_index/llama-index-integrations/tools/llama-index-tools-zapier/llama_index/tools/zapier/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-zapier/llama_index/tools/zapier/base.py",
"repo_id": "llama_index",
"token_count": 1114
} | 1,506 |
[
{
"sender_id": -1111111,
"text": "Hello, world!",
"date": "2023-05-15T19:30:49+00:00",
"message.id": 1785,
"is_reply": false,
"reply_to_id": null
},
{
"sender_id": -1111111,
"text": "Telegram is the best!",
"date": "2023-05-08T20:17:10+00:00",
"message.id": 1784,
"is_... | langchain/libs/community/tests/unit_tests/document_loaders/test_docs/telegram_channel.json/0 | {
"file_path": "langchain/libs/community/tests/unit_tests/document_loaders/test_docs/telegram_channel.json",
"repo_id": "langchain",
"token_count": 379
} | 390 |
"""
coding=utf-8
Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal
Adapted From Facebook Inc, Detectron2
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/examples/research_projects/visual_bert/processing_image.py/0 | {
"file_path": "transformers/examples/research_projects/visual_bert/processing_image.py",
"repo_id": "transformers",
"token_count": 2793
} | 605 |
from llama_index.readers.file.flat.base import FlatReader
__all__ = ["FlatReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/flat/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/flat/__init__.py",
"repo_id": "llama_index",
"token_count": 29
} | 1,360 |
import { WebBrowser } from "langchain/tools/webbrowser";
import { ChatOpenAI, OpenAIEmbeddings } from "@langchain/openai";
export async function run() {
// this will not work with Azure OpenAI API yet
// Azure OpenAI API does not support embedding with multiple inputs yet
// Too many inputs. The max number of in... | langchainjs/examples/src/tools/webbrowser.ts/0 | {
"file_path": "langchainjs/examples/src/tools/webbrowser.ts",
"repo_id": "langchainjs",
"token_count": 665
} | 851 |
# coding=utf-8
# Copyright 2023 Alibaba Research and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | transformers/src/transformers/models/mgp_str/modeling_mgp_str.py/0 | {
"file_path": "transformers/src/transformers/models/mgp_str/modeling_mgp_str.py",
"repo_id": "transformers",
"token_count": 9057
} | 640 |
# coding=utf-8
# Copyright 2023 Bo Peng and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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... | transformers/src/transformers/models/rwkv/modeling_rwkv.py/0 | {
"file_path": "transformers/src/transformers/models/rwkv/modeling_rwkv.py",
"repo_id": "transformers",
"token_count": 16622
} | 676 |
import type { LaunchOptions, Page, Browser, Response } from "playwright";
import { Document } from "@langchain/core/documents";
import { BaseDocumentLoader } from "../base.js";
import type { DocumentLoader } from "../base.js";
export { Page, Browser, Response };
export type PlaywrightGotoOptions = {
referer?: stri... | langchainjs/langchain/src/document_loaders/web/playwright.ts/0 | {
"file_path": "langchainjs/langchain/src/document_loaders/web/playwright.ts",
"repo_id": "langchainjs",
"token_count": 1048
} | 885 |
export * from "@langchain/community/stores/message/in_memory";
| langchainjs/langchain/src/stores/message/in_memory.ts/0 | {
"file_path": "langchainjs/langchain/src/stores/message/in_memory.ts",
"repo_id": "langchainjs",
"token_count": 18
} | 991 |
use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};
use crate::token::PyToken;
use crate::trainers::PyTrainer;
use pyo3::exceptions;
use pyo3::prelude::*;
use pyo3::types::*;
use serde::{Deserialize, Serialize};
use tk::models::bpe::{BpeBuilder, Merges, Vocab, BPE};
use tk::mod... | tokenizers/bindings/python/src/models.rs/0 | {
"file_path": "tokenizers/bindings/python/src/models.rs",
"repo_id": "tokenizers",
"token_count": 14445
} | 465 |
// 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/storage/InsertData.cpp/0 | {
"file_path": "milvus/internal/core/src/storage/InsertData.cpp",
"repo_id": "milvus",
"token_count": 1489
} | 1,756 |
import logging
from typing import Iterator, List, Optional
from langchain_core.documents import Document
from langchain_community.document_loaders.base import BaseLoader
logger = logging.getLogger(__name__)
class CouchbaseLoader(BaseLoader):
"""Load documents from `Couchbase`.
Each document represents one... | langchain/libs/community/langchain_community/document_loaders/couchbase.py/0 | {
"file_path": "langchain/libs/community/langchain_community/document_loaders/couchbase.py",
"repo_id": "langchain",
"token_count": 1452
} | 229 |
<jupyter_start><jupyter_text>Weaviate Vector Store - Hybrid Search If you're opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.<jupyter_code>%pip install llama-index-vector-stores-weaviate
!pip install llama-index
import logging
import sys
logging.basicConfig(stream=sys.stdout, level=logg... | llama_index/docs/examples/vector_stores/WeaviateIndexDemo-Hybrid.ipynb/0 | {
"file_path": "llama_index/docs/examples/vector_stores/WeaviateIndexDemo-Hybrid.ipynb",
"repo_id": "llama_index",
"token_count": 1059
} | 1,170 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.