text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
python_sources()
| llama_index/llama-index-integrations/graph_stores/llama-index-graph-stores-kuzu/llama_index/graph_stores/kuzu/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/graph_stores/llama-index-graph-stores-kuzu/llama_index/graph_stores/kuzu/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,241 |
/* eslint-disable no-process-env */
/* eslint-disable no-promise-executor-return */
import { RedisClientType, createClient } from "redis";
import { v4 as uuidv4 } from "uuid";
import { test, expect } from "@jest/globals";
import { faker } from "@faker-js/faker";
import { Document } from "@langchain/core/documents";
im... | langchainjs/libs/langchain-redis/src/tests/vectorstores.int.test.ts/0 | {
"file_path": "langchainjs/libs/langchain-redis/src/tests/vectorstores.int.test.ts",
"repo_id": "langchainjs",
"token_count": 822
} | 1,031 |
# 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_seer_10b_to_pytorch.py/0 | {
"file_path": "transformers/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py",
"repo_id": "transformers",
"token_count": 4917
} | 673 |
"""Test Vald functionality."""
import time
from typing import List, Optional
from langchain_core.documents import Document
from langchain_community.vectorstores import Vald
from tests.integration_tests.vectorstores.fake_embeddings import (
FakeEmbeddings,
fake_texts,
)
"""
To run, you should have a Vald clus... | langchain/libs/community/tests/integration_tests/vectorstores/test_vald.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/vectorstores/test_vald.py",
"repo_id": "langchain",
"token_count": 2066
} | 381 |
// 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/querynodev2/segments/segment_loader_test.go/0 | {
"file_path": "milvus/internal/querynodev2/segments/segment_loader_test.go",
"repo_id": "milvus",
"token_count": 10718
} | 1,845 |
#!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py/0 | {
"file_path": "transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py",
"repo_id": "transformers",
"token_count": 8360
} | 563 |
Node Parser
===========
.. automodapi:: llama_index.core.node_parser
:no-inheritance-diagram:
.. autopydantic_model:: llama_index.core.extractors.SummaryExtractor
.. autopydantic_model:: llama_index.core.extractors.QuestionsAnsweredExtractor
.. autopydantic_model:: llama_index.core.extractors.TitleExtractor
... | llama_index/docs/api_reference/service_context/node_parser.rst/0 | {
"file_path": "llama_index/docs/api_reference/service_context/node_parser.rst",
"repo_id": "llama_index",
"token_count": 185
} | 1,041 |
import {
ChatGoogleBase,
ChatGoogleBaseInput,
GoogleAbstractedClient,
GoogleBaseLLMInput,
} from "@langchain/google-common";
import { WebGoogleAuth, WebGoogleAuthOptions } from "./auth.js";
/**
* Input to chat model class.
*/
export interface ChatGoogleInput
extends ChatGoogleBaseInput<WebGoogleAuthOptions... | langchainjs/libs/langchain-google-webauth/src/chat_models.ts/0 | {
"file_path": "langchainjs/libs/langchain-google-webauth/src/chat_models.ts",
"repo_id": "langchainjs",
"token_count": 241
} | 1,008 |
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/de/add_tensorflow_model.md/0 | {
"file_path": "transformers/docs/source/de/add_tensorflow_model.md",
"repo_id": "transformers",
"token_count": 9918
} | 443 |
<jupyter_start><jupyter_text>MongoDB [MongoDB](https://www.mongodb.com/) is a NoSQL , document-oriented database that supports JSON-like documents with a dynamic schema. Overview The MongoDB Document Loader returns a list of Langchain Documents from a MongoDB database.The Loader requires the following parameters:* M... | langchain/docs/docs/integrations/document_loaders/mongodb.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/mongodb.ipynb",
"repo_id": "langchain",
"token_count": 317
} | 111 |
export * from "./vectorstores.js";
| langchainjs/libs/langchain-pinecone/src/index.ts/0 | {
"file_path": "langchainjs/libs/langchain-pinecone/src/index.ts",
"repo_id": "langchainjs",
"token_count": 11
} | 1,107 |
/* eslint-disable no-promise-executor-return */
/* eslint-disable @typescript-eslint/no-explicit-any */
// yarn test:single src/experimental/masking/tests/masking.test.ts
import { jest } from "@jest/globals";
import {
MaskingParser,
RegexMaskingTransformer,
MaskingTransformer,
} from "../index.js";
describe("Ma... | langchainjs/langchain/src/experimental/masking/tests/masking.test.ts/0 | {
"file_path": "langchainjs/langchain/src/experimental/masking/tests/masking.test.ts",
"repo_id": "langchainjs",
"token_count": 7677
} | 884 |
package segments
import (
"context"
"testing"
"github.com/stretchr/testify/suite"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/proto/internalpb"
"github.com/milvus-io/milvus/internal/proto/segcorepb"
"github.com/milvus-io/milvus/internal/util/funcutil"
)
type I... | milvus/internal/querynodev2/segments/count_reducer_test.go/0 | {
"file_path": "milvus/internal/querynodev2/segments/count_reducer_test.go",
"repo_id": "milvus",
"token_count": 981
} | 1,768 |
from llama_index.core.node_parser.relational.hierarchical import (
HierarchicalNodeParser,
)
from llama_index.core.node_parser.relational.markdown_element import (
MarkdownElementNodeParser,
)
from llama_index.core.node_parser.relational.unstructured_element import (
UnstructuredElementNodeParser,
)
__all_... | llama_index/llama-index-core/llama_index/core/node_parser/relational/__init__.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/node_parser/relational/__init__.py",
"repo_id": "llama_index",
"token_count": 148
} | 1,163 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,384 |
import numpy as np
import PIL
import torch
import torchvision.transforms as T
import torchvision.transforms.functional as TF
from PIL import Image
def preprocess(img, target_image_size=256):
s = min(img.size)
if s < target_image_size:
raise ValueError(f"min dim for image {s} < {target_image_size}")
... | transformers/examples/research_projects/vqgan-clip/img_processing.py/0 | {
"file_path": "transformers/examples/research_projects/vqgan-clip/img_processing.py",
"repo_id": "transformers",
"token_count": 545
} | 547 |
<!---
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 ... | accelerate/README.md/0 | {
"file_path": "accelerate/README.md",
"repo_id": "accelerate",
"token_count": 4397
} | 0 |
import pytest
from llama_index.legacy import (
Document,
ServiceContext,
TreeIndex,
)
from llama_index.legacy.indices.tree.select_leaf_retriever import (
TreeSelectLeafRetriever,
)
from llama_index.legacy.llms import Anthropic
from llama_index.legacy.llms.openai import OpenAI
from llama_index.legacy.que... | llama_index/llama-index-legacy/tests/query_engine/test_retriever_query_engine.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/query_engine/test_retriever_query_engine.py",
"repo_id": "llama_index",
"token_count": 981
} | 1,754 |
package lifetime
import (
"sync"
"github.com/milvus-io/milvus/pkg/util/typeutil"
)
// SafeChan is the utility type combining chan struct{} & sync.Once.
// It provides double close protection internally.
type SafeChan interface {
IsClosed() bool
CloseCh() <-chan struct{}
Close()
}
type safeChan struct {
closed... | milvus/pkg/util/lifetime/safe_chan.go/0 | {
"file_path": "milvus/pkg/util/lifetime/safe_chan.go",
"repo_id": "milvus",
"token_count": 283
} | 2,113 |
dist | langchainjs/libs/create-langchain-integration/.prettierignore/0 | {
"file_path": "langchainjs/libs/create-langchain-integration/.prettierignore",
"repo_id": "langchainjs",
"token_count": 1
} | 968 |
// 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/Meta.h/0 | {
"file_path": "milvus/internal/core/src/index/Meta.h",
"repo_id": "milvus",
"token_count": 1122
} | 1,658 |
# coding=utf-8
# 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 requir... | transformers/tests/models/roformer/test_tokenization_roformer.py/0 | {
"file_path": "transformers/tests/models/roformer/test_tokenization_roformer.py",
"repo_id": "transformers",
"token_count": 1393
} | 820 |
"""Astra DB."""
from typing import Any, List, Optional
from llama_index.core.readers.base import BaseReader
from llama_index.core.schema import Document
class AstraDBReader(BaseReader):
"""Astra DB reader.
Retrieve documents from an Astra DB Instance.
Args:
collection_name (str): collection na... | llama_index/llama-index-integrations/readers/llama-index-readers-astra-db/llama_index/readers/astra_db/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-astra-db/llama_index/readers/astra_db/base.py",
"repo_id": "llama_index",
"token_count": 1074
} | 1,379 |
<script lang="ts">
import type { Message } from "$lib/types/Message";
import { createEventDispatcher, onDestroy, tick } from "svelte";
import CarbonSendAltFilled from "~icons/carbon/send-alt-filled";
import CarbonExport from "~icons/carbon/export";
import CarbonStopFilledAlt from "~icons/carbon/stop-filled-alt";
... | chat-ui/src/lib/components/chat/ChatWindow.svelte/0 | {
"file_path": "chat-ui/src/lib/components/chat/ChatWindow.svelte",
"repo_id": "chat-ui",
"token_count": 5168
} | 103 |
package proxy
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
"github.com/milvus-io/milvus/internal/mocks"
"github.com/milvus-io/milvus/internal/types"
)
func genShardLeaderInfo(channel string, leaderIDs []UniqueID) map[string][]nodeInfo {
leaders := make(map[string][]nodeInfo)
nodeInfos :=... | milvus/internal/proxy/shard_client_test.go/0 | {
"file_path": "milvus/internal/proxy/shard_client_test.go",
"repo_id": "milvus",
"token_count": 1111
} | 1,966 |
"""Module contains typedefs that are used with runnables."""
from __future__ import annotations
from typing import Any, Dict, List
from typing_extensions import NotRequired, TypedDict
class EventData(TypedDict, total=False):
"""Data associated with a streaming event."""
input: Any
"""The input passed t... | langchain/libs/core/langchain_core/runnables/schema.py/0 | {
"file_path": "langchain/libs/core/langchain_core/runnables/schema.py",
"repo_id": "langchain",
"token_count": 1798
} | 430 |
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/tests/pipelines/test_pipelines_zero_shot_object_detection.py/0 | {
"file_path": "transformers/tests/pipelines/test_pipelines_zero_shot_object_detection.py",
"repo_id": "transformers",
"token_count": 5064
} | 832 |
# Copyright 2024 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | diffusers/src/diffusers/commands/fp16_safetensors.py/0 | {
"file_path": "diffusers/src/diffusers/commands/fp16_safetensors.py",
"repo_id": "diffusers",
"token_count": 2248
} | 226 |
import { FakeStreamingLLM } from "../../utils/testing/index.js";
import { XMLOutputParser } from "../xml.js";
const XML_EXAMPLE = `<?xml version="1.0" encoding="UTF-8"?>
<userProfile>
<userID>12345</userID>
<email>john.doe@example.com</email>
<roles>
<role>Admin</role>
<role>User</role>
</roles>
<pre... | langchainjs/langchain-core/src/output_parsers/tests/xml.test.ts/0 | {
"file_path": "langchainjs/langchain-core/src/output_parsers/tests/xml.test.ts",
"repo_id": "langchainjs",
"token_count": 875
} | 862 |
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
import { BaseLLMOutputParser } from "@langchain/core/output_parsers";
import { ChainValues } from "@langchain/core/utils/types";
import { ChatGeneration, Generation, RUN_KEY } from "@langchain/core/outputs";
import { BasePromptTempl... | langchainjs/langchain/src/evaluation/comparison/pairwise.ts/0 | {
"file_path": "langchainjs/langchain/src/evaluation/comparison/pairwise.ts",
"repo_id": "langchainjs",
"token_count": 2852
} | 916 |
#[macro_use]
extern crate criterion;
use std::fs::File;
use std::io::{BufRead, BufReader};
use std::path::Path;
use std::time::{Duration, Instant};
use criterion::black_box;
use criterion::Criterion;
use tokenizers::processors::template::TemplateProcessing;
use tokenizers::{EncodeInput, Encoding, PostProcessor, Token... | tokenizers/tokenizers/benches/layout_benchmark.rs/0 | {
"file_path": "tokenizers/tokenizers/benches/layout_benchmark.rs",
"repo_id": "tokenizers",
"token_count": 1158
} | 449 |
// Code generated by mockery v2.32.4. DO NOT EDIT.
package datacoord
import mock "github.com/stretchr/testify/mock"
// MockTriggerManager is an autogenerated mock type for the TriggerManager type
type MockTriggerManager struct {
mock.Mock
}
type MockTriggerManager_Expecter struct {
mock *mock.Mock
}
func (_m *Mo... | milvus/internal/datacoord/mock_trigger_manager.go/0 | {
"file_path": "milvus/internal/datacoord/mock_trigger_manager.go",
"repo_id": "milvus",
"token_count": 779
} | 1,688 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/querycoordv2/checkers/leader_checker.go/0 | {
"file_path": "milvus/internal/querycoordv2/checkers/leader_checker.go",
"repo_id": "milvus",
"token_count": 2619
} | 1,757 |
# Define a function that check last file modification
function(Check_Last_Modify cache_check_lists_file_path working_dir last_modified_commit_id)
if(EXISTS "${working_dir}")
if(EXISTS "${cache_check_lists_file_path}")
set(GIT_LOG_SKIP_NUM 0)
set(_MATCH_ALL ON CACHE BOOL "Match all")
... | milvus/internal/core/cmake/BuildUtils.cmake/0 | {
"file_path": "milvus/internal/core/cmake/BuildUtils.cmake",
"repo_id": "milvus",
"token_count": 5251
} | 1,729 |
## Textual Inversion fine-tuning example
[Textual inversion](https://arxiv.org/abs/2208.01618) is a method to personalize text2image models like stable diffusion on your own images using just 3-5 examples.
The `textual_inversion.py` script shows how to implement the training procedure and adapt it for stable diffusion... | diffusers/examples/research_projects/intel_opts/textual_inversion/README.md/0 | {
"file_path": "diffusers/examples/research_projects/intel_opts/textual_inversion/README.md",
"repo_id": "diffusers",
"token_count": 1014
} | 215 |
# coding=utf-8
# 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 r... | transformers/src/transformers/models/depth_anything/configuration_depth_anything.py/0 | {
"file_path": "transformers/src/transformers/models/depth_anything/configuration_depth_anything.py",
"repo_id": "transformers",
"token_count": 2443
} | 660 |
import os
import tarfile
import warnings
import numpy as np
import pandas as pd
import pyarrow as pa
import pytest
from datasets import Dataset, Features, Image, Sequence, Value, concatenate_datasets, load_dataset
from datasets.features.image import encode_np_array, image_to_bytes
from ..utils import require_pil
@... | datasets/tests/features/test_image.py/0 | {
"file_path": "datasets/tests/features/test_image.py",
"repo_id": "datasets",
"token_count": 11376
} | 144 |
import gymnasium as gym
import numpy as np
from collections import deque
from PIL import Image
from multiprocessing import Process, Pipe
# atari_wrappers.py
class NoopResetEnv(gym.Wrapper):
def __init__(self, env, noop_max=30):
"""Sample initial states by taking random number of no-ops on reset.
No... | candle/candle-examples/examples/reinforcement-learning/atari_wrappers.py/0 | {
"file_path": "candle/candle-examples/examples/reinforcement-learning/atari_wrappers.py",
"repo_id": "candle",
"token_count": 4740
} | 45 |
# 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 law or ag... | milvus/Makefile/0 | {
"file_path": "milvus/Makefile",
"repo_id": "milvus",
"token_count": 11799
} | 1,690 |
# Copyright 2023 metric-space, 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 require... | trl/tests/test_ddpo_trainer.py/0 | {
"file_path": "trl/tests/test_ddpo_trainer.py",
"repo_id": "trl",
"token_count": 1784
} | 861 |
from langchain_community.retrievers.milvus import MilvusRetreiver, MilvusRetriever
__all__ = ["MilvusRetriever", "MilvusRetreiver"]
| langchain/libs/langchain/langchain/retrievers/milvus.py/0 | {
"file_path": "langchain/libs/langchain/langchain/retrievers/milvus.py",
"repo_id": "langchain",
"token_count": 50
} | 582 |
from llama_index.vector_stores.dynamodb.base import DynamoDBVectorStore
__all__ = ["DynamoDBVectorStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-dynamodb/llama_index/vector_stores/dynamodb/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-dynamodb/llama_index/vector_stores/dynamodb/__init__.py",
"repo_id": "llama_index",
"token_count": 36
} | 1,460 |
# Table Classes
Each `Dataset` object is backed by a PyArrow Table.
A Table can be loaded from either the disk (memory mapped) or in memory.
Several Table types are available, and they all inherit from [`table.Table`].
## Table
[[autodoc]] datasets.table.Table
- validate
- equals
- to_batches
- to_py... | datasets/docs/source/package_reference/table_classes.mdx/0 | {
"file_path": "datasets/docs/source/package_reference/table_classes.mdx",
"repo_id": "datasets",
"token_count": 1029
} | 123 |
Input sequences
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These types represent all the different kinds of sequence that can be used as input of a Tokenizer.
Globally, any sequence can be either a string or a list of strings, according to the operating
mode of... | tokenizers/docs/source/api/python.inc/0 | {
"file_path": "tokenizers/docs/source/api/python.inc",
"repo_id": "tokenizers",
"token_count": 562
} | 451 |
// 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/bulkinsert/bulkinsert_test.go/0 | {
"file_path": "milvus/tests/integration/bulkinsert/bulkinsert_test.go",
"repo_id": "milvus",
"token_count": 3642
} | 2,099 |
from langchain_community.llms.aviary import (
Aviary,
)
__all__ = ["Aviary"]
| langchain/libs/langchain/langchain/llms/aviary.py/0 | {
"file_path": "langchain/libs/langchain/langchain/llms/aviary.py",
"repo_id": "langchain",
"token_count": 33
} | 517 |
# coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | transformers/tests/generation/test_stopping_criteria.py/0 | {
"file_path": "transformers/tests/generation/test_stopping_criteria.py",
"repo_id": "transformers",
"token_count": 1434
} | 795 |
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/ja/big_models.md/0 | {
"file_path": "transformers/docs/source/ja/big_models.md",
"repo_id": "transformers",
"token_count": 3070
} | 535 |
python_sources()
| llama_index/llama-index-core/llama_index/core/playground/BUILD/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/playground/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,132 |
from llama_index.readers.stripe_docs.base import StripeDocsReader
__all__ = ["StripeDocsReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-stripe-docs/llama_index/readers/stripe_docs/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-stripe-docs/llama_index/readers/stripe_docs/__init__.py",
"repo_id": "llama_index",
"token_count": 36
} | 1,386 |
# coding=utf-8
# Copyright 2022 The OFA-Sys Team Authors and 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/... | transformers/src/transformers/models/chinese_clip/modeling_chinese_clip.py/0 | {
"file_path": "transformers/src/transformers/models/chinese_clip/modeling_chinese_clip.py",
"repo_id": "transformers",
"token_count": 30797
} | 646 |
# LlamaIndex Readers Integration: Jaguar
| llama_index/llama-index-integrations/readers/llama-index-readers-jaguar/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-jaguar/README.md",
"repo_id": "llama_index",
"token_count": 9
} | 1,318 |
import { base } from "$app/paths";
import { authCondition, requiresUser } from "$lib/server/auth";
import { collections } from "$lib/server/database";
import { fail, type Actions, redirect } from "@sveltejs/kit";
import { ObjectId } from "mongodb";
import { z } from "zod";
import { sha256 } from "$lib/utils/sha256";
i... | chat-ui/src/routes/settings/assistants/new/+page.server.ts/0 | {
"file_path": "chat-ui/src/routes/settings/assistants/new/+page.server.ts",
"repo_id": "chat-ui",
"token_count": 1200
} | 106 |
<jupyter_start><jupyter_text>Using agentsThis is an agent specifically optimized for doing retrieval when necessary and also holding a conversation.To start, we will set up the retriever we want to use, and then turn it into a retriever tool. Next, we will use the high level constructor for this type of agent. Finally,... | langchainjs/docs/core_docs/docs/use_cases/question_answering/conversational_retrieval_agents.ipynb/0 | {
"file_path": "langchainjs/docs/core_docs/docs/use_cases/question_answering/conversational_retrieval_agents.ipynb",
"repo_id": "langchainjs",
"token_count": 1407
} | 743 |
# coding=utf-8
# Copyright 2019-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 a... | transformers/tests/models/auto/test_configuration_auto.py/0 | {
"file_path": "transformers/tests/models/auto/test_configuration_auto.py",
"repo_id": "transformers",
"token_count": 2609
} | 729 |
from langchain import chat_models
from tests.unit_tests import assert_all_importable
EXPECTED_ALL = [
"ChatOpenAI",
"BedrockChat",
"AzureChatOpenAI",
"FakeListChatModel",
"PromptLayerChatOpenAI",
"ChatEverlyAI",
"ChatAnthropic",
"ChatCohere",
"ChatDatabricks",
"ChatGooglePalm",
... | langchain/libs/langchain/tests/unit_tests/chat_models/test_imports.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/chat_models/test_imports.py",
"repo_id": "langchain",
"token_count": 398
} | 598 |
"""Wikipedia API toolkit."""
| langchain/libs/community/langchain_community/tools/wikipedia/__init__.py/0 | {
"file_path": "langchain/libs/community/langchain_community/tools/wikipedia/__init__.py",
"repo_id": "langchain",
"token_count": 8
} | 323 |
// 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/util_index.go/0 | {
"file_path": "milvus/tests/integration/util_index.go",
"repo_id": "milvus",
"token_count": 2168
} | 2,015 |
"""
Contains only Auth abstractions, no implementations.
"""
import base64
from functools import partial
import logging
from abc import ABC, abstractmethod
from enum import Enum
from typing import (
Any,
Callable,
List,
Optional,
Dict,
TypeVar,
Tuple,
Generic,
Union,
)
from dataclass... | chroma/chromadb/auth/__init__.py/0 | {
"file_path": "chroma/chromadb/auth/__init__.py",
"repo_id": "chroma",
"token_count": 4634
} | 12 |
"""Tree-structured Index Data Structures."""
# indices
from llama_index.core.indices.tree.all_leaf_retriever import TreeAllLeafRetriever
from llama_index.core.indices.tree.base import GPTTreeIndex, TreeIndex
from llama_index.core.indices.tree.select_leaf_embedding_retriever import (
TreeSelectLeafEmbeddingRetrieve... | llama_index/llama-index-core/llama_index/core/indices/tree/__init__.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/indices/tree/__init__.py",
"repo_id": "llama_index",
"token_count": 261
} | 1,195 |
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The 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 cop... | transformers/src/transformers/models/bert/modeling_tf_bert.py/0 | {
"file_path": "transformers/src/transformers/models/bert/modeling_tf_bert.py",
"repo_id": "transformers",
"token_count": 40992
} | 648 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/xml/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/xml/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,320 |
python_sources()
| llama_index/llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/callbacks/llama-index-callbacks-promptlayer/llama_index/callbacks/promptlayer/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,170 |
# How Proxy Reduces the Multiple Search Results?
## Search Results Organized format
For a specified Search request, with nq = 2 and topk = 10, Proxy receives 4 search results from query nodes.
Each Search Result is nq * topk two-dimensional structure, as the illustration below. The result indicates that the user inp... | milvus/docs/developer_guides/proxy-reduce.md/0 | {
"file_path": "milvus/docs/developer_guides/proxy-reduce.md",
"repo_id": "milvus",
"token_count": 744
} | 1,857 |
<jupyter_start><jupyter_text>Google JobsThis notebook goes over how to use the Google Jobs Tool to fetch current Job postings.First, you need to sign up for an `SerpApi key` key at: https://serpapi.com/users/sign_up.Then you must install `google-search-results` with the command: `pip install google-search-results`Th... | langchain/docs/docs/integrations/tools/google_jobs.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/tools/google_jobs.ipynb",
"repo_id": "langchain",
"token_count": 835
} | 180 |
from typing import Dict, Tuple
# First value is the value that it is serialized as
# Second value is the path to load it from
SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
("langchain", "schema", "messages", "AIMessage"): (
"langchain_core",
"messages",
"ai",
"AIM... | langchain/libs/core/langchain_core/load/mapping.py/0 | {
"file_path": "langchain/libs/core/langchain_core/load/mapping.py",
"repo_id": "langchain",
"token_count": 12018
} | 390 |
// 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/pipeline/node.go/0 | {
"file_path": "milvus/internal/util/pipeline/node.go",
"repo_id": "milvus",
"token_count": 1022
} | 1,808 |
"""Functionality for loading chains."""
import json
from pathlib import Path
from typing import Any, Union
import yaml
from langchain_community.llms.loading import load_llm, load_llm_from_config
from langchain_core.prompts.loading import (
_load_output_parser,
load_prompt,
load_prompt_from_config,
)
from l... | langchain/libs/langchain/langchain/chains/loading.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/loading.py",
"repo_id": "langchain",
"token_count": 10533
} | 487 |
<jupyter_start><jupyter_text>Discord ReaderDemonstrates our Discord data connector If you're opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.<jupyter_code>%pip install llama-index-readers-discord
!pip install llama-index
import logging
import sys
logging.basicConfig(stream=sys.stdout, l... | llama_index/docs/examples/data_connectors/DiscordDemo.ipynb/0 | {
"file_path": "llama_index/docs/examples/data_connectors/DiscordDemo.ipynb",
"repo_id": "llama_index",
"token_count": 408
} | 1,052 |
#!/bin/bash
set -e
release=${1:-"milvs-chaos"}
ns=${2:-"chaos-testing"}
bash uninstall_milvus.sh ${release} ${ns}|| true
echo "insatll cluster"
helm install --wait --debug --timeout 600s ${RELEASE_NAME:-$release} milvus/milvus \
--set image.all.repository=${REPOSITORY:-"milvusdb/milvus"} \... | milvus/tests/python_client/chaos/scripts/install_milvus_cluster.sh/0 | {
"file_path": "milvus/tests/python_client/chaos/scripts/install_milvus_cluster.sh",
"repo_id": "milvus",
"token_count": 276
} | 1,962 |
"""Schemas for the LangSmith API."""
from __future__ import annotations
from datetime import datetime, timedelta, timezone
from enum import Enum
from typing import (
Any,
Dict,
List,
Optional,
Protocol,
Union,
runtime_checkable,
)
from uuid import UUID
from typing_extensions import TypedD... | langsmith-sdk/python/langsmith/schemas.py/0 | {
"file_path": "langsmith-sdk/python/langsmith/schemas.py",
"repo_id": "langsmith-sdk",
"token_count": 6115
} | 1,106 |
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | milvus/internal/core/src/query/SearchOnSealed.cpp/0 | {
"file_path": "milvus/internal/core/src/query/SearchOnSealed.cpp",
"repo_id": "milvus",
"token_count": 1961
} | 1,761 |
import { BaseOutputParser } from "./base.js";
import {
type BaseMessage,
isBaseMessage,
isBaseMessageChunk,
} from "../messages/index.js";
import type { BaseCallbackConfig } from "../callbacks/manager.js";
import {
type Generation,
type ChatGeneration,
GenerationChunk,
ChatGenerationChunk,
} from "../outp... | langchainjs/langchain-core/src/output_parsers/transform.ts/0 | {
"file_path": "langchainjs/langchain-core/src/output_parsers/transform.ts",
"repo_id": "langchainjs",
"token_count": 1556
} | 835 |
#!/usr/bin/env python
# coding=utf-8
# 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/LI... | diffusers/examples/textual_inversion/textual_inversion.py/0 | {
"file_path": "diffusers/examples/textual_inversion/textual_inversion.py",
"repo_id": "diffusers",
"token_count": 17109
} | 223 |
"""Test Anthropic API wrapper."""
from typing import List
from langchain_core.callbacks import (
CallbackManager,
)
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage
from langchain_core.outputs import ChatGeneration, LLMResult
from langchain_community.chat_models.litellm import ChatLiteLLM
... | langchain/libs/community/tests/integration_tests/chat_models/test_litellm.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/chat_models/test_litellm.py",
"repo_id": "langchain",
"token_count": 727
} | 319 |
from langchain_community.utilities.gitlab import GitLabAPIWrapper
__all__ = ["GitLabAPIWrapper"]
| langchain/libs/langchain/langchain/utilities/gitlab.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/gitlab.py",
"repo_id": "langchain",
"token_count": 32
} | 592 |
from abc import abstractmethod
from typing import Callable, Optional, Sequence
from chromadb.types import (
SubmitEmbeddingRecord,
EmbeddingRecord,
SeqId,
Vector,
ScalarEncoding,
)
from chromadb.config import Component
from uuid import UUID
import array
def encode_vector(vector: Vector, encoding: ... | chroma/chromadb/ingest/__init__.py/0 | {
"file_path": "chroma/chromadb/ingest/__init__.py",
"repo_id": "chroma",
"token_count": 1590
} | 19 |
import json
import re
from typing import Type, TypeVar
import yaml
from langchain_core.exceptions import OutputParserException
from langchain_core.output_parsers import BaseOutputParser
from langchain_core.pydantic_v1 import BaseModel, ValidationError
from langchain.output_parsers.format_instructions import YAML_FORM... | langchain/libs/langchain/langchain/output_parsers/yaml.py/0 | {
"file_path": "langchain/libs/langchain/langchain/output_parsers/yaml.py",
"repo_id": "langchain",
"token_count": 927
} | 530 |
# Creating a desktop Tauri app
| candle/candle-book/src/apps/desktop.md/0 | {
"file_path": "candle/candle-book/src/apps/desktop.md",
"repo_id": "candle",
"token_count": 8
} | 32 |
# Safetensors
Safetensors is a model serialization format for deep learning models. It is [faster](https://huggingface.co/docs/safetensors/speed) and safer compared to other serialization formats like pickle (which is used under the hood in many deep learning libraries).
TGI depends on safetensors format mainly to e... | text-generation-inference/docs/source/conceptual/safetensors.md/0 | {
"file_path": "text-generation-inference/docs/source/conceptual/safetensors.md",
"repo_id": "text-generation-inference",
"token_count": 185
} | 420 |
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name="exllama_kernels",
ext_modules=[
CUDAExtension(
name="exllama_kernels",
sources=[
"exllama_kernels/exllama_ext.cpp",
"exllama_kernels/cuda... | text-generation-inference/server/exllama_kernels/setup.py/0 | {
"file_path": "text-generation-inference/server/exllama_kernels/setup.py",
"repo_id": "text-generation-inference",
"token_count": 319
} | 438 |
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/en/model_doc/efficientnet.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/efficientnet.md",
"repo_id": "transformers",
"token_count": 725
} | 489 |
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js";
/* #__PURE__ */ logVersion010MigrationWarning({
oldEntrypointName: "vectorstores/neo4j_vector",
});
export * from "@langchain/community/vectorstores/neo4j_vector";
| langchainjs/langchain/src/vectorstores/neo4j_vector.ts/0 | {
"file_path": "langchainjs/langchain/src/vectorstores/neo4j_vector.ts",
"repo_id": "langchainjs",
"token_count": 80
} | 965 |
from llama_index.core.storage.docstore.keyval_docstore import KVDocumentStore
from llama_index.storage.docstore.firestore import FirestoreDocumentStore
def test_class():
names_of_base_classes = [b.__name__ for b in FirestoreDocumentStore.__mro__]
assert KVDocumentStore.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/tests/test_storage_docstore_firestore.py/0 | {
"file_path": "llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-firestore/tests/test_storage_docstore_firestore.py",
"repo_id": "llama_index",
"token_count": 102
} | 1,413 |
"""Optimization related classes and functions."""
import logging
from typing import Any, Dict, List, Optional
from llama_index.legacy.bridge.pydantic import Field, PrivateAttr
from llama_index.legacy.postprocessor.types import BaseNodePostprocessor
from llama_index.legacy.schema import MetadataMode, NodeWithScore, Qu... | llama_index/llama-index-legacy/llama_index/legacy/postprocessor/longllmlingua.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/postprocessor/longllmlingua.py",
"repo_id": "llama_index",
"token_count": 1642
} | 1,693 |
use napi::bindgen_prelude::*;
use napi_derive::napi;
use tokenizers as tk;
use tokenizers::Encoding;
use crate::encoding::JsEncoding;
#[napi]
pub fn slice(s: String, begin_index: Option<i32>, end_index: Option<i32>) -> Result<String> {
let len = s.chars().count();
let get_index = |x: i32| -> usize {
if x >= ... | tokenizers/bindings/node/src/utils.rs/0 | {
"file_path": "tokenizers/bindings/node/src/utils.rs",
"repo_id": "tokenizers",
"token_count": 503
} | 438 |
python_tests()
| llama_index/llama-index-integrations/tools/llama-index-tools-vector-db/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-vector-db/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,499 |
# Copyright 2022 The Music Spectrogram Diffusion Authors.
# 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... | diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py",
"repo_id": "diffusers",
"token_count": 5001
} | 223 |
from abc import ABC, abstractmethod
from contextlib import asynccontextmanager, contextmanager
from datetime import datetime, timezone
from typing import (
Any,
AsyncGenerator,
Generator,
Generic,
Mapping,
Optional,
Sequence,
TypeVar,
)
from typing_extensions import Self
from langgraph... | langgraph/langgraph/channels/base.py/0 | {
"file_path": "langgraph/langgraph/channels/base.py",
"repo_id": "langgraph",
"token_count": 1411
} | 1,032 |
# coding=utf-8
# Copyright 2021, The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | transformers/tests/models/opt/test_modeling_opt.py/0 | {
"file_path": "transformers/tests/models/opt/test_modeling_opt.py",
"repo_id": "transformers",
"token_count": 10425
} | 803 |
import { HNSWLib } from "@langchain/community/vectorstores/hnswlib";
import { OpenAIEmbeddings, ChatOpenAI } from "@langchain/openai";
import { RecursiveCharacterTextSplitter } from "langchain/text_splitter";
import * as fs from "fs";
import { formatDocumentsAsString } from "langchain/util/document";
import {
Runnabl... | langchainjs/examples/src/chains/retrieval_qa.ts/0 | {
"file_path": "langchainjs/examples/src/chains/retrieval_qa.ts",
"repo_id": "langchainjs",
"token_count": 593
} | 803 |
use crate::benchmarks::{BenchDevice, BenchDeviceHandler};
use candle_core::{DType, Device, Tensor};
use criterion::{black_box, criterion_group, Criterion, Throughput};
use std::time::Instant;
fn rand_uniform(a: &Tensor) {
a.rand_like(-1.0, 123.0).unwrap();
}
fn rand_normal(a: &Tensor) {
a.randn_like(100.0, 15... | candle/candle-core/benches/benchmarks/random.rs/0 | {
"file_path": "candle/candle-core/benches/benchmarks/random.rs",
"repo_id": "candle",
"token_count": 812
} | 25 |
#include "cuda_kernel.h"
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
__global__ void index_max_cuda_kernel(
float *index_vals, // [batch_size, 32, num_block... | transformers/src/transformers/kernels/mra/cuda_kernel.cu/0 | {
"file_path": "transformers/src/transformers/kernels/mra/cuda_kernel.cu",
"repo_id": "transformers",
"token_count": 5563
} | 637 |
python_sources()
| llama_index/llama-index-integrations/llms/llama-index-llms-anthropic/llama_index/llms/anthropic/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-anthropic/llama_index/llms/anthropic/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,213 |
<jupyter_start><jupyter_text>SurrealDB>[SurrealDB](https://surrealdb.com/) is an end-to-end cloud-native database designed for modern applications, including web, mobile, serverless, Jamstack, backend, and traditional applications. With SurrealDB, you can simplify your database and API infrastructure, reduce developmen... | langchain/docs/docs/integrations/vectorstores/surrealdb.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/vectorstores/surrealdb.ipynb",
"repo_id": "langchain",
"token_count": 1367
} | 192 |
# 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/opt/convert_opt_original_pytorch_checkpoint_to_pytorch.py/0 | {
"file_path": "transformers/src/transformers/models/opt/convert_opt_original_pytorch_checkpoint_to_pytorch.py",
"repo_id": "transformers",
"token_count": 1577
} | 673 |
---
sidebar_class_name: node-only
---
import CodeBlock from "@theme/CodeBlock";
# ClickHouse
:::tip Compatibility
Only available on Node.js.
:::
[ClickHouse](https://clickhouse.com/) is a robust and open-source columnar database that is used for handling analytical queries and efficient storage, ClickHouse is desig... | langchainjs/docs/core_docs/docs/integrations/vectorstores/clickhouse.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/vectorstores/clickhouse.mdx",
"repo_id": "langchainjs",
"token_count": 410
} | 719 |
from pathlib import Path
from typing import List
import pytest
from llama_index.core.indices.list.base import SummaryIndex
from llama_index.core.indices.loading import (
load_index_from_storage,
load_indices_from_storage,
)
from llama_index.core.indices.vector_store.base import VectorStoreIndex
from llama_inde... | llama_index/llama-index-core/tests/indices/test_loading.py/0 | {
"file_path": "llama_index/llama-index-core/tests/indices/test_loading.py",
"repo_id": "llama_index",
"token_count": 1837
} | 1,265 |
# Xata Chat Memory
[Xata](https://xata.io) is a serverless data platform, based on PostgreSQL. It provides a type-safe TypeScript/JavaScript SDK for interacting with your database, and a
UI for managing your data.
With the `XataChatMessageHistory` class, you can use Xata databases for longer-term persistence of chat ... | langchainjs/docs/core_docs/docs/integrations/chat_memory/xata.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/chat_memory/xata.mdx",
"repo_id": "langchainjs",
"token_count": 771
} | 777 |
# LlamaIndex Vector Stores Integration: Txtai
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-txtai/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-txtai/README.md",
"repo_id": "llama_index",
"token_count": 12
} | 1,539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.