text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
<script lang="ts"> import { fade } from "svelte/transition"; import IconDazzled from "$lib/components/icons/IconDazzled.svelte"; export let message = ""; </script> <div transition:fade|global={{ duration: 300 }} class="pointer-events-none fixed right-0 top-12 z-20 bg-gradient-to-bl from-red-500/20 via-red-500/0...
chat-ui/src/lib/components/Toast.svelte/0
{ "file_path": "chat-ui/src/lib/components/Toast.svelte", "repo_id": "chat-ui", "token_count": 259 }
102
from llama_index.core.readers.base import BaseReader from llama_index.readers.wordlift import WordLiftLoader def test_class(): names_of_base_classes = [b.__name__ for b in WordLiftLoader.__mro__] assert BaseReader.__name__ in names_of_base_classes
llama_index/llama-index-integrations/readers/llama-index-readers-wordlift/tests/test_readers_wordlift.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-wordlift/tests/test_readers_wordlift.py", "repo_id": "llama_index", "token_count": 90 }
1,438
from langchain.schema.runnable.retry import __all__ EXPECTED_ALL = ["RunnableRetry", "U"] def test_all_imports() -> None: assert set(__all__) == set(EXPECTED_ALL)
langchain/libs/langchain/tests/unit_tests/schema/runnable/test_retry.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/schema/runnable/test_retry.py", "repo_id": "langchain", "token_count": 69 }
615
import { logVersion010MigrationWarning } from "../../util/entrypoint_deprecation.js"; /* #__PURE__ */ logVersion010MigrationWarning({ oldEntrypointName: "stores/message/dynamodb", }); export * from "@langchain/community/stores/message/dynamodb";
langchainjs/langchain/src/stores/message/dynamodb.ts/0
{ "file_path": "langchainjs/langchain/src/stores/message/dynamodb.ts", "repo_id": "langchainjs", "token_count": 79 }
912
# Llama Packs 🦙📦 ## Concept Llama Packs are a community-driven hub of **prepackaged modules/templates** you can use to kickstart your LLM app. This directly tackles a big pain point in building LLM apps; every use case requires cobbling together custom components and a lot of tuning/dev time. Our goal is to accele...
llama_index/docs/community/llama_packs/root.md/0
{ "file_path": "llama_index/docs/community/llama_packs/root.md", "repo_id": "llama_index", "token_count": 721 }
1,040
import random import torch from huggingface_hub import HfApi from diffusers import UNet2DModel api = HfApi() results = {} # fmt: off results["google_ddpm_cifar10_32"] = torch.tensor([ -0.7515, -1.6883, 0.2420, 0.0300, 0.6347, 1.3433, -1.1743, -3.7467, 1.2342, -2.2485, 0.4636, 0.8076, -0.7991, 0.3969, 0.849...
diffusers/scripts/generate_logits.py/0
{ "file_path": "diffusers/scripts/generate_logits.py", "repo_id": "diffusers", "token_count": 3536 }
229
# coding=utf-8 # Copyright 2020, The RAG Authors and 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 r...
transformers/src/transformers/models/rag/modeling_rag.py/0
{ "file_path": "transformers/src/transformers/models/rag/modeling_rag.py", "repo_id": "transformers", "token_count": 36357 }
711
import os from operator import itemgetter from typing import List, Tuple from langchain.schema import AIMessage, HumanMessage, format_document from langchain_community.chat_models import ChatOpenAI from langchain_community.vectorstores.zep import CollectionConfig, ZepVectorStore from langchain_core.documents import Do...
langchain/templates/rag-conversation-zep/rag_conversation_zep/chain.py/0
{ "file_path": "langchain/templates/rag-conversation-zep/rag_conversation_zep/chain.py", "repo_id": "langchain", "token_count": 1720 }
679
search_performance: collections: - server: db_config.primary_path: /test/milvus/db_data_011/sift_10m_100000_128_l2 cache_config.cpu_cache_capacity: 32GB engine_config.use_blas_threshold: 0 engine_config.gpu_search_threshold: 100 gpu_resource_config.enable: true ...
milvus/tests/benchmark/milvus_benchmark/suites/011_gpu_search_sift10m_100k.yaml/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_gpu_search_sift10m_100k.yaml", "repo_id": "milvus", "token_count": 2017 }
2,002
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/querycoordv2/observers/target_observer_test.go/0
{ "file_path": "milvus/internal/querycoordv2/observers/target_observer_test.go", "repo_id": "milvus", "token_count": 3645 }
1,844
from typing import List from langchain_core.embeddings import Embeddings class __ModuleName__Embeddings(Embeddings): """__ModuleName__Embeddings embedding model. Example: .. code-block:: python from __module_name__ import __ModuleName__Embeddings model = __ModuleName__Embed...
langchain/libs/cli/langchain_cli/integration_template/integration_template/embeddings.py/0
{ "file_path": "langchain/libs/cli/langchain_cli/integration_template/integration_template/embeddings.py", "repo_id": "langchain", "token_count": 393 }
199
# coding=utf-8 # Copyright 2022 Facebook 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-...
transformers/src/transformers/models/vit_mae/modeling_vit_mae.py/0
{ "file_path": "transformers/src/transformers/models/vit_mae/modeling_vit_mae.py", "repo_id": "transformers", "token_count": 17941 }
764
search_performance: collections: - server: db_config.primary_path: /test/milvus/db_data_011/filter/sift_10m_128_l2/ cache_config.cpu_cache_capacity: 32GB engine_config.use_blas_threshold: 0 engine_config.gpu_search_threshold: 100 gpu_resource_config.enable: true ...
milvus/tests/benchmark/milvus_benchmark/suites/011_search_dsl.yaml/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/suites/011_search_dsl.yaml", "repo_id": "milvus", "token_count": 1408 }
1,970
from llama_index.core.postprocessor.types import BaseNodePostprocessor from llama_index.postprocessor.longllmlingua import LongLLMLinguaPostprocessor def test_class(): names_of_base_classes = [b.__name__ for b in LongLLMLinguaPostprocessor.__mro__] assert BaseNodePostprocessor.__name__ in names_of_base_classe...
llama_index/llama-index-integrations/postprocessor/llama-index-postprocessor-longllmlingua/tests/test_postprocessor_longllmlingua.py/0
{ "file_path": "llama_index/llama-index-integrations/postprocessor/llama-index-postprocessor-longllmlingua/tests/test_postprocessor_longllmlingua.py", "repo_id": "llama_index", "token_count": 103 }
1,437
use std::ffi::CString; use std::ffi::{c_char, c_int}; use crate::errors::{ChromaError, ErrorCodes}; use super::{Index, IndexConfig, PersistentIndex}; use crate::types::{Metadata, MetadataValue, MetadataValueConversionError, Segment}; use thiserror::Error; // https://doc.rust-lang.org/nomicon/ffi.html#representing-op...
chroma/rust/worker/src/index/hnsw.rs/0
{ "file_path": "chroma/rust/worker/src/index/hnsw.rs", "repo_id": "chroma", "token_count": 9395 }
55
<jupyter_start><jupyter_text>LLM Reranker Demonstration (Great Gatsby)This tutorial showcases how to do a two-stage pass for retrieval. Use embedding-based retrieval with a high top-k valuein order to maximize recall and get a large set of candidate items. Then, use LLM-based retrievalto dynamically select the nodes th...
llama_index/docs/examples/node_postprocessor/LLMReranker-Gatsby.ipynb/0
{ "file_path": "llama_index/docs/examples/node_postprocessor/LLMReranker-Gatsby.ipynb", "repo_id": "llama_index", "token_count": 1874 }
1,202
# Copyright 2024 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
diffusers/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py/0
{ "file_path": "diffusers/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py", "repo_id": "diffusers", "token_count": 12075 }
251
use crate::processors::byte_level::process_offsets; use crate::tokenizer::{Encoding, PostProcessor, Result}; use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::iter::FromIterator; #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] #[serde(tag = "type")] pub struct RobertaProcessin...
tokenizers/tokenizers/src/processors/roberta.rs/0
{ "file_path": "tokenizers/tokenizers/src/processors/roberta.rs", "repo_id": "tokenizers", "token_count": 8419 }
457
# coding=utf-8 # Copyright 2022 Meta Platforms 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/licens...
transformers/tests/models/flava/test_modeling_flava.py/0
{ "file_path": "transformers/tests/models/flava/test_modeling_flava.py", "repo_id": "transformers", "token_count": 25176 }
713
python_sources()
llama_index/llama-index-legacy/llama_index/legacy/callbacks/BUILD/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/callbacks/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,640
# LLMonitor >[LLMonitor](https://llmonitor.com?utm_source=langchain&utm_medium=py&utm_campaign=docs) is an open-source observability platform that provides cost and usage analytics, user tracking, tracing and evaluation tools. ## Installation and Setup Create an account on [llmonitor.com](https://llmonitor.com?utm_s...
langchain/docs/docs/integrations/providers/llmonitor.mdx/0
{ "file_path": "langchain/docs/docs/integrations/providers/llmonitor.mdx", "repo_id": "langchain", "token_count": 194 }
137
<!-- DISABLE-FRONTMATTER-SECTIONS --> # Tokenizers Fast State-of-the-art tokenizers, optimized for both research and production [🤗 Tokenizers](https://github.com/huggingface/tokenizers) provides an implementation of today's most used tokenizers, with a focus on performance and versatility. These tokenizers are also...
tokenizers/docs/source-doc-builder/index.mdx/0
{ "file_path": "tokenizers/docs/source-doc-builder/index.mdx", "repo_id": "tokenizers", "token_count": 250 }
450
poetry_requirements( name="poetry", )
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-upstash/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-upstash/BUILD", "repo_id": "llama_index", "token_count": 18 }
1,629
from typing import List from llama_index.core.bridge.pydantic import BaseModel from llama_index.core.prompts.guidance_utils import ( convert_to_handlebars, pydantic_to_guidance_output_template, ) def test_convert_to_handlebars() -> None: test_str = "This is a string with {variable} and {{key: value}}" ...
llama_index/llama-index-core/tests/prompts/test_guidance_utils.py/0
{ "file_path": "llama_index/llama-index-core/tests/prompts/test_guidance_utils.py", "repo_id": "llama_index", "token_count": 523 }
1,324
# Play with Huggy [[play]] Now that you've trained Huggy and pushed it to the Hub. **You will be able to play with him ❤️** For this step it’s simple: - Open the Huggy game in your browser: https://huggingface.co/spaces/ThomasSimonini/Huggy - Click on Play with my Huggy model <img src="https://huggingface.co/datase...
deep-rl-class/units/en/unitbonus1/play.mdx/0
{ "file_path": "deep-rl-class/units/en/unitbonus1/play.mdx", "repo_id": "deep-rl-class", "token_count": 271 }
160
// 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/util_test.go/0
{ "file_path": "milvus/internal/rootcoord/util_test.go", "repo_id": "milvus", "token_count": 2861 }
1,858
import os import random import gc import time # Borrowed from https://github.com/rogerbinns/apsw/blob/master/apsw/tests.py#L224 # Used to delete sqlite files on Windows, since Windows file locking # behaves differently to other operating systems # This should only be used for test or non-production code, such as in r...
chroma/chromadb/utils/delete_file.py/0
{ "file_path": "chroma/chromadb/utils/delete_file.py", "repo_id": "chroma", "token_count": 570 }
25
"""Filter that uses an LLM to drop documents that aren't relevant to the query.""" from typing import Any, Callable, Dict, Optional, Sequence from langchain_core.documents import Document from langchain_core.language_models import BaseLanguageModel from langchain_core.prompts import BasePromptTemplate, PromptTemplate ...
langchain/libs/langchain/langchain/retrievers/document_compressors/chain_filter.py/0
{ "file_path": "langchain/libs/langchain/langchain/retrievers/document_compressors/chain_filter.py", "repo_id": "langchain", "token_count": 1012 }
580
import { collapseDocs, splitListOfDocs, } from "langchain/chains/combine_documents/reduce"; import { ChatOpenAI } from "@langchain/openai"; import { formatDocument } from "langchain/schema/prompt_template"; import { RunnablePassthrough, RunnableSequence, } from "@langchain/core/runnables"; import { BaseCallback...
langchainjs/examples/src/chains/map_reduce_lcel.ts/0
{ "file_path": "langchainjs/examples/src/chains/map_reduce_lcel.ts", "repo_id": "langchainjs", "token_count": 1980 }
761
import pytest from langchain_core.messages import AIMessage, HumanMessage, SystemMessage from langchain_community.chat_models.llama_edge import LlamaEdgeChatService @pytest.mark.enable_socket def test_chat_wasm_service() -> None: """This test requires the port 8080 is not occupied.""" # service url serv...
langchain/libs/community/tests/integration_tests/chat_models/test_llama_edge.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/chat_models/test_llama_edge.py", "repo_id": "langchain", "token_count": 541 }
350
from langchain_community.utilities.sql_database import ( SQLDatabase, truncate_word, ) __all__ = ["truncate_word", "SQLDatabase"]
langchain/libs/langchain/langchain/utilities/sql_database.py/0
{ "file_path": "langchain/libs/langchain/langchain/utilities/sql_database.py", "repo_id": "langchain", "token_count": 50 }
575
{ "name": "@langchain/azure-openai", "version": "0.0.1", "description": "Azure SDK for OpenAI integrations for LangChain.js", "type": "module", "engines": { "node": ">=18" }, "main": "./index.js", "types": "./index.d.ts", "repository": { "type": "git", "url": "git@github.com:langchain-ai/l...
langchainjs/libs/langchain-azure-openai/package.json/0
{ "file_path": "langchainjs/libs/langchain-azure-openai/package.json", "repo_id": "langchainjs", "token_count": 1826 }
971
<jupyter_start><jupyter_text>Agent Trajectory[](https://colab.research.google.com/github/langchain-ai/langchain/blob/master/docs/docs/guides/evaluation/trajectory/trajectory_eval.ipynb)Agents can be difficult to holistically evaluate due to the breadth of actions and generation they can make. We recommend using multipl...
langchain/docs/docs/guides/evaluation/trajectory/trajectory_eval.ipynb/0
{ "file_path": "langchain/docs/docs/guides/evaluation/trajectory/trajectory_eval.ipynb", "repo_id": "langchain", "token_count": 1822 }
91
fn main() { println!("cargo:rerun-if-changed=build.rs"); let builder = bindgen_cuda::Builder::default(); println!("cargo:info={builder:?}"); let bindings = builder.build_ptx().unwrap(); bindings.write("src/lib.rs").unwrap(); }
candle/candle-kernels/build.rs/0
{ "file_path": "candle/candle-kernels/build.rs", "repo_id": "candle", "token_count": 96 }
57
from unittest.mock import MagicMock, patch import pytest try: import google.ai.generativelanguage as genai has_google = True except ImportError: has_google = False from llama_index.legacy.response_synthesizers.google.generativeai import ( GoogleTextSynthesizer, set_google_config, ) from llama_in...
llama_index/llama-index-legacy/tests/response_synthesizers/test_google.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/response_synthesizers/test_google.py", "repo_id": "llama_index", "token_count": 4788 }
1,816
syntax = "proto3"; package milvus.proto.etcd; option go_package="github.com/milvus-io/milvus/internal/proto/etcdpb"; import "common.proto"; import "schema.proto"; // this proto only used to describe object that will persist into etcd message IndexInfo { string index_name = 1; int64 indexID = 2; repeated common...
milvus/internal/proto/etcd_meta.proto/0
{ "file_path": "milvus/internal/proto/etcd_meta.proto", "repo_id": "milvus", "token_count": 993 }
1,839
package gcp import ( "net/http" "strings" "github.com/cockroachdb/errors" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" "go.uber.org/atomic" "golang.org/x/oauth2" "golang.org/x/oauth2/google" ) // WrapHTTPTransport wraps http.Transport, add an auth header to support GCP native...
milvus/internal/storage/gcp/gcp.go/0
{ "file_path": "milvus/internal/storage/gcp/gcp.go", "repo_id": "milvus", "token_count": 939 }
1,786
# 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 required by appl...
trl/examples/research_projects/stack_llama/scripts/rl_training.py/0
{ "file_path": "trl/examples/research_projects/stack_llama/scripts/rl_training.py", "repo_id": "trl", "token_count": 3627 }
880
from langchain_community.document_loaders.etherscan import EtherscanLoader __all__ = ["EtherscanLoader"]
langchain/libs/langchain/langchain/document_loaders/etherscan.py/0
{ "file_path": "langchain/libs/langchain/langchain/document_loaders/etherscan.py", "repo_id": "langchain", "token_count": 30 }
489
from langchain.document_loaders.parsers import __all__ def test_parsers_public_api_correct() -> None: """Test public API of parsers for breaking changes.""" assert set(__all__) == { "BS4HTMLParser", "DocAIParser", "GrobidParser", "LanguageParser", "OpenAIWhisperParser",...
langchain/libs/langchain/tests/unit_tests/document_loaders/parsers/test_public_api.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/document_loaders/parsers/test_public_api.py", "repo_id": "langchain", "token_count": 210 }
603
"""Power BI agent.""" from __future__ import annotations from typing import TYPE_CHECKING, Any, Dict, List, Optional from langchain_core.callbacks import BaseCallbackManager from langchain_core.language_models.chat_models import BaseChatModel from langchain_community.agent_toolkits.powerbi.prompt import ( POWERB...
langchain/libs/community/langchain_community/agent_toolkits/powerbi/chat_base.py/0
{ "file_path": "langchain/libs/community/langchain_community/agent_toolkits/powerbi/chat_base.py", "repo_id": "langchain", "token_count": 973 }
209
--- hide_table_of_contents: true --- import CodeBlock from "@theme/CodeBlock"; import Example from "@examples/agents/vectorstore.ts"; # VectorStore Agent Toolkit import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx"; <IntegrationInstallTooltip></IntegrationInstallTooltip> ```bash ...
langchainjs/docs/core_docs/docs/integrations/toolkits/vectorstore.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/integrations/toolkits/vectorstore.mdx", "repo_id": "langchainjs", "token_count": 155 }
791
"""Send Gmail messages.""" import base64 from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from typing import Any, Dict, List, Optional, Type, Union from langchain_core.callbacks import CallbackManagerForToolRun from langchain_core.pydantic_v1 import BaseModel, Field from langchain_c...
langchain/libs/community/langchain_community/tools/gmail/send_message.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/gmail/send_message.py", "repo_id": "langchain", "token_count": 1261 }
288
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/querycoordv2/balance/priority_queue.go/0
{ "file_path": "milvus/internal/querycoordv2/balance/priority_queue.go", "repo_id": "milvus", "token_count": 640 }
1,837
<!--- 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/scripts/tatoeba/README.md/0
{ "file_path": "transformers/scripts/tatoeba/README.md", "repo_id": "transformers", "token_count": 761 }
588
"""Wrapper around Vald vector database.""" from __future__ import annotations from typing import Any, Iterable, List, Optional, Tuple, Type import numpy as np from langchain_core.documents import Document from langchain_core.embeddings import Embeddings from langchain_core.vectorstores import VectorStore from langch...
langchain/libs/community/langchain_community/vectorstores/vald.py/0
{ "file_path": "langchain/libs/community/langchain_community/vectorstores/vald.py", "repo_id": "langchain", "token_count": 6449 }
331
from __future__ import annotations from typing import Optional, Type from langchain_core.callbacks import ( AsyncCallbackManagerForToolRun, CallbackManagerForToolRun, ) from langchain_core.pydantic_v1 import BaseModel, root_validator from langchain_community.tools.playwright.base import BaseBrowserTool from ...
langchain/libs/community/langchain_community/tools/playwright/extract_text.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/playwright/extract_text.py", "repo_id": "langchain", "token_count": 888 }
316
package common import semver "github.com/blang/semver/v4" // Version current version for session var Version semver.Version func init() { Version, _ = semver.Parse("2.3.2") }
milvus/pkg/common/version.go/0
{ "file_path": "milvus/pkg/common/version.go", "repo_id": "milvus", "token_count": 63 }
1,814
from llama_index.question_gen.openai.base import OpenAIQuestionGenerator __all__ = ["OpenAIQuestionGenerator"]
llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/llama_index/question_gen/openai/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/llama_index/question_gen/openai/__init__.py", "repo_id": "llama_index", "token_count": 34 }
1,363
from neo4j_vector_memory.chain import chain if __name__ == "__main__": user_id = "user_id_1" session_id = "session_id_1" original_query = "What is the plot of the Dune?" print( # noqa: T201 chain.invoke( {"question": original_query, "user_id": user_id, "session_id": session_id} ...
langchain/templates/neo4j-vector-memory/main.py/0
{ "file_path": "langchain/templates/neo4j-vector-memory/main.py", "repo_id": "langchain", "token_count": 245 }
666
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { test, expect } from "@jest/globals"; import { createClient } from "@supabase/supabase-js"; import { OpenAIEmbeddings } from "@langchain/openai"; import { SupabaseHybridSearch } from "../supabase.js"; test.skip("S...
langchainjs/libs/langchain-community/src/retrievers/tests/supabase.int.test.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/retrievers/tests/supabase.int.test.ts", "repo_id": "langchainjs", "token_count": 275 }
1,033
"""Test functionality related to combining documents.""" from typing import Any, List import pytest from langchain_core.documents import Document from langchain_core.prompts import PromptTemplate, format_document from langchain.chains.combine_documents.reduce import ( collapse_docs, split_list_of_docs, ) fro...
langchain/libs/langchain/tests/unit_tests/chains/test_combine_documents.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/chains/test_combine_documents.py", "repo_id": "langchain", "token_count": 1780 }
634
import json import logging from abc import ABC, abstractmethod from typing import Any, List, Optional from sqlalchemy import Column, Integer, Text, create_engine try: from sqlalchemy.orm import declarative_base except ImportError: from sqlalchemy.ext.declarative import declarative_base from langchain_core.cha...
langchain/libs/community/langchain_community/chat_message_histories/sql.py/0
{ "file_path": "langchain/libs/community/langchain_community/chat_message_histories/sql.py", "repo_id": "langchain", "token_count": 1896 }
235
# coding=utf-8 # Copyright 2022 Meta Platforms authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
transformers/src/transformers/models/flava/configuration_flava.py/0
{ "file_path": "transformers/src/transformers/models/flava/configuration_flava.py", "repo_id": "transformers", "token_count": 15116 }
688
from typing import Any, Dict, List, Tuple, Union import pytest from langchain_core.documents import Document from langchain.callbacks.manager import ( AsyncCallbackManagerForRetrieverRun, CallbackManagerForRetrieverRun, ) from langchain.chains.query_constructor.ir import ( Comparator, Comparison, ...
langchain/libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py", "repo_id": "langchain", "token_count": 1705 }
606
from llama_index.core.vector_stores.types import VectorStore from llama_index.vector_stores.azurecosmosmongo import AzureCosmosDBMongoDBVectorSearch def test_class(): names_of_base_classes = [ b.__name__ for b in AzureCosmosDBMongoDBVectorSearch.__mro__ ] assert VectorStore.__name__ in names_of_ba...
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_vector_stores_azurecosmosmongo.py/0
{ "file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-azurecosmosmongo/tests/test_vector_stores_azurecosmosmongo.py", "repo_id": "llama_index", "token_count": 118 }
1,511
[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 = ["VoyageQueryEnginePack"] contains_example = true import_path = "llama_index.packs.voyage_q...
llama_index/llama-index-packs/llama-index-packs-voyage-query-engine/pyproject.toml/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-voyage-query-engine/pyproject.toml", "repo_id": "llama_index", "token_count": 723 }
1,603
from llama_index.readers.weaviate.base import WeaviateReader __all__ = ["WeaviateReader"]
llama_index/llama-index-integrations/readers/llama-index-readers-weaviate/llama_index/readers/weaviate/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-weaviate/llama_index/readers/weaviate/__init__.py", "repo_id": "llama_index", "token_count": 32 }
1,441
# coding=utf-8 # Copyright 2021 The Fairseq 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/xglm/modeling_flax_xglm.py/0
{ "file_path": "transformers/src/transformers/models/xglm/modeling_flax_xglm.py", "repo_id": "transformers", "token_count": 14613 }
677
/* eslint-disable global-require,import/no-extraneous-dependencies */ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion // eslint-disable-next-line import/no-extraneous-dependencies const { ProvidePlugin } = require("webpack"); const path = require("path"); const examplesPath = path.r...
langchainjs/docs/core_docs/docusaurus.config.js/0
{ "file_path": "langchainjs/docs/core_docs/docusaurus.config.js", "repo_id": "langchainjs", "token_count": 4455 }
758
<jupyter_start><jupyter_text>Chroma>[Chroma](https://docs.trychroma.com/getting-started) is a AI-native open-source vector database focused on developer productivity and happiness. Chroma is licensed under Apache 2.0. &nbsp;&nbsp; &nbsp;&nbsp; - [Website](https://www.trychroma.com/)- [Documentation](ht...
llama_index/docs/examples/vector_stores/ChromaIndexDemo.ipynb/0
{ "file_path": "llama_index/docs/examples/vector_stores/ChromaIndexDemo.ipynb", "repo_id": "llama_index", "token_count": 2729 }
1,214
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
datasets/src/datasets/load.py/0
{ "file_path": "datasets/src/datasets/load.py", "repo_id": "datasets", "token_count": 52316 }
132
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..utils import DummyObject, requires_backends class AlbertTokenizer(metaclass=DummyObject): _backends = ["sentencepiece"] def __init__(self, *args, **kwargs): requires_backends(self, ["sentencepiece"]) class BarthezTok...
transformers/src/transformers/utils/dummy_sentencepiece_objects.py/0
{ "file_path": "transformers/src/transformers/utils/dummy_sentencepiece_objects.py", "repo_id": "transformers", "token_count": 2376 }
690
export * from "@langchain/core/caches";
langchainjs/langchain/src/cache/base.ts/0
{ "file_path": "langchainjs/langchain/src/cache/base.ts", "repo_id": "langchainjs", "token_count": 13 }
875
from llama_index.vector_stores.neo4jvector.base import Neo4jVectorStore __all__ = ["Neo4jVectorStore"]
llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/vector_stores/llama-index-vector-stores-neo4jvector/llama_index/vector_stores/neo4jvector/__init__.py", "repo_id": "llama_index", "token_count": 38 }
1,668
# 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 applicabl...
transformers/src/transformers/data/datasets/language_modeling.py/0
{ "file_path": "transformers/src/transformers/data/datasets/language_modeling.py", "repo_id": "transformers", "token_count": 11449 }
619
/* * 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...
milvus/pkg/mq/msgstream/msg_for_database_test.go/0
{ "file_path": "milvus/pkg/mq/msgstream/msg_for_database_test.go", "repo_id": "milvus", "token_count": 1176 }
2,043
<jupyter_start><jupyter_code># Setup OpenAI Agent from llama_index.agent import OpenAIAgent import openai openai.api_key = "sk-your-key" # Import and initialize our tool spec from llama_index.tools.yelp.base import YelpToolSpec from llama_index.tools.tool_spec.load_and_search.base import LoadAndSearchToolSpec tool_sp...
llama_index/llama-index-integrations/tools/llama-index-tools-yelp/examples/yelp.ipynb/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-yelp/examples/yelp.ipynb", "repo_id": "llama_index", "token_count": 469 }
1,590
"""Test Vertex AI API wrapper. In order to run this test, you need to install VertexAI SDK (that is is the private preview) and be whitelisted to list the models themselves: In order to run this test, you need to install VertexAI SDK pip install google-cloud-aiplatform>=1.35.0 Your end-user credentials would be used...
langchain/libs/community/tests/integration_tests/chat_models/test_vertexai.py/0
{ "file_path": "langchain/libs/community/tests/integration_tests/chat_models/test_vertexai.py", "repo_id": "langchain", "token_count": 3963 }
320
from typing import Any, Dict, Optional import httpx from llama_index.core.bridge.pydantic import Field, PrivateAttr, root_validator from llama_index.core.callbacks.base import CallbackManager from llama_index.core.constants import DEFAULT_EMBED_BATCH_SIZE from llama_index.core.llms.generic_utils import get_from_param_...
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-azure-openai/llama_index/embeddings/azure_openai/base.py/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-azure-openai/llama_index/embeddings/azure_openai/base.py", "repo_id": "llama_index", "token_count": 1957 }
1,233
"""Run evaluator wrapper for string evaluators.""" from __future__ import annotations from abc import abstractmethod from typing import Any, Dict, List, Optional from langchain_core.load.dump import dumpd from langchain_core.load.load import load from langchain_core.load.serializable import Serializable from langchai...
langchain/libs/langchain/langchain/smith/evaluation/string_run_evaluator.py/0
{ "file_path": "langchain/libs/langchain/langchain/smith/evaluation/string_run_evaluator.py", "repo_id": "langchain", "token_count": 7367 }
542
<jupyter_start><jupyter_text>DocArray Hnsw Vector Store[DocArrayHnswVectorStore](https://docs.docarray.org/user_guide/storing/index_hnswlib/) is a lightweight Document Index implementation provided by [DocArray](https://github.com/docarray/docarray) that runs fully locally and is best suited for small- to medium-sized ...
llama_index/docs/examples/vector_stores/DocArrayHnswIndexDemo.ipynb/0
{ "file_path": "llama_index/docs/examples/vector_stores/DocArrayHnswIndexDemo.ipynb", "repo_id": "llama_index", "token_count": 1444 }
1,110
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base"; import type { BaseRetrieverInterface } from "@langchain/core/retrievers"; import { ChainValues } from "@langchain/core/utils/types"; import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager"; import { BaseChain,...
langchainjs/langchain/src/chains/retrieval_qa.ts/0
{ "file_path": "langchainjs/langchain/src/chains/retrieval_qa.ts", "repo_id": "langchainjs", "token_count": 1499 }
958
import * as uuid from "uuid"; import { ClickHouseClient, createClient } from "@clickhouse/client"; import { format } from "mysql2"; import type { EmbeddingsInterface } from "@langchain/core/embeddings"; import { VectorStore } from "@langchain/core/vectorstores"; import { Document } from "@langchain/core/documents"; /*...
langchainjs/libs/langchain-community/src/vectorstores/clickhouse.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/vectorstores/clickhouse.ts", "repo_id": "langchainjs", "token_count": 3523 }
965
from llama_index.storage.index_store.postgres.base import PostgresIndexStore __all__ = ["PostgresIndexStore"]
llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-postgres/llama_index/storage/index_store/postgres/__init__.py/0
{ "file_path": "llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-postgres/llama_index/storage/index_store/postgres/__init__.py", "repo_id": "llama_index", "token_count": 34 }
1,463
import pytest from langchain_core.agents import AgentAction, AgentFinish from langchain_core.exceptions import OutputParserException from langchain.agents.output_parsers.react_single_input import ( ReActSingleInputOutputParser, ) def test_action() -> None: """Test standard parsing of action/action input.""" ...
langchain/libs/langchain/tests/unit_tests/agents/output_parsers/test_react_single_input.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/agents/output_parsers/test_react_single_input.py", "repo_id": "langchain", "token_count": 433 }
591
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/core/src/storage/IndexData.cpp/0
{ "file_path": "milvus/internal/core/src/storage/IndexData.cpp", "repo_id": "milvus", "token_count": 1560 }
1,806
# Optuna Tutorial [[optuna]] The content below comes from [Antonin's Raffin ICRA 2022 presentations](https://araffin.github.io/tools-for-robotic-rl-icra2022/), he's one of the founders of Stable-Baselines and RL-Baselines3-Zoo. ## The theory behind Hyperparameter tuning <Youtube id="AidFTOdGNFQ" /> ## Optuna Tuto...
deep-rl-class/units/en/unitbonus2/optuna.mdx/0
{ "file_path": "deep-rl-class/units/en/unitbonus2/optuna.mdx", "repo_id": "deep-rl-class", "token_count": 182 }
168
import { SimpleChatModel, type BaseChatModelParams, } from "@langchain/core/language_models/chat_models"; import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import { AIMessageChunk, type BaseMessage } from "@langchain/core/messages"; import { ChatGenerationChunk } from "@langchain/core/ou...
langchainjs/examples/src/models/chat/custom.ts/0
{ "file_path": "langchainjs/examples/src/models/chat/custom.ts", "repo_id": "langchainjs", "token_count": 696 }
798
poetry_requirements( name="poetry", )
llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/question_gen/llama-index-question-gen-openai/BUILD", "repo_id": "llama_index", "token_count": 18 }
1,274
import argparse import os import torch from diffusers import ( CMStochasticIterativeScheduler, ConsistencyModelPipeline, UNet2DModel, ) TEST_UNET_CONFIG = { "sample_size": 32, "in_channels": 3, "out_channels": 3, "layers_per_block": 2, "num_class_embeds": 1000, "block_out_channel...
diffusers/scripts/convert_consistency_to_diffusers.py/0
{ "file_path": "diffusers/scripts/convert_consistency_to_diffusers.py", "repo_id": "diffusers", "token_count": 5773 }
225
# LlamaIndex Index_Store Integration: Redis Index Store
llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-redis/README.md/0
{ "file_path": "llama_index/llama-index-integrations/storage/index_store/llama-index-storage-index-store-redis/README.md", "repo_id": "llama_index", "token_count": 14 }
1,421
"""Azure Cognitive Search reader. A loader that fetches documents from specific index. """ from typing import List, Optional from azure.core.credentials import AzureKeyCredential from azure.search.documents import SearchClient from llama_index.core.readers.base import BaseReader from llama_index.core.schema import D...
llama_index/llama-index-integrations/readers/llama-index-readers-azcognitive-search/llama_index/readers/azcognitive_search/base.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-azcognitive-search/llama_index/readers/azcognitive_search/base.py", "repo_id": "llama_index", "token_count": 804 }
1,268
from typing import TYPE_CHECKING from langchain_community.document_loaders.parsers.language.tree_sitter_segmenter import ( # noqa: E501 TreeSitterSegmenter, ) if TYPE_CHECKING: from tree_sitter import Language CHUNK_QUERY = """ [ (function_item name: (identifier) body: (...
langchain/libs/community/langchain_community/document_loaders/parsers/language/rust.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/parsers/language/rust.py", "repo_id": "langchain", "token_count": 326 }
258
- title: Introduction au cours sections: - local: unit0/1 title: Introduction - title: 1. Introduction aux modèles de diffusion sections: - local: unit1/1 title: Vue d'ensemble - local: unit1/2 title: Introduction à 🤗 Diffusers - local: unit1/3 title: Implémentation à partir de 0 - title:...
diffusion-models-class/units/fr/_toctree.yml/0
{ "file_path": "diffusion-models-class/units/fr/_toctree.yml", "repo_id": "diffusion-models-class", "token_count": 494 }
280
/* eslint-disable no-process-env */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import { describe, expect } from "@jest/globals"; import { faker } from "@faker-js/faker"; import { PreviewVectorIndexClient, VectorIndexConfigurations, CredentialProvider, } from "@gomomento/sdk"; import * as uuid f...
langchainjs/libs/langchain-community/src/vectorstores/tests/momento_vector_index.int.test.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/vectorstores/tests/momento_vector_index.int.test.ts", "repo_id": "langchainjs", "token_count": 2141 }
1,009
import { test, expect } from "@jest/globals"; import { BaseLLM } from "@langchain/core/language_models/llms"; import { LLMResult } from "@langchain/core/outputs"; import { MultiPromptChain } from "../multi_prompt.js"; let pickedPrompt: string; class FakeLLM extends BaseLLM { _llmType(): string { return "fake"; ...
langchainjs/langchain/src/chains/router/tests/multi_prompt.test.ts/0
{ "file_path": "langchainjs/langchain/src/chains/router/tests/multi_prompt.test.ts", "repo_id": "langchainjs", "token_count": 806 }
959
<jupyter_start><jupyter_text>Vectara>[Vectara](https://vectara.com/) is the trusted GenAI platform that provides an easy-to-use API for document indexing and querying. Vectara provides an end-to-end managed service for Retrieval Augmented Generation or [RAG](https://vectara.com/grounded-generation/), which includes:1. ...
langchain/docs/docs/integrations/providers/vectara/vectara_summary.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/providers/vectara/vectara_summary.ipynb", "repo_id": "langchain", "token_count": 1973 }
149
.PHONY: all format lint test tests test_watch integration_tests docker_tests help extended_tests # Default target executed when no arguments are given to make. all: help # Define a variable for the test file path. TEST_FILE ?= tests/unit_tests/ test: poetry run pytest $(TEST_FILE) tests: poetry run pytest $(TEST_...
langchain/libs/experimental/Makefile/0
{ "file_path": "langchain/libs/experimental/Makefile", "repo_id": "langchain", "token_count": 798 }
434
from typing import Any, Callable, Dict, List, Optional, Sequence, Union from langchain_core.messages import AIMessage, BaseMessage, HumanMessage, SystemMessage from langchain_core.pydantic_v1 import BaseModel from langchain_core.runnables.base import RunnableLambda from langchain_core.runnables.config import RunnableC...
langchain/libs/core/tests/unit_tests/runnables/test_history.py/0
{ "file_path": "langchain/libs/core/tests/unit_tests/runnables/test_history.py", "repo_id": "langchain", "token_count": 5877 }
407
// 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/accesslog/global_test.go/0
{ "file_path": "milvus/internal/proxy/accesslog/global_test.go", "repo_id": "milvus", "token_count": 2327 }
1,841
# Yeager.ai This page covers how to use [Yeager.ai](https://yeager.ai) to generate LangChain tools and agents. ## What is Yeager.ai? Yeager.ai is an ecosystem designed to simplify the process of creating AI agents and tools. It features yAgents, a No-code LangChain Agent Builder, which enables users to build, test,...
langchain/docs/docs/integrations/providers/yeagerai.mdx/0
{ "file_path": "langchain/docs/docs/integrations/providers/yeagerai.mdx", "repo_id": "langchain", "token_count": 631 }
162
<!--Copyright 2023 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/ja/tasks/prompting.md/0
{ "file_path": "transformers/docs/source/ja/tasks/prompting.md", "repo_id": "transformers", "token_count": 9970 }
500
import { base } from "$app/paths"; import { authCondition } from "$lib/server/auth"; import { collections } from "$lib/server/database"; import { redirect } from "@sveltejs/kit"; export const actions = { async delete({ locals }) { // double check we have a user to delete conversations for if (locals.user?._id || ...
chat-ui/src/routes/conversations/+page.server.ts/0
{ "file_path": "chat-ui/src/routes/conversations/+page.server.ts", "repo_id": "chat-ui", "token_count": 158 }
118
import uuid from operator import itemgetter import streamlit as st from langchain.chat_models import ChatAnthropic from langchain.document_loaders import RecursiveUrlLoader from langchain.document_transformers import Html2TextTransformer from langchain.embeddings import OpenAIEmbeddings from langchain.memory import Co...
langsmith-cookbook/feedback-examples/streamlit-realtime-feedback/chain.py/0
{ "file_path": "langsmith-cookbook/feedback-examples/streamlit-realtime-feedback/chain.py", "repo_id": "langsmith-cookbook", "token_count": 1859 }
1,038
<jupyter_start><jupyter_text>Titan Takeoff>`TitanML` helps businesses build and deploy better, smaller, cheaper, and faster NLP models through our training, compression, and inference optimization platform. >Our inference server, [Titan Takeoff](https://docs.titanml.co/docs/titan-takeoff/getting-started) enables deploy...
langchain/docs/docs/integrations/llms/titan_takeoff.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/llms/titan_takeoff.ipynb", "repo_id": "langchain", "token_count": 1084 }
134
# Noisy Student (EfficientNet) **Noisy Student Training** is a semi-supervised learning approach. It extends the idea of self-training and distillation with the use of equal-or-larger student models and noise added to the student during learning. It has three main steps: 1. train a teacher model on labeled images 2....
pytorch-image-models/docs/models/.templates/models/noisy-student.md/0
{ "file_path": "pytorch-image-models/docs/models/.templates/models/noisy-student.md", "repo_id": "pytorch-image-models", "token_count": 5862 }
362
# Copyright 2021 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/wer/wer.py/0
{ "file_path": "datasets/metrics/wer/wer.py", "repo_id": "datasets", "token_count": 1452 }
146
#ifndef _config_h #define _config_h #define MAX_Q_GEMM_ROWS 50 #define MAX_Q_GEMM_WEIGHTS 4 // must be <= MAX_Q_GEMM_ROWS #define QMODE_2BIT 1 #define QMODE_3BIT 1 #define QMODE_4BIT 1 #define QMODE_5BIT 1 #define QMODE_6BIT 0 #define QMODE_8BIT 0 #endif
text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/config.h/0
{ "file_path": "text-generation-inference/server/exllamav2_kernels/exllamav2_kernels/config.h", "repo_id": "text-generation-inference", "token_count": 119 }
435
import { resolve, dirname, parse, format } from "node:path"; import { readdir, readFile, writeFile } from "node:fs/promises"; import { fileURLToPath } from "node:url"; function abs(relativePath) { return resolve(dirname(fileURLToPath(import.meta.url)), relativePath); } async function moveAndRename(source, dest) { ...
langchainjs/libs/langchain-scripts/scripts/move-cjs-to-dist.js/0
{ "file_path": "langchainjs/libs/langchain-scripts/scripts/move-cjs-to-dist.js", "repo_id": "langchainjs", "token_count": 482 }
998