text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
from langchain_community.tools.stackexchange.tool import StackExchangeTool
__all__ = ["StackExchangeTool"]
| langchain/libs/langchain/langchain/tools/stackexchange/tool.py/0 | {
"file_path": "langchain/libs/langchain/langchain/tools/stackexchange/tool.py",
"repo_id": "langchain",
"token_count": 33
} | 599 |
<!--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/tutorials/autopipeline.md/0 | {
"file_path": "diffusers/docs/source/en/tutorials/autopipeline.md",
"repo_id": "diffusers",
"token_count": 2761
} | 188 |
<jupyter_start><jupyter_text>Azure Blob Storage Container>[Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction) is Microsoft's object storage solution for the cloud. Blob Storage is optimized for storing massive amounts of unstructured data. Unstructured data is data tha... | langchain/docs/docs/integrations/document_loaders/azure_blob_storage_container.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/azure_blob_storage_container.ipynb",
"repo_id": "langchain",
"token_count": 370
} | 97 |
# Stock Market Data Query Engine Pack
Query and retrieve historical market data for a list of stock tickers. It utilizes Yahoo Finance [(yfinance)](https://pypi.org/project/yfinance/) to fetch historical stock prices.
## CLI Usage
You can download llamapacks directly using `llamaindex-cli`, which comes installed wit... | llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/README.md/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/README.md",
"repo_id": "llama_index",
"token_count": 412
} | 1,729 |
# coding=utf-8
# Copyright 2024 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | diffusers/tests/pipelines/unclip/test_unclip_image_variation.py/0 | {
"file_path": "diffusers/tests/pipelines/unclip/test_unclip_image_variation.py",
"repo_id": "diffusers",
"token_count": 8161
} | 297 |
import json
import os
from typing import Any
from unittest import mock
from langchain_community.document_loaders.nuclia import NucliaLoader
from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
def fakerun(**args: Any) -> Any:
def run(self: Any, **args: Any) -> str:
data = {
... | langchain/libs/community/tests/integration_tests/document_loaders/test_nuclia.py/0 | {
"file_path": "langchain/libs/community/tests/integration_tests/document_loaders/test_nuclia.py",
"repo_id": "langchain",
"token_count": 760
} | 350 |
CREATE TABLE IF NOT EXISTS tenants (
id TEXT PRIMARY KEY,
UNIQUE (id)
);
CREATE TABLE IF NOT EXISTS databases (
id TEXT PRIMARY KEY, -- unique globally
name TEXT NOT NULL, -- unique per tenant
tenant_id TEXT NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
UNIQUE (tenant_id, name) -- Ensure t... | chroma/chromadb/migrations/sysdb/00004-tenants-databases.sqlite.sql/0 | {
"file_path": "chroma/chromadb/migrations/sysdb/00004-tenants-databases.sqlite.sql",
"repo_id": "chroma",
"token_count": 387
} | 17 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/pkg/mq/msgstream/mqwrapper/pulsar/pulsar_consumer_test.go/0 | {
"file_path": "milvus/pkg/mq/msgstream/mqwrapper/pulsar/pulsar_consumer_test.go",
"repo_id": "milvus",
"token_count": 3072
} | 1,818 |
class HelloWorld {
sayHello() {
console.log("Hello World!");
}
}
function main() {
const hello = new HelloWorld();
hello.sayHello();
}
main();
| langchain/libs/community/tests/examples/hello_world.js/0 | {
"file_path": "langchain/libs/community/tests/examples/hello_world.js",
"repo_id": "langchain",
"token_count": 56
} | 337 |
python_tests(
interpreter_constraints=["==3.9.*", "==3.10.*"],
)
| llama_index/llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/evaluation/llama-index-evaluation-tonic-validate/tests/BUILD",
"repo_id": "llama_index",
"token_count": 29
} | 1,327 |
#!/usr/bin/env python3
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | transformers/tests/models/blenderbot/test_tokenization_blenderbot.py/0 | {
"file_path": "transformers/tests/models/blenderbot/test_tokenization_blenderbot.py",
"repo_id": "transformers",
"token_count": 1382
} | 749 |
# 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/src/transformers/models/layoutlmv2/__init__.py/0 | {
"file_path": "transformers/src/transformers/models/layoutlmv2/__init__.py",
"repo_id": "transformers",
"token_count": 1324
} | 677 |
import { Tool } from "@langchain/core/tools";
export interface Headers {
[key: string]: string;
}
/**
* Interface for HTTP request tools. Contains properties for headers and
* maximum output length.
*/
export interface RequestTool {
headers: Headers;
maxOutputLength: number;
}
/**
* Class for making GET re... | langchainjs/langchain/src/tools/requests.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/requests.ts",
"repo_id": "langchainjs",
"token_count": 866
} | 931 |
import { MomentoVectorIndex } from "@langchain/community/vectorstores/momento_vector_index";
// For browser/edge, adjust this to import from "@gomomento/sdk-web";
import {
PreviewVectorIndexClient,
VectorIndexConfigurations,
CredentialProvider,
} from "@gomomento/sdk";
import { OpenAIEmbeddings } from "@langchain... | langchainjs/examples/src/indexes/vector_stores/momento_vector_index/fromTexts.ts/0 | {
"file_path": "langchainjs/examples/src/indexes/vector_stores/momento_vector_index/fromTexts.ts",
"repo_id": "langchainjs",
"token_count": 379
} | 818 |
from .binarizer import MagnitudeBinarizer, ThresholdBinarizer, TopKBinarizer
from .masked_nn import MaskedLinear
| transformers/examples/research_projects/movement-pruning/emmental/modules/__init__.py/0 | {
"file_path": "transformers/examples/research_projects/movement-pruning/emmental/modules/__init__.py",
"repo_id": "transformers",
"token_count": 35
} | 529 |
import torch.nn as nn
from torchvision.models import efficientnet_v2_l, efficientnet_v2_s
from diffusers.configuration_utils import ConfigMixin, register_to_config
from diffusers.models.modeling_utils import ModelMixin
class EfficientNetEncoder(ModelMixin, ConfigMixin):
@register_to_config
def __init__(self,... | diffusers/examples/wuerstchen/text_to_image/modeling_efficient_net_encoder.py/0 | {
"file_path": "diffusers/examples/wuerstchen/text_to_image/modeling_efficient_net_encoder.py",
"repo_id": "diffusers",
"token_count": 374
} | 215 |
-----BEGIN CERTIFICATE-----
MIIDizCCAnOgAwIBAgIUNCeQzjvQkinJwUgQ4quG0opHAL8wDQYJKoZIhvcNAQEL
BQAwYzELMAkGA1UEBhMCQ04xCzAJBgNVBAgMAkdaMQswCQYDVQQHDAJHWjESMBAG
A1UECgwJcm9uZXRoaW5nMRIwEAYDVQQLDAlyb25ldGhpbmcxEjAQBgNVBAMMCWxv
Y2FsaG9zdDAeFw0yMjA1MDEwODU3MzRaFw0zMjA0MjgwODU3MzRaMEkxCzAJBgNV
BAYTAkNOMRIwEAYDVQQKDAlyb25ldGhp... | milvus/configs/cert/client.pem/0 | {
"file_path": "milvus/configs/cert/client.pem",
"repo_id": "milvus",
"token_count": 965
} | 1,635 |
from llama_index.vector_stores.elasticsearch.base import ElasticsearchStore
__all__ = ["ElasticsearchStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/__init__.py",
"repo_id": "llama_index",
"token_count": 32
} | 1,521 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-wikipedia/llama_index/readers/wikipedia/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-wikipedia/llama_index/readers/wikipedia/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,396 |
"""String distance evaluators."""
from langchain.evaluation.string_distance.base import (
PairwiseStringDistanceEvalChain,
StringDistance,
StringDistanceEvalChain,
)
__all__ = [
"PairwiseStringDistanceEvalChain",
"StringDistance",
"StringDistanceEvalChain",
]
| langchain/libs/langchain/langchain/evaluation/string_distance/__init__.py/0 | {
"file_path": "langchain/libs/langchain/langchain/evaluation/string_distance/__init__.py",
"repo_id": "langchain",
"token_count": 97
} | 553 |
# flake8: noqa
TEMPLATE_TOOL_RESPONSE = """TOOL RESPONSE:
---------------------
{observation}
USER'S INPUT
--------------------
Okay, so what is the response to my last comment? If using information obtained from the tools you must mention it explicitly without mentioning the tool names - I have forgotten all TOOL R... | langchain/libs/langchain/langchain/agents/json_chat/prompt.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/json_chat/prompt.py",
"repo_id": "langchain",
"token_count": 139
} | 442 |
from llama_index.vector_stores.dashvector.base import DashVectorStore
__all__ = ["DashVectorStore"]
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-dashvector/llama_index/vector_stores/dashvector/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-dashvector/llama_index/vector_stores/dashvector/__init__.py",
"repo_id": "llama_index",
"token_count": 30
} | 1,455 |
"""KNN Retriever.
Largely based on
https://github.com/karpathy/randomfun/blob/master/knn_vs_svm.ipynb"""
from __future__ import annotations
import concurrent.futures
from typing import Any, List, Optional
import numpy as np
from langchain_core.callbacks import CallbackManagerForRetrieverRun
from langchain_core.docum... | langchain/libs/community/langchain_community/retrievers/knn.py/0 | {
"file_path": "langchain/libs/community/langchain_community/retrievers/knn.py",
"repo_id": "langchain",
"token_count": 1034
} | 273 |
python_sources()
| llama_index/llama-index-cli/llama_index/cli/rag/BUILD/0 | {
"file_path": "llama_index/llama-index-cli/llama_index/cli/rag/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,171 |
"""Experimental LLM wrappers."""
from langchain_experimental.llms.jsonformer_decoder import JsonFormer
from langchain_experimental.llms.llamaapi import ChatLlamaAPI
from langchain_experimental.llms.lmformatenforcer_decoder import LMFormatEnforcer
from langchain_experimental.llms.rellm_decoder import RELLM
__all__ = [... | langchain/libs/experimental/langchain_experimental/llms/__init__.py/0 | {
"file_path": "langchain/libs/experimental/langchain_experimental/llms/__init__.py",
"repo_id": "langchain",
"token_count": 124
} | 444 |
python_sources()
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,556 |
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | transformers/src/transformers/models/deit/image_processing_deit.py/0 | {
"file_path": "transformers/src/transformers/models/deit/image_processing_deit.py",
"repo_id": "transformers",
"token_count": 6426
} | 670 |
[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 = ["SingleStoreVectorStore"]
contains_example = false
import_path = "llama_index.vector_store... | llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-singlestoredb/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-singlestoredb/pyproject.toml",
"repo_id": "llama_index",
"token_count": 657
} | 1,677 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/llms/llama-index-llms-clarifai/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-clarifai/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,292 |
<jupyter_start><jupyter_text>OpenAI Image Generation Agent (DALL-E-3)<jupyter_code>import os
from PIL import Image
from IPython.display import display
## Setting up the Agent
from llama_index.tools.openai.image_generation import OpenAIImageGenerationToolSpec
from llama_index.agent import ReActAgent
from llama_index.to... | llama_index/llama-index-integrations/tools/llama-index-tools-openai/examples/openai_image_generation_agent.ipynb/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-openai/examples/openai_image_generation_agent.ipynb",
"repo_id": "llama_index",
"token_count": 453
} | 1,488 |
{
"name": "tokenizers-android-arm-eabi",
"version": "0.13.4-rc1",
"os": [
"android"
],
"cpu": [
"arm"
],
"main": "tokenizers.android-arm-eabi.node",
"files": [
"tokenizers.android-arm-eabi.node"
],
"description": "Tokenizers platform specific bindings",
"keywords": [
"napi-rs",
... | tokenizers/bindings/node/npm/android-arm-eabi/package.json/0 | {
"file_path": "tokenizers/bindings/node/npm/android-arm-eabi/package.json",
"repo_id": "tokenizers",
"token_count": 269
} | 433 |
cargo build --target wasm32-unknown-unknown --release
wasm-bindgen ../../target/wasm32-unknown-unknown/release/m.wasm --out-dir build --target web
| candle/candle-wasm-examples/llama2-c/build-lib.sh/0 | {
"file_path": "candle/candle-wasm-examples/llama2-c/build-lib.sh",
"repo_id": "candle",
"token_count": 48
} | 82 |
// 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/mock/grpcclient.go/0 | {
"file_path": "milvus/internal/util/mock/grpcclient.go",
"repo_id": "milvus",
"token_count": 1766
} | 1,943 |
search_performance:
collections:
-
server:
db_config.primary_path: /test/milvus/db_data_011/sift_50m_128_l2
cache_config.cpu_cache_capacity: 32GB
engine_config.use_blas_threshold: 0
engine_config.gpu_search_threshold: 100
gpu_resource_config.enable: true
gpu_r... | milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_search_sift50m.yaml/0 | {
"file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_cpu_search_sift50m.yaml",
"repo_id": "milvus",
"token_count": 1552
} | 1,944 |
# Use .env.local to change these variables
# DO NOT EDIT THIS FILE WITH SENSITIVE DATA
MONGODB_URL=#your mongodb URL here
MONGODB_DB_NAME=chat-ui
MONGODB_DIRECT_CONNECTION=false
COOKIE_NAME=hf-chat
HF_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
HF_API_ROOT=https://api-inference.huggingface.co/mo... | chat-ui/.env/0 | {
"file_path": "chat-ui/.env",
"repo_id": "chat-ui",
"token_count": 2154
} | 96 |
# coding=utf-8
# Copyright 2018 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 copy of the License at
#
# http://www.a... | transformers/src/transformers/benchmark/benchmark_args.py/0 | {
"file_path": "transformers/src/transformers/benchmark/benchmark_args.py",
"repo_id": "transformers",
"token_count": 1660
} | 588 |
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | transformers/tests/models/xlm/test_modeling_tf_xlm.py/0 | {
"file_path": "transformers/tests/models/xlm/test_modeling_tf_xlm.py",
"repo_id": "transformers",
"token_count": 6448
} | 852 |
# LlamaIndex Embeddings Integration: Mistralai
| llama_index/llama-index-integrations/embeddings/llama-index-embeddings-mistralai/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-mistralai/README.md",
"repo_id": "llama_index",
"token_count": 13
} | 1,268 |
# coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | transformers/tests/models/swin2sr/test_image_processing_swin2sr.py/0 | {
"file_path": "transformers/tests/models/swin2sr/test_image_processing_swin2sr.py",
"repo_id": "transformers",
"token_count": 2903
} | 826 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/pkg/util/paramtable/quota_param_test.go/0 | {
"file_path": "milvus/pkg/util/paramtable/quota_param_test.go",
"repo_id": "milvus",
"token_count": 4762
} | 1,849 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/internal/core/src/exec/expression/ExistsExpr.cpp/0 | {
"file_path": "milvus/internal/core/src/exec/expression/ExistsExpr.cpp",
"repo_id": "milvus",
"token_count": 1058
} | 1,644 |
import tempfile
import unittest
import numpy as np
import torch
from diffusers import ScoreSdeVeScheduler
class ScoreSdeVeSchedulerTest(unittest.TestCase):
# TODO adapt with class SchedulerCommonTest (scheduler needs Numpy Integration)
scheduler_classes = (ScoreSdeVeScheduler,)
forward_default_kwargs = ... | diffusers/tests/schedulers/test_scheduler_score_sde_ve.py/0 | {
"file_path": "diffusers/tests/schedulers/test_scheduler_score_sde_ve.py",
"repo_id": "diffusers",
"token_count": 3215
} | 262 |
import argparse
from argparse import Namespace
import torch
from torch import nn
from transformers import XGLMConfig, XGLMForCausalLM
def remove_ignore_keys_(state_dict):
ignore_keys = [
"decoder.version",
"decoder.output_projection.weight",
"_float_tensor",
"decoder.embed_positi... | transformers/src/transformers/models/xglm/convert_xglm_original_ckpt_to_trfms.py/0 | {
"file_path": "transformers/src/transformers/models/xglm/convert_xglm_original_ckpt_to_trfms.py",
"repo_id": "transformers",
"token_count": 938
} | 678 |
"""Vector-store based data structures."""
from llama_index.core.indices.multi_modal.base import MultiModalVectorStoreIndex
from llama_index.core.indices.multi_modal.retriever import (
MultiModalVectorIndexRetriever,
)
__all__ = [
"MultiModalVectorStoreIndex",
"MultiModalVectorIndexRetriever",
]
| llama_index/llama-index-core/llama_index/core/indices/multi_modal/__init__.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/indices/multi_modal/__init__.py",
"repo_id": "llama_index",
"token_count": 108
} | 1,129 |
"""Test in memory docstore."""
from langchain.output_parsers.regex_dict import RegexDictParser
DEF_EXPECTED_RESULT = {"action": "Search", "action_input": "How to use this class?"}
DEF_OUTPUT_KEY_TO_FORMAT = {"action": "Action", "action_input": "Action Input"}
DEF_README = """We have just received a new result from ... | langchain/libs/langchain/tests/unit_tests/output_parsers/test_regex_dict.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/output_parsers/test_regex_dict.py",
"repo_id": "langchain",
"token_count": 476
} | 609 |
from langchain_cli.utils.events import EventDict, create_events
def test_create_events() -> None:
assert create_events(
[EventDict(event="Test Event", properties={"test": "test"})]
) == {"status": "success"}
| langchain/libs/cli/tests/test_events.py/0 | {
"file_path": "langchain/libs/cli/tests/test_events.py",
"repo_id": "langchain",
"token_count": 78
} | 225 |
<jupyter_start><jupyter_text>🤗 Training with DiffusersIn recent months, it has become clear that diffusion models have taken the throne as the state-of-the-art generative models. Here, we will use Hugging Face's brand new [Diffusers](https://github.com/huggingface/diffusers) library to train a simple diffusion model. ... | notebooks/diffusers/training_example.ipynb/0 | {
"file_path": "notebooks/diffusers/training_example.ipynb",
"repo_id": "notebooks",
"token_count": 6473
} | 298 |
from pathlib import Path
from typing import List
from langchain.chains.openai_functions import create_structured_output_chain
from langchain.text_splitter import TokenTextSplitter
from langchain_community.chat_models import ChatOpenAI
from langchain_community.document_loaders import TextLoader
from langchain_community... | langchain/templates/neo4j-advanced-rag/ingest.py/0 | {
"file_path": "langchain/templates/neo4j-advanced-rag/ingest.py",
"repo_id": "langchain",
"token_count": 2575
} | 667 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-athena/llama_index/readers/athena/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-athena/llama_index/readers/athena/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,294 |
import json
import logging
from typing import Any, Dict, Iterator, List, Optional
import requests
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.llms import LLM
from langchain_core.outputs import GenerationChunk
logger = logging.getLogger(__name__)
class Cloudflare... | langchain/libs/community/langchain_community/llms/cloudflare_workersai.py/0 | {
"file_path": "langchain/libs/community/langchain_community/llms/cloudflare_workersai.py",
"repo_id": "langchain",
"token_count": 1940
} | 278 |
// 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/delegator/delegator_test.go/0 | {
"file_path": "milvus/internal/querynodev2/delegator/delegator_test.go",
"repo_id": "milvus",
"token_count": 18571
} | 1,768 |
# Code Understanding
## Use case
Source code analysis is one of the most popular LLM applications (e.g., [GitHub Co-Pilot](https://github.com/features/copilot), [Code Interpreter](https://chat.openai.com/auth/login?next=%2F%3Fmodel%3Dgpt-4-code-interpreter), [Codium](https://www.codium.ai/), and [Codeium](https://cod... | langchainjs/docs/core_docs/docs/use_cases/code_understanding.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/use_cases/code_understanding.mdx",
"repo_id": "langchainjs",
"token_count": 3851
} | 798 |
python_tests()
| llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,730 |
"""Module contains code for a cache backed embedder.
The cache backed embedder is a wrapper around an embedder that caches
embeddings in a key-value store. The cache is used to avoid recomputing
embeddings for the same text.
The text is hashed and the hash is used as the key in the cache.
"""
from __future__ import a... | langchain/libs/langchain/langchain/embeddings/cache.py/0 | {
"file_path": "langchain/libs/langchain/langchain/embeddings/cache.py",
"repo_id": "langchain",
"token_count": 3252
} | 496 |
# ruff: noqa: E501
"""Test LLMCheckerChain functionality."""
import pytest
from langchain.chains.llm_checker.base import LLMCheckerChain
from langchain.chains.llm_checker.prompt import (
_CHECK_ASSERTIONS_TEMPLATE,
_CREATE_DRAFT_ANSWER_TEMPLATE,
_LIST_ASSERTIONS_TEMPLATE,
_REVISED_ANSWER_TEMPLATE,
)
... | langchain/libs/langchain/tests/unit_tests/chains/test_llm_checker.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/chains/test_llm_checker.py",
"repo_id": "langchain",
"token_count": 730
} | 625 |
import { redirect } from "@sveltejs/kit";
export const load = async ({ params }) => {
throw redirect(302, "../conversation/" + params.id);
};
| chat-ui/src/routes/r/[id]/+page.ts/0 | {
"file_path": "chat-ui/src/routes/r/[id]/+page.ts",
"repo_id": "chat-ui",
"token_count": 46
} | 104 |
# coding=utf-8
# Copyright 2022s HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | transformers/tests/models/convnext/test_image_processing_convnext.py/0 | {
"file_path": "transformers/tests/models/convnext/test_image_processing_convnext.py",
"repo_id": "transformers",
"token_count": 1614
} | 809 |
# guardrails-output-parser
This template uses [guardrails-ai](https://github.com/guardrails-ai/guardrails) to validate LLM output.
The `GuardrailsOutputParser` is set in `chain.py`.
The default example protects against profanity.
## Environment Setup
Set the `OPENAI_API_KEY` environment variable to access the O... | langchain/templates/guardrails-output-parser/README.md/0 | {
"file_path": "langchain/templates/guardrails-output-parser/README.md",
"repo_id": "langchain",
"token_count": 690
} | 650 |
# Azure Speech Tool
This tool allows Agents to use Microsoft Azure speech services to transcribe audio files to text, and create audio files from text. To see more and get started, visit https://azure.microsoft.com/en-us/products/ai-services/ai-speech
## Usage
This tool has a more extensive example usage documented ... | llama_index/llama-index-integrations/tools/llama-index-tools-azure-speech/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-azure-speech/README.md",
"repo_id": "llama_index",
"token_count": 362
} | 1,558 |
from langchain_community.utilities.steam import SteamWebAPIWrapper
__all__ = ["SteamWebAPIWrapper"]
| langchain/libs/langchain/langchain/utilities/steam.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/steam.py",
"repo_id": "langchain",
"token_count": 30
} | 566 |
<jupyter_start><jupyter_text>Multi-Modal LLM using Azure OpenAI GPT-4V model for image reasoningIn this notebook, we show how to use **Azure** OpenAI GPT4V MultiModal LLM class/abstraction for image understanding/reasoning. For a more complete example, please visit [this notebook](https://github.com/run-llama/llama_ind... | llama_index/docs/examples/multi_modal/azure_openai_multi_modal.ipynb/0 | {
"file_path": "llama_index/docs/examples/multi_modal/azure_openai_multi_modal.ipynb",
"repo_id": "llama_index",
"token_count": 1349
} | 1,094 |
// Copyright (C) 2019-2023 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/simd/avx2.cpp/0 | {
"file_path": "milvus/internal/core/src/simd/avx2.cpp",
"repo_id": "milvus",
"token_count": 4630
} | 1,751 |
from langchain.agents import AgentExecutor
from langchain_community.chat_models import ChatAnthropic
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnableParallel, RunnablePassthrough
from .agent_scratchpad import f... | langchain/templates/anthropic-iterative-search/anthropic_iterative_search/retriever_agent.py/0 | {
"file_path": "langchain/templates/anthropic-iterative-search/anthropic_iterative_search/retriever_agent.py",
"repo_id": "langchain",
"token_count": 465
} | 646 |
# 🗂️ LlamaIndex 🦙
[](https://pypi.org/project/llama-index/)
[](https://github.com/jerryjliu/llama_index/graphs/contributors)
[;
export * from "@langchain/community/tools/connery";
| langchainjs/langchain/src/tools/connery.ts/0 | {
"file_path": "langchainjs/langchain/src/tools/connery.ts",
"repo_id": "langchainjs",
"token_count": 70
} | 1,022 |
<!--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/ko/philosophy.md/0 | {
"file_path": "transformers/docs/source/ko/philosophy.md",
"repo_id": "transformers",
"token_count": 5165
} | 528 |
use anyhow::{Context, Result};
use candle_core::{test_device, test_utils, Device, Shape, Tensor, Var};
fn simple_grad(device: &Device) -> Result<()> {
let x = Var::new(&[3f32, 1., 4.], device)?;
let x = x.as_tensor();
let y = (((x * x)? + x * 5f64)? + 4f64)?;
let grads = y.backward()?;
let grad_x =... | candle/candle-core/tests/grad_tests.rs/0 | {
"file_path": "candle/candle-core/tests/grad_tests.rs",
"repo_id": "candle",
"token_count": 8743
} | 35 |
/* eslint-disable react/jsx-props-no-spreading */
import React from "react";
import CodeBlock from "@theme-original/CodeBlock";
function Imports({ imports }) {
return (
<div
style={{
paddingTop: "1.3rem",
background: "var(--prism-background-color)",
color: "var(--prism-color)",
... | langchainjs/docs/core_docs/src/theme/CodeBlock/index.js/0 | {
"file_path": "langchainjs/docs/core_docs/src/theme/CodeBlock/index.js",
"repo_id": "langchainjs",
"token_count": 622
} | 772 |
---
hide_table_of_contents: true
---
# Figma
This example goes over how to load data from a Figma file.
You will need a Figma access token in order to get started.
import CodeBlock from "@theme/CodeBlock";
import Example from "@examples/document_loaders/figma.ts";
<CodeBlock language="typescript">{Example}</CodeBlo... | langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/figma.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/document_loaders/web_loaders/figma.mdx",
"repo_id": "langchainjs",
"token_count": 198
} | 759 |
<!--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/tasks/image_to_image.md/0 | {
"file_path": "transformers/docs/source/en/tasks/image_to_image.md",
"repo_id": "transformers",
"token_count": 1725
} | 465 |
from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.corrective_rag import CorrectiveRAGPack
def test_class():
names_of_base_classes = [b.__name__ for b in CorrectiveRAGPack.__mro__]
assert BaseLlamaPack.__name__ in names_of_base_classes
| llama_index/llama-index-packs/llama-index-packs-corrective-rag/tests/test_packs_corrective_rag.py/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-corrective-rag/tests/test_packs_corrective_rag.py",
"repo_id": "llama_index",
"token_count": 97
} | 1,580 |
# coding=utf-8
# Copyright Microsoft 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/LICENS... | transformers/src/transformers/models/beit/configuration_beit.py/0 | {
"file_path": "transformers/src/transformers/models/beit/configuration_beit.py",
"repo_id": "transformers",
"token_count": 4551
} | 621 |
is_streaming:
- true
# - false
failed_group_scope:
- one
# - except_one
# - all
failed_node_type:
- non_shard_leader
# - shard_leader
chaos_type:
- pod-failure
# - pod-kill
| milvus/tests/python_client/chaos/config/multi_replicas_chaos.yaml/0 | {
"file_path": "milvus/tests/python_client/chaos/config/multi_replicas_chaos.yaml",
"repo_id": "milvus",
"token_count": 82
} | 1,994 |
<jupyter_start><jupyter_text>The Annotated Diffusion Model nielsr Niels Rogge kashif Kashif Rasul In this blog post, we'll take a deeper look into **Denoising Diffusion Probabilistic Models** (also known as D... | notebooks/examples/annotated_diffusion.ipynb/0 | {
"file_path": "notebooks/examples/annotated_diffusion.ipynb",
"repo_id": "notebooks",
"token_count": 16579
} | 308 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-redis/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,595 |
"""Init file."""
from llama_index.core.llama_pack.base import BaseLlamaPack
from llama_index.core.llama_pack.download import download_llama_pack
__all__ = [
"BaseLlamaPack",
"download_llama_pack",
]
| llama_index/llama-index-core/llama_index/core/llama_pack/__init__.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/llama_pack/__init__.py",
"repo_id": "llama_index",
"token_count": 81
} | 1,189 |
/* eslint-disable */
/**
* Generated `api` utility.
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.3.1.
* To regenerate, run `npx convex dev`.
* @module
*/
import type {
ApiFromModules,
FilterApi,
FunctionReference,
} from "convex/server";
import type * as langchain_db from "../langc... | langchainjs/libs/langchain-community/src/vectorstores/tests/convex/convex/_generated/api.d.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/vectorstores/tests/convex/convex/_generated/api.d.ts",
"repo_id": "langchainjs",
"token_count": 287
} | 1,017 |
<jupyter_start><jupyter_text>JSONFormer[JSONFormer](https://github.com/1rgs/jsonformer) is a library that wraps local Hugging Face pipeline models for structured decoding of a subset of the JSON Schema.It works by filling in the structure tokens and then sampling the content tokens from the model.**Warning - this modul... | langchain/docs/docs/integrations/llms/jsonformer_experimental.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/llms/jsonformer_experimental.ipynb",
"repo_id": "langchain",
"token_count": 1400
} | 130 |
<jupyter_start><jupyter_text>Build your own OpenAI Agent With the [new OpenAI API](https://openai.com/blog/function-calling-and-other-api-updates) that supports function calling, it's never been easier to build your own agent!In this notebook tutorial, we showcase how to write your own OpenAI agent in **under 50 lines ... | llama_index/docs/examples/agent/openai_agent.ipynb/0 | {
"file_path": "llama_index/docs/examples/agent/openai_agent.ipynb",
"repo_id": "llama_index",
"token_count": 3217
} | 1,068 |
<jupyter_start><jupyter_text>PromptLayer OpenAI`PromptLayer` is the first platform that allows you to track, manage, and share your GPT prompt engineering. `PromptLayer` acts a middleware between your code and `OpenAI’s` python library.`PromptLayer` records all your `OpenAI API` requests, allowing you to search and exp... | langchain/docs/docs/integrations/llms/promptlayer_openai.ipynb/0 | {
"file_path": "langchain/docs/docs/integrations/llms/promptlayer_openai.ipynb",
"repo_id": "langchain",
"token_count": 788
} | 133 |
import { ChatPromptTemplate } from "@langchain/core/prompts";
import { TogetherAI } from "../togetherai.js";
test.skip("TogetherAI can make a request to an LLM", async () => {
const model = new TogetherAI({
modelName: "togethercomputer/StripedHyena-Nous-7B",
});
const prompt = ChatPromptTemplate.fromMessages... | langchainjs/libs/langchain-community/src/llms/tests/togetherai.int.test.ts/0 | {
"file_path": "langchainjs/libs/langchain-community/src/llms/tests/togetherai.int.test.ts",
"repo_id": "langchainjs",
"token_count": 390
} | 1,029 |
from langchain_community.utilities.nasa import (
NasaAPIWrapper,
)
__all__ = ["NasaAPIWrapper"]
| langchain/libs/langchain/langchain/utilities/nasa.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/nasa.py",
"repo_id": "langchain",
"token_count": 38
} | 594 |
#!/usr/bin/env bash
python alignment.py \
--model_name="arijitx/wav2vec2-xls-r-300m-bengali" \
--wav_dir="./wavs" \
--text_file="script.txt" \
--input_wavs_sr=48000 \
--output_dir="./out_alignment" \
--cuda
| transformers/examples/research_projects/wav2vec2/run_alignment.sh/0 | {
"file_path": "transformers/examples/research_projects/wav2vec2/run_alignment.sh",
"repo_id": "transformers",
"token_count": 97
} | 548 |
""" EfficientNet, MobileNetV3, etc Builder
Assembles EfficieNet and related network feature blocks from string definitions.
Handles stride, dilation calculations, and selects feature extraction points.
Hacked together by / Copyright 2019, Ross Wightman
"""
import logging
import math
import re
from copy import deepco... | pytorch-image-models/timm/models/_efficientnet_builder.py/0 | {
"file_path": "pytorch-image-models/timm/models/_efficientnet_builder.py",
"repo_id": "pytorch-image-models",
"token_count": 9013
} | 338 |
import glob
import io
import os
import posixpath
import re
import tarfile
import time
import xml.dom.minidom
import zipfile
from asyncio import TimeoutError
from io import BytesIO
from itertools import chain
from pathlib import Path, PurePosixPath
from typing import Any, Callable, Dict, Generator, Iterable, List, Optio... | datasets/src/datasets/download/streaming_download_manager.py/0 | {
"file_path": "datasets/src/datasets/download/streaming_download_manager.py",
"repo_id": "datasets",
"token_count": 18792
} | 150 |
// Licensed to the LF AI & Data foundation under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use th... | milvus/pkg/util/timerecord/group_checker.go/0 | {
"file_path": "milvus/pkg/util/timerecord/group_checker.go",
"repo_id": "milvus",
"token_count": 1091
} | 1,949 |
# sent_id = 1
# text = They buy and sell books.
1 They they PRON PRP Case=Nom|Number=Plur 2 nsubj 2:nsubj|4:nsubj _
2 buy buy VERB VBP Number=Plur|Person=3|Tense=Pres 0 root 0:root _
3 and and CONJ CC _ 4 cc 4:cc _
4 sell sell VERB VBP Number=Plur|Person=3|Tense=Pres 2 conj 0:root|2:conj _
5 books book NOUN NNS Number... | langchain/docs/docs/integrations/document_loaders/example_data/conllu.conllu/0 | {
"file_path": "langchain/docs/docs/integrations/document_loaders/example_data/conllu.conllu",
"repo_id": "langchain",
"token_count": 221
} | 101 |
"""Init file."""
from llama_index.readers.file.unstructured.base import (
UnstructuredReader,
)
__all__ = ["UnstructuredReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/unstructured/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/unstructured/__init__.py",
"repo_id": "llama_index",
"token_count": 49
} | 1,494 |
from llama_index.llms.llama_cpp.base import LlamaCPP
__all__ = ["LlamaCPP"]
| llama_index/llama-index-integrations/llms/llama-index-llms-llama-cpp/llama_index/llms/llama_cpp/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-llama-cpp/llama_index/llms/llama_cpp/__init__.py",
"repo_id": "llama_index",
"token_count": 34
} | 1,403 |
# Fuzzy Citation Query Engine Pack
Creates and runs a `CustomQueryEngine` -- `FuzzCitationQueryEngine` -- which post-processes response objects to identify source sentences using fuzzy matching.
The identified sentences are available in the `response.metadata` dictionary, containing a mapping of `(response_sentence, ... | llama_index/llama-index-packs/llama-index-packs-fuzzy-citation/README.md/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-fuzzy-citation/README.md",
"repo_id": "llama_index",
"token_count": 599
} | 1,567 |
from langchain_community.utilities.wolfram_alpha import WolframAlphaAPIWrapper
__all__ = ["WolframAlphaAPIWrapper"]
| langchain/libs/langchain/langchain/utilities/wolfram_alpha.py/0 | {
"file_path": "langchain/libs/langchain/langchain/utilities/wolfram_alpha.py",
"repo_id": "langchain",
"token_count": 35
} | 576 |
import os
from typing import List, Optional
import nomic # type: ignore
from langchain_core.embeddings import Embeddings
from nomic import embed # type: ignore
class NomicEmbeddings(Embeddings):
"""NomicEmbeddings embedding model.
Example:
.. code-block:: python
from langchain_nomic i... | langchain/libs/partners/nomic/langchain_nomic/embeddings.py/0 | {
"file_path": "langchain/libs/partners/nomic/langchain_nomic/embeddings.py",
"repo_id": "langchain",
"token_count": 966
} | 633 |
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | diffusers/docs/source/en/api/schedulers/ddim.md/0 | {
"file_path": "diffusers/docs/source/en/api/schedulers/ddim.md",
"repo_id": "diffusers",
"token_count": 1122
} | 182 |
# coding=utf-8
# Copyright 2022 The OpenBMB Team and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LIC... | transformers/src/transformers/models/cpmant/tokenization_cpmant.py/0 | {
"file_path": "transformers/src/transformers/models/cpmant/tokenization_cpmant.py",
"repo_id": "transformers",
"token_count": 4580
} | 665 |
import { OpenAI, OpenAIEmbeddings } from "@langchain/openai";
import { initializeAgentExecutorWithOptions } from "langchain/agents";
import { Calculator } from "langchain/tools/calculator";
import { WebBrowser } from "langchain/tools/webbrowser";
import { SerpAPI } from "@langchain/community/tools/serpapi";
export con... | langchainjs/examples/src/agents/mrkl_browser.ts/0 | {
"file_path": "langchainjs/examples/src/agents/mrkl_browser.ts",
"repo_id": "langchainjs",
"token_count": 1452
} | 780 |
# coding=utf-8
# Copyright 2023 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | transformers/tests/models/tvlt/test_image_processor_tvlt.py/0 | {
"file_path": "transformers/tests/models/tvlt/test_image_processor_tvlt.py",
"repo_id": "transformers",
"token_count": 5010
} | 774 |
python_sources()
| llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/BUILD/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-stock-market-data-query-engine/llama_index/packs/stock_market_data_query_engine/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,685 |
"""Tests for QA evaluation chains."""
| langchain/libs/langchain/tests/unit_tests/evaluation/qa/__init__.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/evaluation/qa/__init__.py",
"repo_id": "langchain",
"token_count": 11
} | 637 |
# Starter Tutorial
```{tip}
Make sure you've followed the [installation](installation.md) steps first.
```
This is our famous "5 lines of code" starter example using OpenAI.
```{admonition} Want to use local models?
If you want to do our starter tutorial using only local models, [check out this tutorial instead](sta... | llama_index/docs/getting_started/starter_example.md/0 | {
"file_path": "llama_index/docs/getting_started/starter_example.md",
"repo_id": "llama_index",
"token_count": 1283
} | 1,096 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.