text stringlengths 3 1.68M | id stringlengths 13 169 | metadata dict | __index_level_0__ int64 0 2.21k |
|---|---|---|---|
# Bing Search Tool
This tool connects to a Bing account and allows an Agent to perform searches for news, images and videos.
You will need to set up a search key using Azure,learn more here: https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/overview
## Usage
This tool has a more extensive example u... | llama_index/llama-index-integrations/tools/llama-index-tools-bing-search/README.md/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-bing-search/README.md",
"repo_id": "llama_index",
"token_count": 371
} | 1,480 |
#!/usr/bin/env python
# coding=utf-8
# 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-... | transformers/examples/flax/image-captioning/create_model_from_encoder_decoder_models.py/0 | {
"file_path": "transformers/examples/flax/image-captioning/create_model_from_encoder_decoder_models.py",
"repo_id": "transformers",
"token_count": 1634
} | 566 |
import { useState } from "react";
import type { Message } from "ai/react";
import type { AgentStep } from "langchain/schema";
export function IntermediateStep(props: { message: Message }) {
const parsedInput: AgentStep = JSON.parse(props.message.content);
const action = parsedInput.action;
const observation = pa... | langchain-nextjs-template/components/IntermediateStep.tsx/0 | {
"file_path": "langchain-nextjs-template/components/IntermediateStep.tsx",
"repo_id": "langchain-nextjs-template",
"token_count": 780
} | 64 |
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.80.0"
}
}
}
resource "google_compute_instance" "chroma" {
project = var.project_id
name = "chroma-1"
machine_type = var.machine_type
zone = var.zone
tags = local.tags
labe... | chroma/examples/deployments/google-cloud-compute/chroma.tf/0 | {
"file_path": "chroma/examples/deployments/google-cloud-compute/chroma.tf",
"repo_id": "chroma",
"token_count": 1291
} | 41 |
package milvus
import (
"bytes"
"context"
"flag"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/cockroachdb/errors"
"github.com/golang/protobuf/proto"
clientv3 "go.etcd.io/etcd/client/v3"
"go.uber.org/zap"
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io/... | milvus/cmd/milvus/mck.go/0 | {
"file_path": "milvus/cmd/milvus/mck.go",
"repo_id": "milvus",
"token_count": 8774
} | 1,615 |
# coding=utf-8
# Copyright 2020 Hugging Face
#
# 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/src/transformers/utils/notebook.py/0 | {
"file_path": "transformers/src/transformers/utils/notebook.py",
"repo_id": "transformers",
"token_count": 6938
} | 718 |
# coding=utf-8
# Copyright 2023 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/tests/repo_utils/test_get_test_info.py/0 | {
"file_path": "transformers/tests/repo_utils/test_get_test_info.py",
"repo_id": "transformers",
"token_count": 2131
} | 857 |
{
"name": "@langchain/yandex",
"version": "0.0.1",
"description": "Yandex integration for LangChain.js",
"type": "module",
"engines": {
"node": ">=18"
},
"main": "./index.js",
"types": "./index.d.ts",
"repository": {
"type": "git",
"url": "git@github.com:langchain-ai/langchainjs.git"
},
... | langchainjs/libs/langchain-yandex/package.json/0 | {
"file_path": "langchainjs/libs/langchain-yandex/package.json",
"repo_id": "langchainjs",
"token_count": 2187
} | 1,000 |
<!--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/en/model_doc/bertweet.md/0 | {
"file_path": "transformers/docs/source/en/model_doc/bertweet.md",
"repo_id": "transformers",
"token_count": 806
} | 502 |
// 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/mq_msgstream_test.go/0 | {
"file_path": "milvus/pkg/mq/msgstream/mq_msgstream_test.go",
"repo_id": "milvus",
"token_count": 19661
} | 1,814 |
From: <Saved by Blink>
Snapshot-Content-Location: https://langchain.com/
Subject:
Date: Fri, 16 Jun 2023 19:32:59 -0000
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----MultipartBoundary--dYaUgeoeP18TqraaeOwkeZyu1vI09OtkFwH2rcnJMt----"
------MultipartBoundary--dYaUgeoeP18TqraaeOwk... | langchain/libs/community/tests/examples/example.mht/0 | {
"file_path": "langchain/libs/community/tests/examples/example.mht",
"repo_id": "langchain",
"token_count": 1850
} | 336 |
"""Test Tracer classes."""
from __future__ import annotations
from datetime import datetime, timezone
from typing import Any, List, Optional, Union
from uuid import uuid4
import pytest
from freezegun import freeze_time
from langchain_core.callbacks import CallbackManager
from langchain_core.messages import HumanMess... | langchain/libs/core/tests/unit_tests/tracers/test_langchain_v1.py/0 | {
"file_path": "langchain/libs/core/tests/unit_tests/tracers/test_langchain_v1.py",
"repo_id": "langchain",
"token_count": 8630
} | 410 |
// 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.go/0 | {
"file_path": "milvus/internal/querynodev2/delegator/delegator.go",
"repo_id": "milvus",
"token_count": 10215
} | 1,868 |
#ifndef UNDERLYING_FUNCTIONALITIES_HPP
#define UNDERLYING_FUNCTIONALITIES_HPP
#include "crtp.hpp"
#include "named_type_impl.hpp"
#include <functional>
#include <iostream>
#include <memory>
// C++17 constexpr additions
#if FLUENT_CPP17_PRESENT
# define FLUENT_CONSTEXPR17 constexpr
#else
# define FLUENT_CONSTEXP... | milvus/internal/core/thirdparty/NamedType/underlying_functionalities.hpp/0 | {
"file_path": "milvus/internal/core/thirdparty/NamedType/underlying_functionalities.hpp",
"repo_id": "milvus",
"token_count": 4498
} | 1,898 |
from langchain_community.document_loaders.acreom import AcreomLoader
__all__ = ["AcreomLoader"]
| langchain/libs/langchain/langchain/document_loaders/acreom.py/0 | {
"file_path": "langchain/libs/langchain/langchain/document_loaders/acreom.py",
"repo_id": "langchain",
"token_count": 31
} | 483 |
from typing import List, Type, Union
from langchain_core.language_models import BaseLanguageModel
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel
from langchain_core.runnables import Runnable
from langchain_core.utils.function_calling import convert_pydantic_to_op... | langchain/libs/langchain/langchain/chains/openai_tools/extraction.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/openai_tools/extraction.py",
"repo_id": "langchain",
"token_count": 563
} | 489 |
DATA_DIR = data
BENCHMARK_DIR = benches
TESTS_DIR = tests
dir_guard=@mkdir -p $(@D)
SHARED_RESOURCES = $(DATA_DIR)/gpt2-vocab.json $(DATA_DIR)/gpt2-merges.txt $(DATA_DIR)/bert-base-uncased-vocab.txt $(DATA_DIR)/big.txt $(DATA_DIR)/small.txt $(DATA_DIR)/albert-base-v1-tokenizer.json
BENCHMARK_RESOURCES = $(SHARED_RES... | tokenizers/tokenizers/Makefile/0 | {
"file_path": "tokenizers/tokenizers/Makefile",
"repo_id": "tokenizers",
"token_count": 939
} | 432 |
/* eslint-disable import/first */
import { ChatOpenAI } from "@langchain/openai";
const chatModel = new ChatOpenAI({});
console.log(await chatModel.invoke("what is LangSmith?"));
/*
AIMessage {
content: 'Langsmith can help with testing by generating test cases, automating the testing process, and analyzing tes... | langchainjs/examples/src/get_started/quickstart.ts/0 | {
"file_path": "langchainjs/examples/src/get_started/quickstart.ts",
"repo_id": "langchainjs",
"token_count": 319
} | 804 |
.. _Ref-Node-Postprocessor:
Node Postprocessors
===================
.. automodule:: llama_index.core.postprocessor
:members:
:inherited-members:
| llama_index/docs/api_reference/node_postprocessor.rst/0 | {
"file_path": "llama_index/docs/api_reference/node_postprocessor.rst",
"repo_id": "llama_index",
"token_count": 51
} | 1,112 |
# Copyright 2020 The HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | datasets/metrics/indic_glue/indic_glue.py/0 | {
"file_path": "datasets/metrics/indic_glue/indic_glue.py",
"repo_id": "datasets",
"token_count": 2862
} | 131 |
from __future__ import annotations
from typing import (
Any,
AsyncIterator,
Callable,
Iterator,
List,
Mapping,
Optional,
Union,
cast,
)
from typing_extensions import TypedDict
from langchain_core.runnables.base import (
Input,
Output,
Runnable,
RunnableSerializable... | langchain/libs/core/langchain_core/runnables/router.py/0 | {
"file_path": "langchain/libs/core/langchain_core/runnables/router.py",
"repo_id": "langchain",
"token_count": 2818
} | 437 |
# coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License... | transformers/src/transformers/models/gpt2/modeling_tf_gpt2.py/0 | {
"file_path": "transformers/src/transformers/models/gpt2/modeling_tf_gpt2.py",
"repo_id": "transformers",
"token_count": 24673
} | 640 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-patentsview/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-patentsview/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,400 |
import os
import zipfile
import requests
from get_ci_error_statistics import download_artifact, get_artifacts_links
def get_daily_ci_runs(token, num_runs=7):
"""Get the workflow runs of the scheduled (daily) CI.
This only selects the runs triggered by the `schedule` event on the `main` branch.
"""
h... | transformers/utils/get_previous_daily_ci.py/0 | {
"file_path": "transformers/utils/get_previous_daily_ci.py",
"repo_id": "transformers",
"token_count": 1109
} | 812 |
{
"object": "database",
"id": "c393f19c-3903-440d-a0d3-4bf9c6c12ff2",
"cover": null,
"icon": null,
"created_time": "2023-06-14T10:29:00.000Z",
"created_by": {
"object": "user",
"id": "c9b34ba3-5b62-4aa9-aae2-ed6024ffb0fd"
},
"last_edited_by": {
"object": "user",
"id": "c9b34ba3-5b62-4aa9... | langchainjs/langchain/src/document_loaders/tests/example_data/notion_api/notion_database_response.json/0 | {
"file_path": "langchainjs/langchain/src/document_loaders/tests/example_data/notion_api/notion_database_response.json",
"repo_id": "langchainjs",
"token_count": 3690
} | 905 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-github/llama_index/readers/github/repository/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,449 |
# coding=utf-8
# Copyright 2021 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/imagegpt/convert_imagegpt_original_tf2_to_pytorch.py/0 | {
"file_path": "transformers/src/transformers/models/imagegpt/convert_imagegpt_original_tf2_to_pytorch.py",
"repo_id": "transformers",
"token_count": 993
} | 616 |
python_tests()
| llama_index/llama-index-integrations/readers/llama-index-readers-snowflake/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-snowflake/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,431 |
from langchain_community.agent_toolkits.json.prompt import JSON_PREFIX, JSON_SUFFIX
__all__ = ["JSON_PREFIX", "JSON_SUFFIX"]
| langchain/libs/langchain/langchain/agents/agent_toolkits/json/prompt.py/0 | {
"file_path": "langchain/libs/langchain/langchain/agents/agent_toolkits/json/prompt.py",
"repo_id": "langchain",
"token_count": 49
} | 460 |
# @langchain/scripts
This package contains the LangChain.js shared scripts for our packages.
## Installation
```bash npm2yarn
npm install @langchain/scripts
```
| langchainjs/libs/langchain-scripts/README.md/0 | {
"file_path": "langchainjs/libs/langchain-scripts/README.md",
"repo_id": "langchainjs",
"token_count": 48
} | 984 |
# 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... | trl/tests/slow/test_dpo_slow.py/0 | {
"file_path": "trl/tests/slow/test_dpo_slow.py",
"repo_id": "trl",
"token_count": 3884
} | 823 |
# Copyright 2023 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | trl/tests/test_data_collator_completion_only.py/0 | {
"file_path": "trl/tests/test_data_collator_completion_only.py",
"repo_id": "trl",
"token_count": 1973
} | 884 |
"""Test tools."""
from typing import Type, cast
import pytest
from llama_index.legacy.bridge.pydantic import BaseModel
from llama_index.legacy.query_engine.custom import CustomQueryEngine
from llama_index.legacy.tools.query_engine import QueryEngineTool
class MockQueryEngine(CustomQueryEngine):
"""Custom query ... | llama_index/llama-index-legacy/tests/tools/test_query_engine_tool.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/tools/test_query_engine_tool.py",
"repo_id": "llama_index",
"token_count": 533
} | 1,823 |
python_sources()
| llama_index/llama-index-legacy/llama_index/legacy/storage/kvstore/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/storage/kvstore/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,605 |
package planparserv2
import (
"reflect"
"github.com/milvus-io/milvus/internal/proto/planpb"
"github.com/milvus-io/milvus/pkg/util/funcutil"
)
// CheckPredicatesIdentical check if two exprs are identical.
func CheckPredicatesIdentical(expr, other *planpb.Expr) bool {
if expr == nil || other == nil {
return expr... | milvus/internal/parser/planparserv2/check_identical.go/0 | {
"file_path": "milvus/internal/parser/planparserv2/check_identical.go",
"repo_id": "milvus",
"token_count": 805
} | 1,805 |
// Code generated by mockery v2.30.1. DO NOT EDIT.
package mocks
import (
context "context"
metastore "github.com/milvus-io/milvus/internal/metastore"
datapb "github.com/milvus-io/milvus/internal/proto/datapb"
mock "github.com/stretchr/testify/mock"
model "github.com/milvus-io/milvus/internal/metastore/model"... | milvus/internal/mocks/mock_datacoord_catalog.go/0 | {
"file_path": "milvus/internal/mocks/mock_datacoord_catalog.go",
"repo_id": "milvus",
"token_count": 15878
} | 1,729 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-weather/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-weather/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,462 |
python_tests()
| llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-mongodb/tests/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/storage/docstore/llama-index-storage-docstore-mongodb/tests/BUILD",
"repo_id": "llama_index",
"token_count": 5
} | 1,593 |
from llama_index.core.llama_pack import BaseLlamaPack
from llama_index.packs.fuzzy_citation import FuzzyCitationEnginePack
def test_class():
names_of_base_classes = [b.__name__ for b in FuzzyCitationEnginePack.__mro__]
assert BaseLlamaPack.__name__ in names_of_base_classes
| llama_index/llama-index-packs/llama-index-packs-fuzzy-citation/tests/test_packs_fuzzy_citation.py/0 | {
"file_path": "llama_index/llama-index-packs/llama-index-packs-fuzzy-citation/tests/test_packs_fuzzy_citation.py",
"repo_id": "llama_index",
"token_count": 105
} | 1,789 |
"""Test text splitting functionality."""
import random
import re
import string
from pathlib import Path
from typing import Any, List
import pytest
from langchain_core.documents import Document
from langchain.text_splitter import (
CharacterTextSplitter,
HTMLHeaderTextSplitter,
Language,
MarkdownHeader... | langchain/libs/langchain/tests/unit_tests/test_text_splitter.py/0 | {
"file_path": "langchain/libs/langchain/tests/unit_tests/test_text_splitter.py",
"repo_id": "langchain",
"token_count": 16249
} | 620 |
"""Init params."""
from llama_index.legacy.llm_predictor.base import LLMPredictor
# NOTE: this results in a circular import
# from llama_index.legacy.llm_predictor.mock import MockLLMPredictor
from llama_index.legacy.llm_predictor.structured import StructuredLLMPredictor
__all__ = [
"LLMPredictor",
# NOTE: t... | llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/__init__.py",
"repo_id": "llama_index",
"token_count": 150
} | 1,525 |
from llama_index.core.evaluation.benchmarks.beir import BeirEvaluator
from llama_index.core.evaluation.benchmarks.hotpotqa import HotpotQAEvaluator
__all__ = ["BeirEvaluator", "HotpotQAEvaluator"]
| llama_index/llama-index-core/llama_index/core/evaluation/benchmarks/__init__.py/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/evaluation/benchmarks/__init__.py",
"repo_id": "llama_index",
"token_count": 72
} | 1,184 |
# coding=utf-8
# Copyright 2022 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_configuration_utils.py/0 | {
"file_path": "transformers/tests/generation/test_configuration_utils.py",
"repo_id": "transformers",
"token_count": 4312
} | 743 |
from llama_index.readers.txtai.base import TxtaiReader
__all__ = ["TxtaiReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-txtai/llama_index/readers/txtai/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-txtai/llama_index/readers/txtai/__init__.py",
"repo_id": "llama_index",
"token_count": 31
} | 1,536 |
<!--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/loaders/peft.md/0 | {
"file_path": "diffusers/docs/source/en/api/loaders/peft.md",
"repo_id": "diffusers",
"token_count": 320
} | 177 |
# flake8: noqa
BASE_ZAPIER_TOOL_PROMPT = (
"A wrapper around Zapier NLA actions. "
"The input to this tool is a natural language instruction, "
'for example "get the latest email from my bank" or '
'"send a slack message to the #general channel". '
"Each tool will have params associated with it that... | langchain/libs/community/langchain_community/tools/zapier/prompt.py/0 | {
"file_path": "langchain/libs/community/langchain_community/tools/zapier/prompt.py",
"repo_id": "langchain",
"token_count": 325
} | 324 |
<!--Copyright 2020 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | transformers/docs/source/ja/main_classes/trainer.md/0 | {
"file_path": "transformers/docs/source/ja/main_classes/trainer.md",
"repo_id": "transformers",
"token_count": 19563
} | 538 |
use super::OrderedVocabIter;
use crate::tokenizer::{Model, Result, Token};
use serde_json::Value;
use std::collections::HashMap;
use std::fs::File;
use std::io::{BufReader, Read, Write};
use std::path::{Path, PathBuf};
mod serialization;
mod trainer;
// Re-export
pub use trainer::*;
type Vocab = HashMap<String, u32>... | tokenizers/tokenizers/src/models/wordlevel/mod.rs/0 | {
"file_path": "tokenizers/tokenizers/src/models/wordlevel/mod.rs",
"repo_id": "tokenizers",
"token_count": 3383
} | 419 |
from llama_index.core.tools.tool_spec.base import BaseToolSpec
from llama_index.tools.text_to_image import TextToImageToolSpec
def test_class():
names_of_base_classes = [b.__name__ for b in TextToImageToolSpec.__mro__]
assert BaseToolSpec.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/tools/llama-index-tools-text-to-image/tests/test_tools_text_to_image.py/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-text-to-image/tests/test_tools_text_to_image.py",
"repo_id": "llama_index",
"token_count": 99
} | 1,635 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/tools/llama-index-tools-arxiv/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-arxiv/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,557 |
# MLflow Deployments for LLMs
>[The MLflow Deployments for LLMs](https://www.mlflow.org/docs/latest/llms/deployments/index.html) is a powerful tool designed to streamline the usage and management of various large
> language model (LLM) providers, such as OpenAI and Anthropic, within an organization. It offers a high-l... | langchain/docs/docs/integrations/providers/mlflow.mdx/0 | {
"file_path": "langchain/docs/docs/integrations/providers/mlflow.mdx",
"repo_id": "langchain",
"token_count": 1054
} | 142 |
from functools import partial
from typing import Optional
from langchain_core.callbacks.manager import (
Callbacks,
)
from langchain_core.prompts import BasePromptTemplate, PromptTemplate, format_document
from langchain_core.pydantic_v1 import BaseModel, Field
from langchain_core.retrievers import BaseRetriever
f... | langchain/libs/langchain/langchain/tools/retriever.py/0 | {
"file_path": "langchain/libs/langchain/langchain/tools/retriever.py",
"repo_id": "langchain",
"token_count": 928
} | 588 |
use crate::console_log;
use crate::worker::{ModelData, Segment, Worker, WorkerInput, WorkerOutput};
use js_sys::Date;
use wasm_bindgen::prelude::*;
use wasm_bindgen_futures::JsFuture;
use yew::{html, Component, Context, Html};
use yew_agent::{Bridge, Bridged};
const SAMPLE_NAMES: [&str; 6] = [
"audios/samples_jfk.... | candle/candle-wasm-examples/whisper/src/app.rs/0 | {
"file_path": "candle/candle-wasm-examples/whisper/src/app.rs",
"repo_id": "candle",
"token_count": 5679
} | 84 |
export { OpenAI as OpenAIClient, type ClientOptions, toFile } from "openai";
export * from "./chat_models.js";
export * from "./azure/chat_models.js";
export * from "./llms.js";
export * from "./azure/llms.js";
export * from "./embeddings.js";
export * from "./types.js";
export * from "./utils/openai.js";
export * from... | langchainjs/libs/langchain-openai/src/index.ts/0 | {
"file_path": "langchainjs/libs/langchain-openai/src/index.ts",
"repo_id": "langchainjs",
"token_count": 124
} | 1,029 |
import { AgentExecutor, ChatAgentOutputParser } from "langchain/agents";
import { formatLogToString } from "langchain/agents/format_scratchpad/log";
import { OpenAI } from "@langchain/openai";
import { Calculator } from "langchain/tools/calculator";
import { renderTextDescription } from "langchain/tools/render";
import... | langchainjs/examples/src/agents/mrkl_runnable.ts/0 | {
"file_path": "langchainjs/examples/src/agents/mrkl_runnable.ts",
"repo_id": "langchainjs",
"token_count": 1311
} | 754 |
import { Storage, File } from "@google-cloud/storage";
import { Document } from "@langchain/core/documents";
import { Docstore } from "@langchain/community/stores/doc/base";
/**
* Interface that defines the configuration for the
* GoogleCloudStorageDocstore. It includes the bucket name and an optional
* prefix.
*... | langchainjs/langchain/src/stores/doc/gcs.ts/0 | {
"file_path": "langchainjs/langchain/src/stores/doc/gcs.ts",
"repo_id": "langchainjs",
"token_count": 889
} | 925 |
import os
from langchain_mistralai import MistralAIEmbeddings
os.environ["MISTRAL_API_KEY"] = "foo"
def test_mistral_init() -> None:
embeddings = MistralAIEmbeddings()
assert embeddings.model == "mistral-embed"
| langchain/libs/partners/mistralai/tests/unit_tests/test_embeddings.py/0 | {
"file_path": "langchain/libs/partners/mistralai/tests/unit_tests/test_embeddings.py",
"repo_id": "langchain",
"token_count": 86
} | 619 |
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | transformers/tests/models/roberta_prelayernorm/test_modeling_flax_roberta_prelayernorm.py/0 | {
"file_path": "transformers/tests/models/roberta_prelayernorm/test_modeling_flax_roberta_prelayernorm.py",
"repo_id": "transformers",
"token_count": 3446
} | 733 |
// 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/common/LoadInfo.h/0 | {
"file_path": "milvus/internal/core/src/common/LoadInfo.h",
"repo_id": "milvus",
"token_count": 518
} | 1,640 |
python_sources()
| llama_index/llama-index-core/llama_index/core/indices/query/query_transform/BUILD/0 | {
"file_path": "llama_index/llama-index-core/llama_index/core/indices/query/query_transform/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,124 |
from langchain.chains.base import Chain
def load_chain() -> Chain:
"""Load your chain here."""
| langchain-aiplugin/template/chain.py/0 | {
"file_path": "langchain-aiplugin/template/chain.py",
"repo_id": "langchain-aiplugin",
"token_count": 31
} | 63 |
#!/usr/bin/env python
# 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
#
# Unles... | accelerate/src/accelerate/commands/config/sagemaker.py/0 | {
"file_path": "accelerate/src/accelerate/commands/config/sagemaker.py",
"repo_id": "accelerate",
"token_count": 4784
} | 9 |
<jupyter_start><jupyter_text>LM Format Enforcer Regular Expression Generation Generate structured data with [**lm-format-enforcer**](https://github.com/noamgat/lm-format-enforcer) via LlamaIndex. With lm-format-enforcer, you can guarantee the output structure is correct by *forcing* the LLM to output desired tokens. ... | llama_index/docs/examples/output_parsing/lmformatenforcer_regular_expressions.ipynb/0 | {
"file_path": "llama_index/docs/examples/output_parsing/lmformatenforcer_regular_expressions.ipynb",
"repo_id": "llama_index",
"token_count": 1658
} | 1,073 |
[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 = ["SnscrapeTwitterReader"]
contains_example = false
import_path = "llama_index.readers.snscr... | llama_index/llama-index-integrations/readers/llama-index-readers-snscrape-twitter/pyproject.toml/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-snscrape-twitter/pyproject.toml",
"repo_id": "llama_index",
"token_count": 689
} | 1,379 |
// 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/ConjunctExpr.cpp/0 | {
"file_path": "milvus/internal/core/src/exec/expression/ConjunctExpr.cpp",
"repo_id": "milvus",
"token_count": 1700
} | 1,735 |
from llama_index.readers.make_com.base import MakeWrapper
__all__ = ["MakeWrapper"]
| llama_index/llama-index-integrations/readers/llama-index-readers-make-com/llama_index/readers/make_com/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-make-com/llama_index/readers/make_com/__init__.py",
"repo_id": "llama_index",
"token_count": 30
} | 1,393 |
# 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/stable_diffusion_2/test_stable_diffusion_flax.py/0 | {
"file_path": "diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion_flax.py",
"repo_id": "diffusers",
"token_count": 1712
} | 257 |
# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class TFBertTokenizer(metaclass=DummyObject):
_backends = ["tensorflow_text"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["tensorflow_text"])
| transformers/src/transformers/utils/dummy_tensorflow_text_objects.py/0 | {
"file_path": "transformers/src/transformers/utils/dummy_tensorflow_text_objects.py",
"repo_id": "transformers",
"token_count": 109
} | 771 |
<!---
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 ... | transformers/docs/source/de/pr_checks.md/0 | {
"file_path": "transformers/docs/source/de/pr_checks.md",
"repo_id": "transformers",
"token_count": 4986
} | 493 |
/* eslint-disable no-promise-executor-return */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { StringOutputParser } from "../../output_parsers/string.js";
import { PromptTemplate } from "../../prompts/prompt.js";
import { RunnableSequence } from "../base.js";
type RunnableBatchOptionsV0 = {
maxCon... | langchainjs/langchain-core/src/runnables/tests/runnable_interface.test.ts/0 | {
"file_path": "langchainjs/langchain-core/src/runnables/tests/runnable_interface.test.ts",
"repo_id": "langchainjs",
"token_count": 2669
} | 832 |
from llama_index.core.readers.base import BaseReader
from llama_index.readers.json import JSONReader
def test_class():
names_of_base_classes = [b.__name__ for b in JSONReader.__mro__]
assert BaseReader.__name__ in names_of_base_classes
| llama_index/llama-index-integrations/readers/llama-index-readers-json/tests/test_readers_json.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-json/tests/test_readers_json.py",
"repo_id": "llama_index",
"token_count": 85
} | 1,324 |
import os
import pytest
from langchain_openai import OpenAI
os.environ["OPENAI_API_KEY"] = "foo"
def test_openai_model_param() -> None:
llm = OpenAI(model="foo")
assert llm.model_name == "foo"
llm = OpenAI(model_name="foo")
assert llm.model_name == "foo"
def test_openai_model_kwargs() -> None:
... | langchain/libs/partners/openai/tests/unit_tests/llms/test_base.py/0 | {
"file_path": "langchain/libs/partners/openai/tests/unit_tests/llms/test_base.py",
"repo_id": "langchain",
"token_count": 628
} | 696 |
# AI21
You can get started with AI21Labs' Jurassic family of models, as well as see a full list of available foundational models, by signing up for an API key [on their website](https://www.ai21.com/).
Here's an example of initializing an instance in LangChain.js:
import IntegrationInstallTooltip from "@mdx_componen... | langchainjs/docs/core_docs/docs/integrations/llms/ai21.mdx/0 | {
"file_path": "langchainjs/docs/core_docs/docs/integrations/llms/ai21.mdx",
"repo_id": "langchainjs",
"token_count": 186
} | 707 |
from typing import Any, Dict, Tuple
from langchain.chains.query_constructor.ir import (
Comparator,
Comparison,
Operation,
Operator,
StructuredQuery,
Visitor,
)
class SupabaseVectorTranslator(Visitor):
"""Translate Langchain filters to Supabase PostgREST filters."""
allowed_operators... | langchain/libs/langchain/langchain/retrievers/self_query/supabase.py/0 | {
"file_path": "langchain/libs/langchain/langchain/retrievers/self_query/supabase.py",
"repo_id": "langchain",
"token_count": 1477
} | 571 |
import { MESSAGES_BEFORE_LOGIN, RATE_LIMIT } from "$env/static/private";
import { authCondition, requiresUser } from "$lib/server/auth";
import { collections } from "$lib/server/database";
import { models } from "$lib/server/models";
import { ERROR_MESSAGES } from "$lib/stores/errors";
import type { Message } from "$li... | chat-ui/src/routes/conversation/[id]/+server.ts/0 | {
"file_path": "chat-ui/src/routes/conversation/[id]/+server.ts",
"repo_id": "chat-ui",
"token_count": 5024
} | 108 |
import fs from "fs";
const SECRET_CONFIG = fs.existsSync(".env.SECRET_CONFIG")
? fs.readFileSync(".env.SECRET_CONFIG", "utf8")
: process.env.SECRET_CONFIG;
if (!SECRET_CONFIG) {
throw new Error(
"SECRET_CONFIG is not defined. Please provide it either in a file or as an environment variable."
);
}
// Read the c... | chat-ui/scripts/updateLocalEnv.ts/0 | {
"file_path": "chat-ui/scripts/updateLocalEnv.ts",
"repo_id": "chat-ui",
"token_count": 217
} | 89 |
# Copyright 2024 Zhejiang University Team 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/LICENSE-2.0
#
#... | diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py/0 | {
"file_path": "diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py",
"repo_id": "diffusers",
"token_count": 9657
} | 259 |
# Creating a REST api webserver
| candle/candle-book/src/apps/rest.md/0 | {
"file_path": "candle/candle-book/src/apps/rest.md",
"repo_id": "candle",
"token_count": 8
} | 29 |
poetry_requirements(
name="poetry",
)
python_requirements(
name="reqs",
)
| llama_index/llama-index-integrations/readers/llama-index-readers-rayyan/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-rayyan/BUILD",
"repo_id": "llama_index",
"token_count": 36
} | 1,431 |
from llama_index.readers.bilibili.base import BilibiliTranscriptReader
__all__ = ["BilibiliTranscriptReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/llama_index/readers/bilibili/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-bilibili/llama_index/readers/bilibili/__init__.py",
"repo_id": "llama_index",
"token_count": 36
} | 1,271 |
import argparse
import os
import tempfile
import torch
from accelerate import load_checkpoint_and_dispatch
from diffusers import UNet2DConditionModel
from diffusers.models.transformers.prior_transformer import PriorTransformer
from diffusers.models.vq_model import VQModel
"""
Example - From the diffusers root direc... | diffusers/scripts/convert_kandinsky_to_diffusers.py/0 | {
"file_path": "diffusers/scripts/convert_kandinsky_to_diffusers.py",
"repo_id": "diffusers",
"token_count": 23602
} | 234 |
# Encoding
<tokenizerslangcontent>
<python>
## Encoding
[[autodoc]] tokenizers.Encoding
- all
- attention_mask
- ids
- n_sequences
- offsets
- overflowing
- sequence_ids
- special_tokens_mask
- tokens
- type_ids
- word_ids
- words
</python>
<rust>
The Rust API Reference... | tokenizers/docs/source-doc-builder/api/encoding.mdx/0 | {
"file_path": "tokenizers/docs/source-doc-builder/api/encoding.mdx",
"repo_id": "tokenizers",
"token_count": 190
} | 455 |
# flake8: noqa
PODCAST_DOCS = """API documentation:
Endpoint: https://listen-api.listennotes.com/api/v2
GET /search
This API is for searching podcasts or episodes.
Query parameters table:
q | string | Search term, e.g., person, place, topic... You can use double quotes to do verbatim match, e.g., "game of thrones". O... | langchain/libs/langchain/langchain/chains/api/podcast_docs.py/0 | {
"file_path": "langchain/libs/langchain/langchain/chains/api/podcast_docs.py",
"repo_id": "langchain",
"token_count": 475
} | 454 |
"""Init file."""
| llama_index/llama-index-legacy/tests/indices/tree/__init__.py/0 | {
"file_path": "llama_index/llama-index-legacy/tests/indices/tree/__init__.py",
"repo_id": "llama_index",
"token_count": 6
} | 1,623 |
python_sources()
python_tests(
name="tests",
skip_tests=True,
)
| llama_index/llama-index-legacy/tests/prompts/BUILD/0 | {
"file_path": "llama_index/llama-index-legacy/tests/prompts/BUILD",
"repo_id": "llama_index",
"token_count": 32
} | 1,812 |
[tool.poetry]
name = "rag-multi-modal-local"
version = "0.1.0"
description = "Multi-modal RAG using Chroma"
authors = [
"Lance Martin <lance@langchain.dev>",
]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.353,<0.2"
openai = "<2"
tiktoken = ">=0.5.1"
chromadb = ">=0.4.1... | langchain/templates/rag-multi-modal-local/pyproject.toml/0 | {
"file_path": "langchain/templates/rag-multi-modal-local/pyproject.toml",
"repo_id": "langchain",
"token_count": 369
} | 659 |
# Copyright (c) 2023 Dominic Rampas MIT License
# 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/licen... | diffusers/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py/0 | {
"file_path": "diffusers/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py",
"repo_id": "diffusers",
"token_count": 3869
} | 237 |
python_sources()
| llama_index/llama-index-integrations/readers/llama-index-readers-web/llama_index/readers/web/async_web/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-web/llama_index/readers/web/async_web/BUILD",
"repo_id": "llama_index",
"token_count": 6
} | 1,539 |
# Hands-on
<CourseFloatingBanner classNames="absolute z-10 right-0 top-0"
notebooks={[
{label: "Google Colab", value: "https://colab.research.google.com/github/huggingface/deep-rl-class/blob/main/notebooks/unit5/unit5.ipynb"}
]}
askForHelpUrl="http://hf.co/join/discord" />
We learned what ML-Agents is and how ... | deep-rl-class/units/en/unit5/hands-on.mdx/0 | {
"file_path": "deep-rl-class/units/en/unit5/hands-on.mdx",
"repo_id": "deep-rl-class",
"token_count": 5355
} | 166 |
SQL Query Engine
=======================
.. automodule:: llama_index.core.indices.struct_store.sql_query
:members:
:inherited-members:
| llama_index/docs/api_reference/query/query_engines/sql_query_engine.rst/0 | {
"file_path": "llama_index/docs/api_reference/query/query_engines/sql_query_engine.rst",
"repo_id": "llama_index",
"token_count": 48
} | 1,080 |
import json
import logging
from typing import Any, Dict, Iterator, List, Mapping, Optional, Type
import requests
from langchain_core.callbacks import CallbackManagerForLLMRun
from langchain_core.language_models.chat_models import (
BaseChatModel,
generate_from_stream,
)
from langchain_core.messages import (
... | langchain/libs/community/langchain_community/chat_models/baichuan.py/0 | {
"file_path": "langchain/libs/community/langchain_community/chat_models/baichuan.py",
"repo_id": "langchain",
"token_count": 4305
} | 224 |
import inspect
from typing import Callable, List, Optional, Union
import torch
from PIL import Image
from retriever import Retriever, normalize_images, preprocess_images
from transformers import CLIPFeatureExtractor, CLIPModel, CLIPTokenizer
from diffusers import (
AutoencoderKL,
DDIMScheduler,
DiffusionP... | diffusers/examples/research_projects/rdm/pipeline_rdm.py/0 | {
"file_path": "diffusers/examples/research_projects/rdm/pipeline_rdm.py",
"repo_id": "diffusers",
"token_count": 9068
} | 219 |
#!/usr/bin/env bash
function line()
{
echo "----------------------------"
}
version=$@
if [[ $version == "" ]]; then
echo "milvus/proto/go-api version not provided"
line
echo "example:"
echo " make update-milvus-api PROTO_API_VERSION=v2.3.0-dev.1"
echo "test with untagged commit:"
e... | milvus/scripts/update-api-version.sh/0 | {
"file_path": "milvus/scripts/update-api-version.sh",
"repo_id": "milvus",
"token_count": 497
} | 1,859 |
<jupyter_start><jupyter_text>Email Data ExtractionOpenAI functions can be used to extract data from Email. This is another example of getting structured data from unstructured conent using LLamaIndex. The primary objective of this example is to transform raw email content into an easily interpretable JSON format, exemp... | llama_index/docs/examples/usecases/email_data_extraction.ipynb/0 | {
"file_path": "llama_index/docs/examples/usecases/email_data_extraction.ipynb",
"repo_id": "llama_index",
"token_count": 2767
} | 1,129 |
<jupyter_start><jupyter_text>Fine-tune BLIP using Hugging Face `transformers` and `datasets` 🤗This tutorial is largely based from the [GiT tutorial](https://colab.research.google.com/drive/1HLxgrG7xZJ9FvXckNG61J72FkyrbqKAA?usp=sharing) on how to fine-tune GiT on a custom image captioning dataset. Here we will use a du... | notebooks/examples/image_captioning_blip.ipynb/0 | {
"file_path": "notebooks/examples/image_captioning_blip.ipynb",
"repo_id": "notebooks",
"token_count": 2569
} | 318 |
poetry_requirements(
name="poetry",
)
| llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-chatgpt-plugin/BUILD/0 | {
"file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-chatgpt-plugin/BUILD",
"repo_id": "llama_index",
"token_count": 18
} | 1,474 |
# (Gluon) ResNeXt
A **ResNeXt** repeats a [building block](https://paperswithcode.com/method/resnext-block) that aggregates a set of transformations with the same topology. Compared to a [ResNet](https://paperswithcode.com/method/resnet), it exposes a new dimension, *cardinality* (the size of the set of transformatio... | pytorch-image-models/docs/models/.templates/models/gloun-resnext.md/0 | {
"file_path": "pytorch-image-models/docs/models/.templates/models/gloun-resnext.md",
"repo_id": "pytorch-image-models",
"token_count": 1879
} | 329 |
"""Wikipedia tool spec."""
from typing import Any, Dict
from llama_index.core.tools.tool_spec.base import BaseToolSpec
class WikipediaToolSpec(BaseToolSpec):
"""
Specifies two tools for querying information from Wikipedia.
"""
spec_functions = ["load_data", "search_data"]
def load_data(
... | llama_index/llama-index-integrations/tools/llama-index-tools-wikipedia/llama_index/tools/wikipedia/base.py/0 | {
"file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-wikipedia/llama_index/tools/wikipedia/base.py",
"repo_id": "llama_index",
"token_count": 575
} | 1,536 |
from llama_index.readers.telegram.base import TelegramReader
__all__ = ["TelegramReader"]
| llama_index/llama-index-integrations/readers/llama-index-readers-telegram/llama_index/readers/telegram/__init__.py/0 | {
"file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-telegram/llama_index/readers/telegram/__init__.py",
"repo_id": "llama_index",
"token_count": 28
} | 1,534 |
use super::Config;
use crate::models::with_tracing::{linear, linear_no_bias, Linear};
use candle::{Device, IndexOp, Result, Tensor, D};
use candle_nn::{embedding, Conv1d, Conv1dConfig, Embedding, LayerNorm, Module, VarBuilder};
fn conv1d(
in_channels: usize,
out_channels: usize,
kernel_size: usize,
con... | candle/candle-transformers/src/models/whisper/model.rs/0 | {
"file_path": "candle/candle-transformers/src/models/whisper/model.rs",
"repo_id": "candle",
"token_count": 7050
} | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.