text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
--- sidebar_class_name: hidden --- # Analyze Document The AnalyzeDocumentChain can be used as an end-to-end to chain. This chain takes in a single document, splits it up, and then runs it through a CombineDocumentsChain. import CodeBlock from "@theme/CodeBlock"; import AnalyzeDocumentExample from "@examples/chains/a...
langchainjs/docs/core_docs/docs/modules/chains/additional/analyze_document.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/modules/chains/additional/analyze_document.mdx", "repo_id": "langchainjs", "token_count": 202 }
736
"""Weaviate reader.""" from typing import Any, List, Optional from llama_index.legacy.readers.base import BaseReader from llama_index.legacy.schema import Document class WeaviateReader(BaseReader): """Weaviate reader. Retrieves documents from Weaviate through vector lookup. Allows option to concatenate...
llama_index/llama-index-legacy/llama_index/legacy/readers/weaviate/reader.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/readers/weaviate/reader.py", "repo_id": "llama_index", "token_count": 1820 }
1,767
"""Notion tool spec.""" from llama_index.tools.notion.base import ( NotionToolSpec, ) __all__ = [ "NotionToolSpec", ]
llama_index/llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-notion/llama_index/tools/notion/__init__.py", "repo_id": "llama_index", "token_count": 53 }
1,447
import logging from typing import Any, Dict, List, Optional import requests from langchain_core.callbacks import CallbackManagerForLLMRun from langchain_core.language_models.llms import LLM logger = logging.getLogger(__name__) def clean_url(url: str) -> str: """Remove trailing slash and /api from url if present...
langchain/libs/community/langchain_community/llms/koboldai.py/0
{ "file_path": "langchain/libs/community/langchain_community/llms/koboldai.py", "repo_id": "langchain", "token_count": 2228 }
280
{ "name": "@langchain/core", "version": "0.1.29", "description": "Core LangChain.js abstractions and schemas", "type": "module", "engines": { "node": ">=18" }, "main": "./index.js", "types": "./index.d.ts", "repository": { "type": "git", "url": "git@github.com:langchain-ai/langchainjs.git"...
langchainjs/langchain-core/package.json/0
{ "file_path": "langchainjs/langchain-core/package.json", "repo_id": "langchainjs", "token_count": 10589 }
871
import { InputValues, MemoryVariables } from "@langchain/core/memory"; import { getBufferString } from "@langchain/core/messages"; import { BaseChatMemory, BaseChatMemoryInput, } from "@langchain/community/memory/chat_memory"; /** * Interface for the input parameters of the `BufferMemory` class. */ export interf...
langchainjs/langchain/src/memory/buffer_memory.ts/0
{ "file_path": "langchainjs/langchain/src/memory/buffer_memory.ts", "repo_id": "langchainjs", "token_count": 1056 }
905
#!/bin/bash set -x func() { echo "Usage:" echo "run.sh [-p Password]" echo "Password, the password of root" exit -1 } while getopts "hp:" OPT; do case $OPT in p) Password="$OPTARG";; h) func;; ?) func;; esac done pw=$Password # start test standalone reinstall bash test.sh -m standalone -t...
milvus/tests/python_client/deploy/run.sh/0
{ "file_path": "milvus/tests/python_client/deploy/run.sh", "repo_id": "milvus", "token_count": 210 }
1,905
# Storing ## Concept LlamaIndex provides a high-level interface for ingesting, indexing, and querying your external data. Under the hood, LlamaIndex also supports swappable **storage components** that allows you to customize: - **Document stores**: where ingested documents (i.e., `Node` objects) are stored, - **Ind...
llama_index/docs/module_guides/storing/storing.md/0
{ "file_path": "llama_index/docs/module_guides/storing/storing.md", "repo_id": "llama_index", "token_count": 814 }
1,150
/** * Chunk array into arrays of length at most `chunkSize` * * @param chunkSize must be greater than or equal to 1 */ export function chunk<T extends unknown[] | string>(arr: T, chunkSize: number): T[] { if (isNaN(chunkSize) || chunkSize < 1) { throw new RangeError("Invalid chunk size: " + chunkSize); } if (...
chat-ui/src/lib/utils/chunk.ts/0
{ "file_path": "chat-ui/src/lib/utils/chunk.ts", "repo_id": "chat-ui", "token_count": 295 }
102
# Konko All functionality related to Konko >[Konko AI](https://www.konko.ai/) provides a fully managed API to help application developers >1. **Select** the right open source or proprietary LLMs for their application >2. **Build** applications faster with integrations to leading application frameworks and fully manag...
langchain/docs/docs/integrations/providers/konko.mdx/0
{ "file_path": "langchain/docs/docs/integrations/providers/konko.mdx", "repo_id": "langchain", "token_count": 801 }
139
package proxy import ( "encoding/json" "fmt" "math" "reflect" "go.uber.org/zap" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/util/funcutil" "github.com/milvus-io/milvus/pkg/util/merr" "github.com/milvus-io/milvus/pkg/util/para...
milvus/internal/proxy/validate_util.go/0
{ "file_path": "milvus/internal/proxy/validate_util.go", "repo_id": "milvus", "token_count": 6848 }
1,856
poetry_requirements( name="poetry", ) python_requirements( name="reqs", )
llama_index/llama-index-packs/llama-index-packs-rag-evaluator/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-rag-evaluator/BUILD", "repo_id": "llama_index", "token_count": 36 }
1,674
from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.embeddings.gemini import GeminiEmbedding def test_embedding_class(): emb = GeminiEmbedding() assert isinstance(emb, BaseEmbedding)
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gemini/tests/test_embeddings_gemini.py/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gemini/tests/test_embeddings_gemini.py", "repo_id": "llama_index", "token_count": 75 }
1,180
<!--Copyright 2024 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
diffusers/docs/source/ko/training/controlnet.md/0
{ "file_path": "diffusers/docs/source/ko/training/controlnet.md", "repo_id": "diffusers", "token_count": 7782 }
204
{ "embedding_dict": {}, "text_id_to_ref_doc_id": {}, "metadata_dict": {} }
llama_index/llama-index-legacy/storage/image__vector_store.json/0
{ "file_path": "llama_index/llama-index-legacy/storage/image__vector_store.json", "repo_id": "llama_index", "token_count": 32 }
1,790
"""SQL agent.""" from __future__ import annotations import warnings from typing import ( TYPE_CHECKING, Any, Dict, List, Literal, Optional, Sequence, Union, cast, ) from langchain_core.messages import AIMessage, SystemMessage from langchain_core.prompts import BasePromptTemplate, P...
langchain/libs/community/langchain_community/agent_toolkits/sql/base.py/0
{ "file_path": "langchain/libs/community/langchain_community/agent_toolkits/sql/base.py", "repo_id": "langchain", "token_count": 3755 }
227
<!--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/mbart.md/0
{ "file_path": "transformers/docs/source/en/model_doc/mbart.md", "repo_id": "transformers", "token_count": 3130 }
447
package writebuffer import ( "time" "github.com/milvus-io/milvus/internal/allocator" "github.com/milvus-io/milvus/internal/datanode/metacache" "github.com/milvus-io/milvus/internal/datanode/syncmgr" "github.com/milvus-io/milvus/pkg/util/paramtable" ) const ( // DeletePolicyBFPKOracle is the const config value ...
milvus/internal/datanode/writebuffer/options.go/0
{ "file_path": "milvus/internal/datanode/writebuffer/options.go", "repo_id": "milvus", "token_count": 719 }
1,929
"""Test yamlOutputParser""" from enum import Enum from typing import Optional import pytest from langchain_core.exceptions import OutputParserException from langchain_core.pydantic_v1 import BaseModel, Field from langchain.output_parsers.yaml import YamlOutputParser class Actions(Enum): SEARCH = "Search" C...
langchain/libs/langchain/tests/unit_tests/output_parsers/test_yaml_parser.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/output_parsers/test_yaml_parser.py", "repo_id": "langchain", "token_count": 891 }
604
import pytest from langchain_community.llms.openai import OpenAI from langchain_community.utils.openai import is_openai_v1 def _openai_v1_installed() -> bool: try: return is_openai_v1() except Exception as _: return False @pytest.mark.requires("openai") def test_openai_model_param() -> None...
langchain/libs/community/tests/unit_tests/llms/test_openai.py/0
{ "file_path": "langchain/libs/community/tests/unit_tests/llms/test_openai.py", "repo_id": "langchain", "token_count": 727 }
378
from llama_index.agent.openai import ( OpenAIAgent, OpenAIAgentWorker, OpenAIAssistantAgent, ) from llama_index.core.agent.types import BaseAgent, BaseAgentWorker def test_classes(): names_of_base_classes = [b.__name__ for b in OpenAIAgent.__mro__] assert BaseAgent.__name__ in names_of_base_classe...
llama_index/llama-index-integrations/agent/llama-index-agent-openai/tests/test_agent_openai.py/0
{ "file_path": "llama_index/llama-index-integrations/agent/llama-index-agent-openai/tests/test_agent_openai.py", "repo_id": "llama_index", "token_count": 229 }
1,341
from typing import Any, Iterator, List from langchain_core.documents import Document from langchain_community.document_loaders.base import BaseLoader class BaseDataFrameLoader(BaseLoader): def __init__(self, data_frame: Any, *, page_content_column: str = "text"): """Initialize with dataframe object. ...
langchain/libs/community/langchain_community/document_loaders/dataframe.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/dataframe.py", "repo_id": "langchain", "token_count": 810 }
245
package indexparamcheck import ( "strconv" "testing" "github.com/stretchr/testify/assert" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" "github.com/milvus-io/milvus/pkg/util/metric" ) func Test_raftIVFPQChecker_CheckTrain(t *testing.T) { validParams := map[string]string{ DIM: strconv.Itoa(128), ...
milvus/pkg/util/indexparamcheck/raft_ivf_pq_checker_test.go/0
{ "file_path": "milvus/pkg/util/indexparamcheck/raft_ivf_pq_checker_test.go", "repo_id": "milvus", "token_count": 2209 }
2,111
[tool.poetry] name = "sql-pgvector" version = "0.0.1" description = "Use pgvector for combining postgreSQL with semantic search / RAG" authors = [] readme = "README.md" [tool.poetry.dependencies] python = ">=3.8.1,<4.0" langchain = "^0.1" openai = "<2" psycopg2 = "^2.9.9" tiktoken = "^0.5.1" [tool.poetry.group.dev.de...
langchain/templates/sql-pgvector/pyproject.toml/0
{ "file_path": "langchain/templates/sql-pgvector/pyproject.toml", "repo_id": "langchain", "token_count": 288 }
705
python_tests()
llama_index/llama-index-integrations/readers/llama-index-readers-wikipedia/tests/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-wikipedia/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,436
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { z } from "zod"; import { OpenAIClient } from "@langchain/openai"; import { StructuredTool } from "@langchain/core/tools"; import { AgentExecutor } from "../../../agents/executor.js"; import { OpenAIAssistantRunna...
langchainjs/langchain/src/experimental/openai_assistant/tests/openai_assistant.int.test.ts/0
{ "file_path": "langchainjs/langchain/src/experimental/openai_assistant/tests/openai_assistant.int.test.ts", "repo_id": "langchainjs", "token_count": 2178 }
962
"""Test the bash utility.""" import re import subprocess import sys from pathlib import Path import pytest from langchain_experimental.llm_bash.bash import BashProcess @pytest.mark.skipif( sys.platform.startswith("win"), reason="Test not supported on Windows" ) def test_pwd_command() -> None: """Test correc...
langchain/libs/experimental/tests/unit_tests/test_bash.py/0
{ "file_path": "langchain/libs/experimental/tests/unit_tests/test_bash.py", "repo_id": "langchain", "token_count": 1115 }
429
// Code generated by command: go run ip.go -out ip_amd64.s -stubs ip_stub_amd64.go. DO NOT EDIT. package asm // inner product between x and y func IP(x []float32, y []float32) float32
milvus/pkg/util/distance/asm/ip_stub_amd64.go/0
{ "file_path": "milvus/pkg/util/distance/asm/ip_stub_amd64.go", "repo_id": "milvus", "token_count": 67 }
1,899
from langchain_community.tools.wolfram_alpha.tool import WolframAlphaQueryRun __all__ = ["WolframAlphaQueryRun"]
langchain/libs/langchain/langchain/tools/wolfram_alpha/tool.py/0
{ "file_path": "langchain/libs/langchain/langchain/tools/wolfram_alpha/tool.py", "repo_id": "langchain", "token_count": 34 }
571
<jupyter_start><jupyter_text>Faithfulness EvaluatorThis notebook uses the `FaithfulnessEvaluator` module to measure if the response from a query engine matches any source nodes. This is useful for measuring if the response was hallucinated. The data is extracted from the [New York City](https://en.wikipedia.org/wiki/...
llama_index/docs/examples/evaluation/faithfulness_eval.ipynb/0
{ "file_path": "llama_index/docs/examples/evaluation/faithfulness_eval.ipynb", "repo_id": "llama_index", "token_count": 1304 }
1,101
#[cfg(feature = "accelerate")] extern crate accelerate_src; #[cfg(feature = "mkl")] extern crate intel_mkl_src; use candle_transformers::models::stable_diffusion; use candle_transformers::models::wuerstchen; use anyhow::{Error as E, Result}; use candle::{DType, Device, IndexOp, Tensor}; use clap::Parser; use tokeniz...
candle/candle-examples/examples/wuerstchen/main.rs/0
{ "file_path": "candle/candle-examples/examples/wuerstchen/main.rs", "repo_id": "candle", "token_count": 6372 }
51
pipeline { options { timestamps() } agent { kubernetes { label "milvus-test" defaultContainer 'main' yamlFile "build/ci/jenkins/pod/chaos-test.yaml" customWorkspace '/home/jenkins/agent/workspace' // idle 5 minutes to wait clean up ...
milvus/build/ci/jenkins/DeployTest.groovy/0
{ "file_path": "milvus/build/ci/jenkins/DeployTest.groovy", "repo_id": "milvus", "token_count": 10764 }
1,744
# coding=utf-8 # Copyright 2024 The Seamless Authors 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...
transformers/src/transformers/models/wav2vec2_bert/modeling_wav2vec2_bert.py/0
{ "file_path": "transformers/src/transformers/models/wav2vec2_bert/modeling_wav2vec2_bert.py", "repo_id": "transformers", "token_count": 32032 }
698
<jupyter_start><jupyter_text>Arxiv>[arXiv](https://arxiv.org/) is an open-access archive for 2 million scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics.This notebook shows how to ...
langchain/docs/docs/integrations/retrievers/arxiv.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/retrievers/arxiv.ipynb", "repo_id": "langchain", "token_count": 1085 }
165
# 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/models/unets/test_unet_2d_blocks.py/0
{ "file_path": "diffusers/tests/models/unets/test_unet_2d_blocks.py", "repo_id": "diffusers", "token_count": 5186 }
280
import { createClient } from "redis"; import { OpenAIEmbeddings } from "@langchain/openai"; import { RedisVectorStore } from "@langchain/redis"; import { Document } from "@langchain/core/documents"; const client = createClient({ url: process.env.REDIS_URL ?? "redis://localhost:6379", }); await client.connect(); con...
langchainjs/examples/src/indexes/vector_stores/redis/redis.ts/0
{ "file_path": "langchainjs/examples/src/indexes/vector_stores/redis/redis.ts", "repo_id": "langchainjs", "token_count": 333 }
880
poetry_requirements( name="poetry", ) python_requirements( name="reqs", )
llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-typeform/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-airbyte-typeform/BUILD", "repo_id": "llama_index", "token_count": 36 }
1,285
"""Test Minimax API wrapper.""" from langchain_community.llms.minimax import Minimax def test_minimax_call() -> None: """Test valid call to minimax.""" llm = Minimax(max_tokens=10) output = llm("Hello world!") assert isinstance(output, str) def test_minimax_call_successful() -> None: """Test val...
langchain/libs/community/tests/integration_tests/llms/test_minimax.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/llms/test_minimax.py", "repo_id": "langchain", "token_count": 268 }
342
# Copyright 2024 Shuchen Xue, etc. in University of Chinese Academy of Sciences 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 # # htt...
diffusers/src/diffusers/schedulers/scheduling_sasolver.py/0
{ "file_path": "diffusers/src/diffusers/schedulers/scheduling_sasolver.py", "repo_id": "diffusers", "token_count": 24223 }
252
import type { DataSource, DataSourceOptions } from "typeorm"; import { PromptTemplate } from "@langchain/core/prompts"; import { DEFAULT_SQL_DATABASE_PROMPT, SQL_SAP_HANA_PROMPT, SQL_MSSQL_PROMPT, SQL_MYSQL_PROMPT, SQL_POSTGRES_PROMPT, SQL_SQLITE_PROMPT, SQL_ORACLE_PROMPT, } from "../chains/sql_db/sql_db_...
langchainjs/langchain/src/util/sql_utils.ts/0
{ "file_path": "langchainjs/langchain/src/util/sql_utils.ts", "repo_id": "langchainjs", "token_count": 4483 }
933
import { Ollama } from "@langchain/community/llms/ollama"; const ollama = new Ollama({ baseUrl: "http://localhost:11434", // Default value model: "llama2", // Default value }); const stream = await ollama.stream( `Translate "I love programming" into German.` ); const chunks = []; for await (const chunk of stre...
langchainjs/examples/src/models/llm/ollama.ts/0
{ "file_path": "langchainjs/examples/src/models/llm/ollama.ts", "repo_id": "langchainjs", "token_count": 292 }
875
import { jest, afterEach, beforeEach, describe, expect } from "@jest/globals"; import { WolframAlphaTool } from "../wolframalpha.js"; const MOCK_APP_ID = "[MOCK_APP_ID]"; const QUERY_1 = "What is 2 + 2?"; const MOCK_ANSWER = "[MOCK_ANSWER]"; describe("wolfram alpha test suite", () => { // eslint-disable-next-line @...
langchainjs/libs/langchain-community/src/tools/tests/wolframalpha.test.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/tools/tests/wolframalpha.test.ts", "repo_id": "langchainjs", "token_count": 540 }
974
# Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
transformers/src/transformers/models/deformable_detr/__init__.py/0
{ "file_path": "transformers/src/transformers/models/deformable_detr/__init__.py", "repo_id": "transformers", "token_count": 963 }
599
# LlamaIndex Core The core python package to the LlamaIndex library. Core classes and abstractions represent the foundational building blocks for LLM applications, most notably, RAG. Such building blocks include abstractions for LLMs, Vector Stores, Embeddings, Storage, Callables and several others. We've designed th...
llama_index/llama-index-core/README.md/0
{ "file_path": "llama_index/llama-index-core/README.md", "repo_id": "llama_index", "token_count": 150 }
1,160
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
milvus/internal/core/src/segcore/reduce_c.cpp/0
{ "file_path": "milvus/internal/core/src/segcore/reduce_c.cpp", "repo_id": "milvus", "token_count": 1442 }
1,740
package datacoord import ( "testing" "github.com/samber/lo" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" "go.uber.org/zap" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus-proto/go-api/v2/msgpb" "github.com/milvus-io/milvus/internal/proto/datapb" ...
milvus/internal/datacoord/compaction_view_manager_test.go/0
{ "file_path": "milvus/internal/datacoord/compaction_view_manager_test.go", "repo_id": "milvus", "token_count": 2212 }
1,691
import * as url from "node:url"; import * as path from "node:path"; import { test, expect } from "@jest/globals"; import { Document } from "@langchain/core/documents"; import { ChatGPTLoader } from "../fs/chatgpt.js"; test("Test ChatGPT loader to load all documents", async () => { const filePath = path.resolve( ...
langchainjs/langchain/src/document_loaders/tests/chatgpt.test.ts/0
{ "file_path": "langchainjs/langchain/src/document_loaders/tests/chatgpt.test.ts", "repo_id": "langchainjs", "token_count": 908 }
892
# Returning structured output Here is a simple example of an agent which uses LCEL, a web search tool (Tavily) and a structured output parser to create an OpenAI functions agent that returns source chunks. The first step is to import necessary modules import IntegrationInstallTooltip from "@mdx_components/integratio...
langchainjs/docs/core_docs/docs/modules/agents/how_to/agent_structured.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/modules/agents/how_to/agent_structured.mdx", "repo_id": "langchainjs", "token_count": 2138 }
779
--- hide_table_of_contents: true --- import CodeBlock from "@theme/CodeBlock"; # Searxng Search tool The `SearxngSearch` tool connects your agents and chains to the internet. A wrapper around the SearxNG API, this tool is useful for performing meta-search engine queries using the SearxNG API. It is particularly hel...
langchainjs/docs/core_docs/docs/integrations/tools/searxng.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/integrations/tools/searxng.mdx", "repo_id": "langchainjs", "token_count": 202 }
741
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
milvus/internal/core/src/indexbuilder/index_c.cpp/0
{ "file_path": "milvus/internal/core/src/indexbuilder/index_c.cpp", "repo_id": "milvus", "token_count": 12121 }
1,874
python_sources()
llama_index/llama-index-integrations/postprocessor/llama-index-postprocessor-longllmlingua/llama_index/postprocessor/longllmlingua/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/postprocessor/llama-index-postprocessor-longllmlingua/llama_index/postprocessor/longllmlingua/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,387
import { test, expect } from "@jest/globals"; import { PromptTemplate } from "@langchain/core/prompts"; import { BaseLLM } from "@langchain/core/language_models/llms"; import { LLMResult } from "@langchain/core/outputs"; import { ConstitutionalChain } from "../constitutional_ai/constitutional_chain.js"; import { Consti...
langchainjs/langchain/src/chains/tests/constitutional_chain.test.ts/0
{ "file_path": "langchainjs/langchain/src/chains/tests/constitutional_chain.test.ts", "repo_id": "langchainjs", "token_count": 567 }
932
<jupyter_start><jupyter_text>Jupyter Notebook to test Rayyan Loader Install dependencies```bashpip install -r notebook-requirements.txt``` Configure OpenAI with your API keyMake sure you have a file named `.env` in the same directory as this notebook, with the following contents:```OPENAI_API_KEY=OPENAI_ORGANIZATION=...
llama_index/llama-index-integrations/readers/llama-index-readers-rayyan/examples/rayyan-loader.ipynb/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-rayyan/examples/rayyan-loader.ipynb", "repo_id": "llama_index", "token_count": 1266 }
1,421
poetry_requirements( name="poetry", )
llama_index/llama-index-integrations/llms/llama-index-llms-litellm/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-litellm/BUILD", "repo_id": "llama_index", "token_count": 18 }
1,300
<!--版权所有 2020 年 HuggingFace 团队。保留所有权利。 根据 Apache 许可证 2.0 版本许可,除非符合许可证的规定,否则您不得使用此文件。您可以在以下网址获取许可证的副本: http://www.apache.org/licenses/LICENSE-2.0 除非适用法律要求或书面同意,否则依照许可证分发的软件是基于“原样”提供的,不附带任何明示或暗示的担保或条件。有关特定语言下权限的限制和限制,请参阅许可证。--> # 模型 基类 [`PreTrainedModel`]、[`TFPreTrainedModel`] 和 [`FlaxPreTrainedModel`] 实现了从本地文件或目录加载...
transformers/docs/source/zh/main_classes/model.md/0
{ "file_path": "transformers/docs/source/zh/main_classes/model.md", "repo_id": "transformers", "token_count": 3605 }
563
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
transformers/src/transformers/models/auto/configuration_auto.py/0
{ "file_path": "transformers/src/transformers/models/auto/configuration_auto.py", "repo_id": "transformers", "token_count": 24222 }
604
from llama_index.core.llms.base import BaseLLM from llama_index.llms.huggingface import HuggingFaceInferenceAPI, HuggingFaceLLM def test_embedding_class(): names_of_base_classes = [b.__name__ for b in HuggingFaceInferenceAPI.__mro__] assert BaseLLM.__name__ in names_of_base_classes names_of_base_classes ...
llama_index/llama-index-integrations/llms/llama-index-llms-huggingface/tests/test_llms_huggingface.py/0
{ "file_path": "llama_index/llama-index-integrations/llms/llama-index-llms-huggingface/tests/test_llms_huggingface.py", "repo_id": "llama_index", "token_count": 159 }
1,223
import argparse import logging import os from pathlib import Path from typing import Any, Dict import pytorch_lightning as pl from pytorch_lightning.utilities import rank_zero_info from transformers import ( AdamW, AutoConfig, AutoModel, AutoModelForPreTraining, AutoModelForQuestionAnswering, ...
transformers/examples/legacy/pytorch-lightning/lightning_base.py/0
{ "file_path": "transformers/examples/legacy/pytorch-lightning/lightning_base.py", "repo_id": "transformers", "token_count": 6603 }
522
<jupyter_start><jupyter_text>Timescale Vector (Postgres)>[Timescale Vector](https://www.timescale.com/ai?utm_campaign=vectorlaunch&utm_source=langchain&utm_medium=referral) is `PostgreSQL++` vector database for AI applications.This notebook shows how to use the Postgres vector database `Timescale Vector`. You'll learn ...
langchain/docs/docs/integrations/vectorstores/timescalevector.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/vectorstores/timescalevector.ipynb", "repo_id": "langchain", "token_count": 10968 }
196
/*! ************************************************************************************************** * Deformable DETR * Copyright (c) 2020 SenseTime. All Rights Reserved. * Licensed under the Apache License, Version 2.0 [see LICENSE for details] ***********************************************************************...
transformers/src/transformers/kernels/deformable_detr/cpu/ms_deform_attn_cpu.cpp/0
{ "file_path": "transformers/src/transformers/kernels/deformable_detr/cpu/ms_deform_attn_cpu.cpp", "repo_id": "transformers", "token_count": 406 }
636
"""Init file."""
llama_index/llama-index-legacy/tests/token_predictor/__init__.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/token_predictor/__init__.py", "repo_id": "llama_index", "token_count": 6 }
1,762
from typing import Any, Dict, Sequence, Tuple from llama_index.core.base.llms.types import ( ChatMessage, ChatResponse, ChatResponseAsyncGen, ChatResponseGen, CompletionResponse, CompletionResponseAsyncGen, CompletionResponseGen, MessageRole, ) from llama_index.core.bridge.pydantic impo...
llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-ollama/llama_index/multi_modal_llms/ollama/base.py/0
{ "file_path": "llama_index/llama-index-integrations/multi_modal_llms/llama-index-multi-modal-llms-ollama/llama_index/multi_modal_llms/ollama/base.py", "repo_id": "llama_index", "token_count": 3329 }
1,341
# 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/conditional_detr/configuration_conditional_detr.py/0
{ "file_path": "transformers/src/transformers/models/conditional_detr/configuration_conditional_detr.py", "repo_id": "transformers", "token_count": 5203 }
636
"""Flat reader.""" from pathlib import Path from typing import Any, Dict, List, Optional from llama_index.core.readers.base import BaseReader from llama_index.core.schema import Document class FlatReader(BaseReader): """Flat reader. Extract raw text from a file and save the file type in the metadata """...
llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/flat/base.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/flat/base.py", "repo_id": "llama_index", "token_count": 365 }
1,347
import { CohereClient, Cohere } from "cohere-ai"; import { MessageType, type BaseMessage, MessageContent, AIMessage, } from "@langchain/core/messages"; import { type BaseLanguageModelCallOptions } from "@langchain/core/language_models/base"; import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/m...
langchainjs/libs/langchain-cohere/src/chat_models.ts/0
{ "file_path": "langchainjs/libs/langchain-cohere/src/chat_models.ts", "repo_id": "langchainjs", "token_count": 4238 }
976
"""Metaphor tool spec.""" import datetime from typing import List, Optional from llama_index.core.schema import Document from llama_index.core.tools.tool_spec.base import BaseToolSpec class MetaphorToolSpec(BaseToolSpec): """Metaphor tool spec.""" spec_functions = [ "search", "retrieve_docu...
llama_index/llama-index-integrations/tools/llama-index-tools-metaphor/llama_index/tools/metaphor/base.py/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-metaphor/llama_index/tools/metaphor/base.py", "repo_id": "llama_index", "token_count": 2337 }
1,516
# Show best practices for SDXL JAX import time import jax import jax.numpy as jnp import numpy as np from flax.jax_utils import replicate # Let's cache the model compilation, so that it doesn't take as long the next time around. from jax.experimental.compilation_cache import compilation_cache as cc from diffusers im...
diffusers/examples/research_projects/sdxl_flax/sdxl_single.py/0
{ "file_path": "diffusers/examples/research_projects/sdxl_flax/sdxl_single.py", "repo_id": "diffusers", "token_count": 1341 }
218
import io import random import struct import tempfile from contextlib import contextmanager from typing import List, Union import numpy as np import PIL.Image import PIL.ImageOps from .import_utils import ( BACKENDS_MAPPING, is_opencv_available, ) from .logging import get_logger global_rng = random.Random()...
diffusers/src/diffusers/utils/export_utils.py/0
{ "file_path": "diffusers/src/diffusers/utils/export_utils.py", "repo_id": "diffusers", "token_count": 2024 }
262
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/datanode/importv2/task.go/0
{ "file_path": "milvus/internal/datanode/importv2/task.go", "repo_id": "milvus", "token_count": 3224 }
1,702
"""Test Bittensor Validator Endpoint wrapper.""" from langchain_community.llms import NIBittensorLLM def test_bittensor_call() -> None: """Test valid call to validator endpoint.""" llm = NIBittensorLLM(system_prompt="Your task is to answer user prompt.") output = llm("Say foo:") assert isinstance(out...
langchain/libs/community/tests/integration_tests/llms/test_bittensor.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/llms/test_bittensor.py", "repo_id": "langchain", "token_count": 110 }
336
// 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/message.go/0
{ "file_path": "milvus/pkg/mq/msgstream/mqwrapper/message.go", "repo_id": "milvus", "token_count": 335 }
1,890
<!--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/fast_diffusion.md/0
{ "file_path": "diffusers/docs/source/en/tutorials/fast_diffusion.md", "repo_id": "diffusers", "token_count": 4863 }
171
from typing import Any, List, Optional from llama_index.legacy.bridge.pydantic import Field, PrivateAttr from llama_index.legacy.callbacks import CallbackManager from llama_index.legacy.core.embeddings.base import ( DEFAULT_EMBED_BATCH_SIZE, BaseEmbedding, ) from llama_index.legacy.embeddings.huggingface_utils...
llama_index/llama-index-legacy/llama_index/legacy/embeddings/instructor.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/embeddings/instructor.py", "repo_id": "llama_index", "token_count": 1513 }
1,559
import logging from typing import List, Optional import requests from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.callbacks.base import CallbackManager from llama_index.core.constants import DEFAULT_SIMILARITY_TOP_K from llama_index.core.schema import NodeWithScore, QueryBundle, Tex...
llama_index/llama-index-integrations/indices/llama-index-indices-managed-zilliz/llama_index/indices/managed/zilliz/retriever.py/0
{ "file_path": "llama_index/llama-index-integrations/indices/llama-index-indices-managed-zilliz/llama_index/indices/managed/zilliz/retriever.py", "repo_id": "llama_index", "token_count": 1245 }
1,386
""" EfficientNet, MobileNetV3, etc Blocks Hacked together by / Copyright 2019, Ross Wightman """ import torch import torch.nn as nn from torch.nn import functional as F from timm.layers import create_conv2d, DropPath, make_divisible, create_act_layer, get_norm_act_layer __all__ = [ 'SqueezeExcite', 'ConvBnAct',...
pytorch-image-models/timm/models/_efficientnet_blocks.py/0
{ "file_path": "pytorch-image-models/timm/models/_efficientnet_blocks.py", "repo_id": "pytorch-image-models", "token_count": 5589 }
359
import os from pathlib import Path from typing import Dict import pytest from langchain_core.documents import Document from pytest_mock import MockerFixture from langchain_community.document_loaders import CSVLoader, PyPDFLoader EXAMPLE_DOCS_DIRECTORY = str(Path(__file__).parent.parent.parent / "examples/") class ...
langchain/libs/community/tests/unit_tests/document_loaders/test_pebblo.py/0
{ "file_path": "langchain/libs/community/tests/unit_tests/document_loaders/test_pebblo.py", "repo_id": "langchain", "token_count": 1335 }
403
{ "name": "langchain-nextjs-template", "version": "0.0.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint", "format": "prettier --write \"app\"" }, "engines": { "node": ">=18" }, "dependencies": { "@langchain/...
langchain-nextjs-template/package.json/0
{ "file_path": "langchain-nextjs-template/package.json", "repo_id": "langchain-nextjs-template", "token_count": 702 }
67
# (Tensorflow) EfficientNet Lite **EfficientNet** is a convolutional neural network architecture and scaling method that uniformly scales all dimensions of depth/width/resolution using a *compound coefficient*. Unlike conventional practice that arbitrary scales these factors, the EfficientNet scaling method uniformly...
pytorch-image-models/hfdocs/source/models/tf-efficientnet-lite.mdx/0
{ "file_path": "pytorch-image-models/hfdocs/source/models/tf-efficientnet-lite.mdx", "repo_id": "pytorch-image-models", "token_count": 3373 }
377
[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 = ["PineconeReader"] contains_example = false import_path = "llama_index.readers.pinecone" [...
llama_index/llama-index-integrations/readers/llama-index-readers-pinecone/pyproject.toml/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-pinecone/pyproject.toml", "repo_id": "llama_index", "token_count": 659 }
1,506
<!--- 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/ISSUES.md/0
{ "file_path": "transformers/ISSUES.md", "repo_id": "transformers", "token_count": 4684 }
439
import { OpenAI } from "@langchain/openai"; import { PromptTemplate } from "@langchain/core/prompts"; import { CustomListOutputParser } from "@langchain/core/output_parsers"; import { RunnableSequence } from "@langchain/core/runnables"; // With a `CustomListOutputParser`, we can parse a list with a specific length and...
langchainjs/examples/src/prompts/custom_list_parser_sequence.ts/0
{ "file_path": "langchainjs/examples/src/prompts/custom_list_parser_sequence.ts", "repo_id": "langchainjs", "token_count": 327 }
815
python_sources()
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-huggingface/llama_index/embeddings/huggingface/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-huggingface/llama_index/embeddings/huggingface/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,198
/* eslint-disable @typescript-eslint/no-explicit-any */ import { bertProcessing, byteLevelProcessing, robertaProcessing, sequenceProcessing, templateProcessing } from '../../' describe('bertProcessing', () => { it('instantiates correctly with only two parameters', () => { const processor = bertProcessing(['sep'...
tokenizers/bindings/node/lib/bindings/post-processors.test.ts/0
{ "file_path": "tokenizers/bindings/node/lib/bindings/post-processors.test.ts", "repo_id": "tokenizers", "token_count": 1022 }
406
# Copyright 2023 Mistral AI 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/LICENSE-2.0 # # Unless r...
transformers/src/transformers/models/mistral/__init__.py/0
{ "file_path": "transformers/src/transformers/models/mistral/__init__.py", "repo_id": "transformers", "token_count": 935 }
712
"""Test octoai embeddings.""" from langchain_community.embeddings.octoai_embeddings import ( OctoAIEmbeddings, ) def test_octoai_embedding_documents() -> None: """Test octoai embeddings.""" documents = ["foo bar"] embedding = OctoAIEmbeddings( endpoint_url="<endpoint_url>", octoai_api...
langchain/libs/community/tests/integration_tests/embeddings/test_octoai_embeddings.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/embeddings/test_octoai_embeddings.py", "repo_id": "langchain", "token_count": 428 }
349
import torch from diffusers import CMStochasticIterativeScheduler from .test_schedulers import SchedulerCommonTest class CMStochasticIterativeSchedulerTest(SchedulerCommonTest): scheduler_classes = (CMStochasticIterativeScheduler,) num_inference_steps = 10 def get_scheduler_config(self, **kwargs): ...
diffusers/tests/schedulers/test_scheduler_consistency_model.py/0
{ "file_path": "diffusers/tests/schedulers/test_scheduler_consistency_model.py", "repo_id": "diffusers", "token_count": 3029 }
298
import json import os import time from benedict import benedict from utils.util_log import test_log as log from common.cus_resource_opts import CustomResourceOperations as CusResource template_yaml = os.path.join(os.path.dirname(__file__), 'template/default.yaml') MILVUS_GRP = 'milvus.io' # MILVUS_VER = 'v1alpha1' MIL...
milvus/tests/python_client/customize/milvus_operator.py/0
{ "file_path": "milvus/tests/python_client/customize/milvus_operator.py", "repo_id": "milvus", "token_count": 2995 }
1,904
import { ChatOpenAI, OpenAI } from "@langchain/openai"; import { StringOutputParser } from "@langchain/core/output_parsers"; import { ChatPromptTemplate, PromptTemplate } from "@langchain/core/prompts"; const chatPrompt = ChatPromptTemplate.fromMessages<{ animal: string }>([ [ "system", "You're a nice assist...
langchainjs/examples/src/guides/fallbacks/chain.ts/0
{ "file_path": "langchainjs/examples/src/guides/fallbacks/chain.ts", "repo_id": "langchainjs", "token_count": 381 }
797
// 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/proxy/util_test.go/0
{ "file_path": "milvus/internal/proxy/util_test.go", "repo_id": "milvus", "token_count": 24785 }
1,890
// 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/rootcoord/meta_table.go/0
{ "file_path": "milvus/internal/rootcoord/meta_table.go", "repo_id": "milvus", "token_count": 17016 }
1,854
# Spreedly >[Spreedly](https://docs.spreedly.com/) is a service that allows you to securely store credit cards and use them to transact against any number of payment gateways and third party APIs. It does this by simultaneously providing a card tokenization/vault service as well as a gateway and receiver integration s...
langchain/docs/docs/integrations/providers/spreedly.mdx/0
{ "file_path": "langchain/docs/docs/integrations/providers/spreedly.mdx", "repo_id": "langchain", "token_count": 194 }
159
const keyboardShortcuts = []; docsearch({ container: "#searchbox", appId: "74VN1YECLR", indexName: "gpt-index", apiKey: "fb20bbeb2c3b7f63f89bacf797bf3a34", });
llama_index/docs/_static/js/algolia.js/0
{ "file_path": "llama_index/docs/_static/js/algolia.js", "repo_id": "llama_index", "token_count": 76 }
1,109
import { NodeHandler, ASTParser } from "./base.js"; import { StringLiteralType } from "./types.js"; /** * Handler for string literal nodes in the LangChain Expression Language. * Extends the NodeHandler base class. */ export class StringLiteralHandler extends NodeHandler { /** * Checks if a given node is a str...
langchainjs/langchain/src/output_parsers/expression_type_handlers/string_literal_handler.ts/0
{ "file_path": "langchainjs/langchain/src/output_parsers/expression_type_handlers/string_literal_handler.ts", "repo_id": "langchainjs", "token_count": 466 }
922
"""Reader that pulls in a BoardDocs site.""" import json from typing import Any, List, Optional import html2text import requests from bs4 import BeautifulSoup from llama_index.core.readers.base import BaseReader from llama_index.core.schema import Document class BoardDocsReader(BaseReader): """BoardDocs doc rea...
llama_index/llama-index-integrations/readers/llama-index-readers-boarddocs/llama_index/readers/boarddocs/base.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-boarddocs/llama_index/readers/boarddocs/base.py", "repo_id": "llama_index", "token_count": 1971 }
1,345
<jupyter_start><jupyter_text>Redis>[Redis vector database](https://redis.io/docs/get-started/vector-database/) introduction and langchain integration guide. What is Redis?Most developers from a web services background are familiar with `Redis`. At its core, `Redis` is an open-source key-value store that is used as a ca...
langchain/docs/docs/integrations/vectorstores/redis.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/vectorstores/redis.ipynb", "repo_id": "langchain", "token_count": 7518 }
194
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-empty-function */ import { TruncationStrategy, BPE, Encoding, AddedToken, Tokenizer } from '../../' // jest.mock('../../bindings/tokenizer'); // jest.mock('../../bindings/models', () => ({ // __esModule: true, // Model...
tokenizers/bindings/node/lib/bindings/tokenizer.test.ts/0
{ "file_path": "tokenizers/bindings/node/lib/bindings/tokenizer.test.ts", "repo_id": "tokenizers", "token_count": 5268 }
450
# 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/trocr/processing_trocr.py/0
{ "file_path": "transformers/src/transformers/models/trocr/processing_trocr.py", "repo_id": "transformers", "token_count": 2190 }
702
import { Stack, createStyles, Text, useMantineTheme } from "@mantine/core"; import { Dropzone, MIME_TYPES } from "@mantine/dropzone"; import { notifications } from "@mantine/notifications"; import { IconFile, IconUpload, IconX } from "@tabler/icons-react"; import Papa from "papaparse"; import { QAPair } from "../utils/...
auto-evaluator/nextjs/components/TestFileUploadZone.tsx/0
{ "file_path": "auto-evaluator/nextjs/components/TestFileUploadZone.tsx", "repo_id": "auto-evaluator", "token_count": 1998 }
0
from langchain_community.llms.google_palm import GooglePalm __all__ = ["GooglePalm"]
langchain/libs/langchain/langchain/llms/google_palm.py/0
{ "file_path": "langchain/libs/langchain/langchain/llms/google_palm.py", "repo_id": "langchain", "token_count": 29 }
520
poetry_requirements( name="poetry", ) python_requirements( name="reqs", )
llama_index/llama-index-packs/llama-index-packs-neo4j-query-engine/BUILD/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-neo4j-query-engine/BUILD", "repo_id": "llama_index", "token_count": 36 }
1,803