text
stringlengths
3
1.68M
id
stringlengths
13
169
metadata
dict
__index_level_0__
int64
0
2.21k
import type { BaseLanguageModelCallOptions } from "@langchain/core/language_models/base"; import { BaseChatModel } from "@langchain/core/language_models/chat_models"; import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import { AIMessage, AIMessageChunk, BaseMessage, ChatMessage, } fro...
langchainjs/libs/langchain-community/src/chat_models/googlevertexai/common.ts/0
{ "file_path": "langchainjs/libs/langchain-community/src/chat_models/googlevertexai/common.ts", "repo_id": "langchainjs", "token_count": 4018 }
1,017
from typing import Any, AsyncGenerator, Generator, List, Sequence from unittest.mock import MagicMock, patch import pytest from llama_index.agent.openai.base import OpenAIAgent from llama_index.agent.openai.step import call_tool_with_error_handling from llama_index.core.base.llms.types import ChatMessage, ChatResponse...
llama_index/llama-index-integrations/agent/llama-index-agent-openai/tests/test_openai_agent.py/0
{ "file_path": "llama_index/llama-index-integrations/agent/llama-index-agent-openai/tests/test_openai_agent.py", "repo_id": "llama_index", "token_count": 4479 }
1,289
#!/usr/bin/env python3 # coding=utf-8 # Copyright 2020 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 # # Unles...
transformers/utils/print_env.py/0
{ "file_path": "transformers/utils/print_env.py", "repo_id": "transformers", "token_count": 546 }
857
<script lang="ts"> import { createEventDispatcher } from "svelte"; import Modal from "$lib/components/Modal.svelte"; import CarbonClose from "~icons/carbon/close"; import CarbonTrashCan from "~icons/carbon/trash-can"; import CarbonArrowUpRight from "~icons/carbon/arrow-up-right"; import { enhance } from "$app/f...
chat-ui/src/routes/settings/+page.svelte/0
{ "file_path": "chat-ui/src/routes/settings/+page.svelte", "repo_id": "chat-ui", "token_count": 1373 }
110
"""ReAct agent. Simple wrapper around AgentRunner + ReActAgentWorker. For the legacy implementation see: ```python from llama_index.core.agent.legacy.react.base import ReActAgent ``` """
llama_index/llama-index-core/llama_index/core/agent/react/agent.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/agent/react/agent.py", "repo_id": "llama_index", "token_count": 59 }
1,116
"""This module contains all classes used for composing graphs over indices.""" from llama_index.core.indices.composability.graph import ComposableGraph __all__ = ["ComposableGraph"]
llama_index/llama-index-core/llama_index/core/indices/composability/__init__.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/indices/composability/__init__.py", "repo_id": "llama_index", "token_count": 49 }
1,175
#pragma once #include <cstdarg> #include <cstdint> #include <cstdlib> #include <ostream> #include <new> enum class TantivyDataType : uint8_t { Keyword, I64, F64, Bool, }; struct RustArray { uint32_t *array; size_t len; size_t cap; }; extern "C" { void free_rust_array(RustArray array); void *tantivy_...
milvus/internal/core/thirdparty/tantivy/tantivy-binding/include/tantivy-binding.h/0
{ "file_path": "milvus/internal/core/thirdparty/tantivy/tantivy-binding/include/tantivy-binding.h", "repo_id": "milvus", "token_count": 1613 }
1,672
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
transformers/docs/source/ja/main_classes/tokenizer.md/0
{ "file_path": "transformers/docs/source/ja/main_classes/tokenizer.md", "repo_id": "transformers", "token_count": 1908 }
543
// 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/ConcurrentVector.h/0
{ "file_path": "milvus/internal/core/src/segcore/ConcurrentVector.h", "repo_id": "milvus", "token_count": 5532 }
1,763
# coding=utf-8 # Copyright 2023-present NAVER Corp, The Microsoft Research Asia LayoutLM Team 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 # # ht...
transformers/src/transformers/models/bros/configuration_bros.py/0
{ "file_path": "transformers/src/transformers/models/bros/configuration_bros.py", "repo_id": "transformers", "token_count": 2599 }
630
from __future__ import annotations import asyncio from typing import Any, AsyncIterator, Dict, List, Literal, Union, cast from langchain_core.callbacks import AsyncCallbackHandler from langchain_core.outputs import LLMResult # TODO If used by two LLM runs in parallel this won't work as expected class AsyncIterator...
langchain/libs/langchain/langchain/callbacks/streaming_aiter.py/0
{ "file_path": "langchain/libs/langchain/langchain/callbacks/streaming_aiter.py", "repo_id": "langchain", "token_count": 1010 }
453
# Firestore Loader This loader loads from a Firestore collection or a specific document from Firestore. The loader assumes your project already has the google cloud credentials loaded. To find out how to set up credentials, [see here](https://cloud.google.com/docs/authentication/provide-credentials-adc). ## Usage To...
llama_index/llama-index-integrations/readers/llama-index-readers-firestore/README.md/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-firestore/README.md", "repo_id": "llama_index", "token_count": 409 }
1,355
//! #A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face. //! Author: Evgeny Igumnov 2023 igumnovnsk@gmail.com //! This program implements a neural network to predict the winner of the second round of elections based on the results of the first round...
candle/candle-book/src/simplified.rs/0
{ "file_path": "candle/candle-book/src/simplified.rs", "repo_id": "candle", "token_count": 2903 }
31
from collections import defaultdict from datetime import datetime from typing import Any, Dict, List, Optional from llama_index.core.callbacks.base_handler import BaseCallbackHandler from llama_index.core.callbacks.schema import ( BASE_TRACE_EVENT, TIMESTAMP_FORMAT, CBEvent, CBEventType, EventStats...
llama_index/llama-index-core/llama_index/core/callbacks/llama_debug.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/callbacks/llama_debug.py", "repo_id": "llama_index", "token_count": 3364 }
1,138
[tool.black] line-length = 119 target_version = ['py37'] [tool.ruff] # Ignored rules: # "E501" -> line length violation # "F821" -> undefined named in type annotation (e.g. Literal["something"]) # "C901" -> `function_name` is too complex ignore = ["E501", "F821", "C901"] select = ["C", "E", "F", "I", "W"] line-l...
datasets/pyproject.toml/0
{ "file_path": "datasets/pyproject.toml", "repo_id": "datasets", "token_count": 245 }
138
<jupyter_start><jupyter_text>Dropbox[Dropbox](https://en.wikipedia.org/wiki/Dropbox) is a file hosting service that brings everything-traditional files, cloud content, and web shortcuts together in one place.This notebook covers how to load documents from *Dropbox*. In addition to common files such as text and PDF file...
langchain/docs/docs/integrations/document_loaders/dropbox.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/document_loaders/dropbox.ipynb", "repo_id": "langchain", "token_count": 734 }
100
from __future__ import annotations import enum import logging import os import uuid from typing import ( Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, ) from langchain_core.documents import Document from langchain_core.embeddings import Embeddings from langchain_core.util...
langchain/libs/community/langchain_community/vectorstores/neo4j_vector.py/0
{ "file_path": "langchain/libs/community/langchain_community/vectorstores/neo4j_vector.py", "repo_id": "langchain", "token_count": 16250 }
330
# Distil* Author: @VictorSanh This folder contains the original code used to train Distil* as well as examples showcasing how to use DistilBERT, DistilRoBERTa and DistilGPT2. **January 20, 2020 - Bug fixing** We have recently discovered and fixed [a bug](https://github.com/huggingface/transformers/commit/48cbf267c98...
transformers/examples/research_projects/distillation/README.md/0
{ "file_path": "transformers/examples/research_projects/distillation/README.md", "repo_id": "transformers", "token_count": 5075 }
559
<!--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/training/lora.md/0
{ "file_path": "diffusers/docs/source/en/training/lora.md", "repo_id": "diffusers", "token_count": 3288 }
187
# coding=utf-8 # Copyright 2022 SHI Labs 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...
transformers/src/transformers/models/dinat/modeling_dinat.py/0
{ "file_path": "transformers/src/transformers/models/dinat/modeling_dinat.py", "repo_id": "transformers", "token_count": 17128 }
606
import { SupportedTextSplitterLanguages, RecursiveCharacterTextSplitter, } from "langchain/text_splitter"; console.log(SupportedTextSplitterLanguages); // Array of supported languages /* [ 'cpp', 'go', 'java', 'js', 'php', 'proto', 'python', 'rst', 'ruby', 'rust', 'sc...
langchainjs/examples/src/indexes/javascript_text_splitter.ts/0
{ "file_path": "langchainjs/examples/src/indexes/javascript_text_splitter.ts", "repo_id": "langchainjs", "token_count": 446 }
798
import { logVersion010MigrationWarning } from "../util/entrypoint_deprecation.js"; /* #__PURE__ */ logVersion010MigrationWarning({ oldEntrypointName: "vectorstores/elasticsearch", }); export * from "@langchain/community/vectorstores/elasticsearch";
langchainjs/langchain/src/vectorstores/elasticsearch.ts/0
{ "file_path": "langchainjs/langchain/src/vectorstores/elasticsearch.ts", "repo_id": "langchainjs", "token_count": 74 }
981
<jupyter_start><jupyter_text>Basic embedding retrieval with ChromaThis notebook demonstrates the most basic use of Chroma to store and retrieve information using embeddings. This core building block is at the heart of many powerful AI applications. What are embeddings?Embeddings are the A.I-native way to represent any ...
chroma/examples/basic_functionality/start_here.ipynb/0
{ "file_path": "chroma/examples/basic_functionality/start_here.ipynb", "repo_id": "chroma", "token_count": 1373 }
42
"""Integration test for doc reordering.""" from langchain_community.document_transformers.long_context_reorder import ( LongContextReorder, ) from langchain_community.embeddings import OpenAIEmbeddings from langchain_community.vectorstores import Chroma def test_long_context_reorder() -> None: """Test Lost in...
langchain/libs/langchain/tests/integration_tests/test_long_context_reorder.py/0
{ "file_path": "langchain/libs/langchain/tests/integration_tests/test_long_context_reorder.py", "repo_id": "langchain", "token_count": 577 }
588
from typing import Callable, List, Optional, Union import PIL.Image import torch from transformers import ( CLIPImageProcessor, CLIPSegForImageSegmentation, CLIPSegProcessor, CLIPTextModel, CLIPTokenizer, ) from diffusers import DiffusionPipeline from diffusers.configuration_utils import FrozenDic...
diffusers/examples/community/text_inpainting.py/0
{ "file_path": "diffusers/examples/community/text_inpainting.py", "repo_id": "diffusers", "token_count": 6667 }
204
import gc import inspect import unittest import numpy as np import torch from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer from diffusers import ( AutoencoderKL, LatentConsistencyModelPipeline, LCMScheduler, UNet2DConditionModel, ) from diffusers.utils.testing_utils import ( en...
diffusers/tests/pipelines/latent_consistency_models/test_latent_consistency_models.py/0
{ "file_path": "diffusers/tests/pipelines/latent_consistency_models/test_latent_consistency_models.py", "repo_id": "diffusers", "token_count": 4610 }
281
--- hide_table_of_contents: true --- import CodeBlock from "@theme/CodeBlock"; # Combined memory It is also possible to use multiple memory classes in the same chain. To combine multiple memory classes, we can initialize the `CombinedMemory` class, and then use that. import TextExample from "@examples/memory/combin...
langchainjs/docs/core_docs/docs/modules/memory/types/multiple_memory.mdx/0
{ "file_path": "langchainjs/docs/core_docs/docs/modules/memory/types/multiple_memory.mdx", "repo_id": "langchainjs", "token_count": 169 }
760
from langchain_community.tools.ainetwork.value import AINValueOps, ValueSchema __all__ = ["ValueSchema", "AINValueOps"]
langchain/libs/langchain/langchain/tools/ainetwork/value.py/0
{ "file_path": "langchain/libs/langchain/langchain/tools/ainetwork/value.py", "repo_id": "langchain", "token_count": 39 }
595
from langchain_community.llms.gooseai import GooseAI __all__ = ["GooseAI"]
langchain/libs/langchain/langchain/llms/gooseai.py/0
{ "file_path": "langchain/libs/langchain/langchain/llms/gooseai.py", "repo_id": "langchain", "token_count": 27 }
511
poetry_requirements( name="poetry", ) python_requirements( name="reqs", )
llama_index/llama-index-integrations/readers/llama-index-readers-confluence/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-confluence/BUILD", "repo_id": "llama_index", "token_count": 36 }
1,417
apiVersion: chaos-mesh.org/v1alpha1 kind: PodChaos metadata: name: test-querynode-pod-failure namespace: chaos-testing spec: selector: namespaces: - chaos-testing labelSelectors: app.kubernetes.io/instance: milvus-chaos component: querynode mode: fixed value: "1" action: pod-failur...
milvus/tests/python_client/chaos/chaos_objects/pod_failure/chaos_querynode_pod_failure.yaml/0
{ "file_path": "milvus/tests/python_client/chaos/chaos_objects/pod_failure/chaos_querynode_pod_failure.yaml", "repo_id": "milvus", "token_count": 141 }
2,110
python_sources()
llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gradient/llama_index/embeddings/gradient/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/embeddings/llama-index-embeddings-gradient/llama_index/embeddings/gradient/BUILD", "repo_id": "llama_index", "token_count": 6 }
1,275
# MultiOn Tool This tool connects to [MultiOn](https://www.multion.ai/) to enable your agent to easily connect to the internet through your Chrome Web browser and act on your behalf You will need to have the MultiOn chrome extension installed and a MultiOn account to use this integration ## Usage This tool has more...
llama_index/llama-index-integrations/tools/llama-index-tools-multion/README.md/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-multion/README.md", "repo_id": "llama_index", "token_count": 320 }
1,488
import { MongoDBAtlasVectorSearch } from "@langchain/community/vectorstores/mongodb_atlas"; import { CohereEmbeddings } from "@langchain/cohere"; import { MongoClient } from "mongodb"; const client = new MongoClient(process.env.MONGODB_ATLAS_URI || ""); const namespace = "langchain.test"; const [dbName, collectionName...
langchainjs/examples/src/indexes/vector_stores/mongodb_atlas_fromTexts.ts/0
{ "file_path": "langchainjs/examples/src/indexes/vector_stores/mongodb_atlas_fromTexts.ts", "repo_id": "langchainjs", "token_count": 371 }
805
"""Unsupervised learning based memorization.""" from langchain_community.tools.memorize.tool import Memorize __all__ = ["Memorize"]
langchain/libs/langchain/langchain/tools/memorize/__init__.py/0
{ "file_path": "langchain/libs/langchain/langchain/tools/memorize/__init__.py", "repo_id": "langchain", "token_count": 40 }
580
## Diffusers examples with ONNXRuntime optimizations **This research project is not actively maintained by the diffusers team. For any questions or comments, please contact Prathik Rao (prathikr), Sunghoon Choi (hanbitmyths), Ashwini Khade (askhade), or Peng Wang (pengwa) on github with any questions.** This aims to ...
diffusers/examples/research_projects/onnxruntime/README.md/0
{ "file_path": "diffusers/examples/research_projects/onnxruntime/README.md", "repo_id": "diffusers", "token_count": 134 }
227
:mod:`{{module}}`.{{objname}} {{ underline }}============== .. currentmodule:: {{ module }} .. autoclass:: {{ objname }} {% block attributes %} {% if attributes %} .. rubric:: {{ _('Attributes') }} .. autosummary:: {% for item in attributes %} ~{{ name }}.{{ item }} {%- endfor %} {% endif...
langchain/docs/api_reference/templates/class.rst/0
{ "file_path": "langchain/docs/api_reference/templates/class.rst", "repo_id": "langchain", "token_count": 265 }
85
<jupyter_start><jupyter_text>SQL Auto Vector Query EngineIn this tutorial, we show you how to use our SQLAutoVectorQueryEngine.This query engine allows you to combine insights from your structured tables with your unstructured data.It first decides whether to query your structured tables for insights.Once it does, it c...
llama_index/docs/examples/query_engine/SQLAutoVectorQueryEngine.ipynb/0
{ "file_path": "llama_index/docs/examples/query_engine/SQLAutoVectorQueryEngine.ipynb", "repo_id": "llama_index", "token_count": 2407 }
1,126
/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: "ts-jest/presets/default-esm", testEnvironment: "./jest.env.cjs", modulePathIgnorePatterns: ["dist/", "docs/"], moduleNameMapper: { "^(\\.{1,2}/.*)\\.js$": "$1", }, transform: { '^.+\\.tsx?$': ['@swc/jest'], }, tran...
langchainjs/libs/langchain-scripts/jest.config.cjs/0
{ "file_path": "langchainjs/libs/langchain-scripts/jest.config.cjs", "repo_id": "langchainjs", "token_count": 213 }
1,108
import os from typing import Any, Dict, List import together # type: ignore from langchain_core.embeddings import Embeddings from langchain_core.pydantic_v1 import BaseModel, SecretStr, root_validator from langchain_core.utils import convert_to_secret_str class TogetherEmbeddings(BaseModel, Embeddings): """Toge...
langchain/libs/partners/together/langchain_together/embeddings.py/0
{ "file_path": "langchain/libs/partners/together/langchain_together/embeddings.py", "repo_id": "langchain", "token_count": 663 }
626
// Licensed to the LF AI & Data foundation under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use th...
milvus/internal/core/src/common/Slice.h/0
{ "file_path": "milvus/internal/core/src/common/Slice.h", "repo_id": "milvus", "token_count": 401 }
1,780
import { ChatOpenAI, OpenAIEmbeddings } from "@langchain/openai"; import { SearchApiLoader } from "langchain/document_loaders/web/searchapi"; import { TokenTextSplitter } from "langchain/text_splitter"; import { FaissStore } from "@langchain/community/vectorstores/faiss"; import { createRetrievalChain } from "langchain...
langchainjs/examples/src/use_cases/youtube/chat_with_podcast.ts/0
{ "file_path": "langchainjs/examples/src/use_cases/youtube/chat_with_podcast.ts", "repo_id": "langchainjs", "token_count": 550 }
858
from typing import List from langchain_core.documents import Document from langchain_core.retrievers import BaseRetriever class FakeParrotRetriever(BaseRetriever): """Test util that parrots the query back as documents.""" def _get_relevant_documents( # type: ignore[override] self, query: st...
langchain/libs/langchain/tests/unit_tests/retrievers/parrot_retriever.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/retrievers/parrot_retriever.py", "repo_id": "langchain", "token_count": 210 }
611
# Installation Before you start, you'll need to setup your environment and install the appropriate packages. `timm` is tested on **Python 3+**. ## Virtual Environment You should install `timm` in a [virtual environment](https://docs.python.org/3/library/venv.html) to keep things tidy and avoid dependency conflicts. ...
pytorch-image-models/hfdocs/source/installation.mdx/0
{ "file_path": "pytorch-image-models/hfdocs/source/installation.mdx", "repo_id": "pytorch-image-models", "token_count": 619 }
375
import { collections } from "$lib/server/database"; import { ObjectId } from "mongodb"; import { describe, expect, it } from "vitest"; // function used to insert conversations used for testing export const insertLegacyConversation = async () => { const res = await collections.conversations.insertOne({ _id: new Obj...
chat-ui/src/lib/utils/tree/treeHelpers.spec.ts/0
{ "file_path": "chat-ui/src/lib/utils/tree/treeHelpers.spec.ts", "repo_id": "chat-ui", "token_count": 1864 }
100
import { ChatLlamaCpp } from "@langchain/community/chat_models/llama_cpp"; import { HumanMessage } from "@langchain/core/messages"; const llamaPath = "/Replace/with/path/to/your/model/gguf-llama2-q4_0.bin"; const model = new ChatLlamaCpp({ modelPath: llamaPath }); const response = await model.call([ new HumanMessa...
langchainjs/examples/src/models/chat/integration_llama_cpp.ts/0
{ "file_path": "langchainjs/examples/src/models/chat/integration_llama_cpp.ts", "repo_id": "langchainjs", "token_count": 248 }
823
package milvus import ( "flag" "fmt" "io" "os" "os/signal" "syscall" "go.uber.org/zap" "github.com/milvus-io/milvus/pkg/log" "github.com/milvus-io/milvus/pkg/metrics" "github.com/milvus-io/milvus/pkg/util/hardware" "github.com/milvus-io/milvus/pkg/util/metricsinfo" ) type run struct{} func (c *run) exec...
milvus/cmd/milvus/run.go/0
{ "file_path": "milvus/cmd/milvus/run.go", "repo_id": "milvus", "token_count": 1196 }
1,752
"""Wrapper around a Power BI endpoint.""" from __future__ import annotations import asyncio import logging import os from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union import aiohttp import requests from aiohttp import ServerTimeoutError from langchain_core.pydantic_v1 import BaseModel, Fiel...
langchain/libs/community/langchain_community/utilities/powerbi.py/0
{ "file_path": "langchain/libs/community/langchain_community/utilities/powerbi.py", "repo_id": "langchain", "token_count": 4955 }
318
<!--Copyright 2022 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
accelerate/docs/source/usage_guides/fsdp.md/0
{ "file_path": "accelerate/docs/source/usage_guides/fsdp.md", "repo_id": "accelerate", "token_count": 3064 }
3
/* eslint-disable @typescript-eslint/no-explicit-any */ import weaviate, { ApiKey } from "weaviate-ts-client"; import { WeaviateStore } from "@langchain/weaviate"; import { OpenAIEmbeddings } from "@langchain/openai"; export async function run() { // Something wrong with the weaviate-ts-client types, so we need to d...
langchainjs/examples/src/indexes/vector_stores/weaviate_delete.ts/0
{ "file_path": "langchainjs/examples/src/indexes/vector_stores/weaviate_delete.ts", "repo_id": "langchainjs", "token_count": 800 }
883
from langchain_community.tools.openweathermap.tool import OpenWeatherMapQueryRun __all__ = ["OpenWeatherMapQueryRun"]
langchain/libs/langchain/langchain/tools/openweathermap/tool.py/0
{ "file_path": "langchain/libs/langchain/langchain/tools/openweathermap/tool.py", "repo_id": "langchain", "token_count": 33 }
566
<jupyter_start><jupyter_text>Run TemplateIn `server.py`, set -```add_routes(app, chain_rag_conv, path="/rag-multi-modal-local")```<jupyter_code>from langserve.client import RemoteRunnable rag_app = RemoteRunnable("http://localhost:8001/rag-multi-modal-local") rag_app.invoke(" < keywords here > ")<jupyter_output><empty...
langchain/templates/rag-multi-modal-local/rag_multi_modal_local.ipynb/0
{ "file_path": "langchain/templates/rag-multi-modal-local/rag_multi_modal_local.ipynb", "repo_id": "langchain", "token_count": 125 }
665
import uuid from typing import Any, Dict, List, Union from ..utils import add_end_docstrings, is_tf_available, is_torch_available, logging from .base import Pipeline, build_pipeline_init_args if is_tf_available(): import tensorflow as tf if is_torch_available(): import torch logger = logging.get_logger(__...
transformers/src/transformers/pipelines/conversational.py/0
{ "file_path": "transformers/src/transformers/pipelines/conversational.py", "repo_id": "transformers", "token_count": 5596 }
725
""" Test embedding utility functions.""" import numpy as np from llama_index.legacy.indices.query.embedding_utils import ( get_top_k_embeddings, get_top_k_mmr_embeddings, ) def test_get_top_k_mmr_embeddings() -> None: """Test Maximum Marginal Relevance.""" # Results score should follow from the mmr a...
llama_index/llama-index-legacy/tests/indices/query/test_embedding_utils.py/0
{ "file_path": "llama_index/llama-index-legacy/tests/indices/query/test_embedding_utils.py", "repo_id": "llama_index", "token_count": 1199 }
1,633
// 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/storage/index_data_codec.go/0
{ "file_path": "milvus/internal/storage/index_data_codec.go", "repo_id": "milvus", "token_count": 3896 }
2,010
// 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/meta_cache_test.go/0
{ "file_path": "milvus/internal/proxy/meta_cache_test.go", "repo_id": "milvus", "token_count": 11047 }
1,847
# coding=utf-8 # Copyright 2024 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/src/transformers/models/siglip/image_processing_siglip.py/0
{ "file_path": "transformers/src/transformers/models/siglip/image_processing_siglip.py", "repo_id": "transformers", "token_count": 4605 }
721
// 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/log/zap_log_test.go/0
{ "file_path": "milvus/pkg/log/zap_log_test.go", "repo_id": "milvus", "token_count": 4956 }
1,952
// 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/management.go/0
{ "file_path": "milvus/internal/proxy/management.go", "repo_id": "milvus", "token_count": 1122 }
1,744
import os from transformers import AutoConfig, AutoTokenizer import torch import torch.neuron # To use one neuron core per worker os.environ["NEURON_RT_NUM_CORES"] = "1" # saved weights name AWS_NEURON_TRACED_WEIGHTS_NAME = "neuron_model.pt" def model_fn(model_dir): # load tokenizer and neuron model from model_...
notebooks/sagemaker/18_inferentia_inference/code/inference.py/0
{ "file_path": "notebooks/sagemaker/18_inferentia_inference/code/inference.py", "repo_id": "notebooks", "token_count": 519 }
332
"""Recursive retriever (with node references).""" from typing import Any, Dict, List from llama_index.core import ServiceContext, VectorStoreIndex from llama_index.core.embeddings.utils import resolve_embed_model from llama_index.core.llama_pack.base import BaseLlamaPack from llama_index.core.node_parser import Sente...
llama_index/llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/base.py/0
{ "file_path": "llama_index/llama-index-packs/llama-index-packs-recursive-retriever/llama_index/packs/recursive_retriever/small_to_big/base.py", "repo_id": "llama_index", "token_count": 1565 }
1,812
#!/usr/bin/env python import argparse import datetime import json import time import warnings from logging import getLogger from pathlib import Path from typing import Dict, List import torch from tqdm import tqdm from transformers import AutoModelForSeq2SeqLM, AutoTokenizer from utils import calculate_bleu, calcula...
transformers/examples/research_projects/seq2seq-distillation/run_eval.py/0
{ "file_path": "transformers/examples/research_projects/seq2seq-distillation/run_eval.py", "repo_id": "transformers", "token_count": 2580 }
603
<jupyter_start><jupyter_text>Azure Cosmos DB>[Azure Cosmos DB for MongoDB vCore](https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/) makes it easy to create a database with full native MongoDB support.> You can apply your MongoDB experience and continue to use your favorite MongoDB drivers, SDKs, and tool...
langchain/docs/docs/integrations/vectorstores/azure_cosmos_db.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/vectorstores/azure_cosmos_db.ipynb", "repo_id": "langchain", "token_count": 2066 }
192
# coding=utf-8 # Copyright 2023 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/tests/models/timm_backbone/test_modeling_timm_backbone.py/0
{ "file_path": "transformers/tests/models/timm_backbone/test_modeling_timm_backbone.py", "repo_id": "transformers", "token_count": 4294 }
739
import pytest from pymilvus import DefaultConfig from base.client_base import TestcaseBase import common.common_type as ct import common.common_func as cf from common.common_type import CaseLabel, CheckTasks from common.code_mapping import ConnectionErrorMessage as cem # CONNECT_TIMEOUT = 12 class TestConnectionPar...
milvus/tests/python_client/testcases/test_connection.py/0
{ "file_path": "milvus/tests/python_client/testcases/test_connection.py", "repo_id": "milvus", "token_count": 24205 }
1,903
# coding=utf-8 # Copyright 2023 EleutherAI and the HuggingFace Inc. team. All rights reserved. # # This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX # and OPT implementations in this library. It has been modified from its # original forms to accommodate minor architectural differences compared # to G...
transformers/src/transformers/models/deprecated/open_llama/modeling_open_llama.py/0
{ "file_path": "transformers/src/transformers/models/deprecated/open_llama/modeling_open_llama.py", "repo_id": "transformers", "token_count": 19118 }
672
# Copyright 2023-present the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
peft/src/peft/utils/save_and_load.py/0
{ "file_path": "peft/src/peft/utils/save_and_load.py", "repo_id": "peft", "token_count": 6629 }
309
# Retriever Modules We are actively adding more tailored retrieval guides. In the meanwhile, please take a look at the [API References](/api_reference/query/retrievers.rst). ## Index Retrievers Please see [the retriever modes](/module_guides/querying/retriever/retriever_modes.md) for more details on how to get a ret...
llama_index/docs/module_guides/querying/retriever/retrievers.md/0
{ "file_path": "llama_index/docs/module_guides/querying/retriever/retrievers.md", "repo_id": "llama_index", "token_count": 1183 }
1,105
<jupyter_start><jupyter_text>Obsidian Reader If you're opening this Notebook on colab, you will probably need to install LlamaIndex 🦙.<jupyter_code>%pip install llama-index-readers-obsidian !pip install llama-index %env OPENAI_API_KEY=sk-************ import logging import sys logging.basicConfig(stream=sys.stdout, le...
llama_index/docs/examples/data_connectors/ObsidianReaderDemo.ipynb/0
{ "file_path": "llama_index/docs/examples/data_connectors/ObsidianReaderDemo.ipynb", "repo_id": "llama_index", "token_count": 281 }
1,176
{ "openapi": "3.0.1", "info": { "version": "v0", "title": "Open AI Klarna product Api" }, "servers": [ { "url": "https://www.klarna.com/us/shopping" } ], "tags": [ { "name": "open-ai-product-endpoint", "description": "Open AI Product Endpoint. Q...
langchain/libs/community/tests/unit_tests/examples/test_specs/klarna/apispec.json/0
{ "file_path": "langchain/libs/community/tests/unit_tests/examples/test_specs/klarna/apispec.json", "repo_id": "langchain", "token_count": 1988 }
395
package indexparamcheck import "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" // TODO: check index parameters according to the index type & data type. func CheckIndexValid(dType schemapb.DataType, indexType IndexType, indexParams map[string]string) error { return nil }
milvus/pkg/util/indexparamcheck/scalar_index_checker.go/0
{ "file_path": "milvus/pkg/util/indexparamcheck/scalar_index_checker.go", "repo_id": "milvus", "token_count": 93 }
2,058
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
transformers/tests/models/deberta_v2/test_modeling_tf_deberta_v2.py/0
{ "file_path": "transformers/tests/models/deberta_v2/test_modeling_tf_deberta_v2.py", "repo_id": "transformers", "token_count": 5454 }
728
import { ChatOpenAI } from "@langchain/openai"; import { HumanMessage } from "@langchain/core/messages"; const chat = new ChatOpenAI({ maxTokens: 25, streaming: true, }); const response = await chat.call([new HumanMessage("Tell me a joke.")], { callbacks: [ { handleLLMNewToken(token: string) { ...
langchainjs/examples/src/models/chat/chat_streaming.ts/0
{ "file_path": "langchainjs/examples/src/models/chat/chat_streaming.ts", "repo_id": "langchainjs", "token_count": 326 }
800
from langchain_community.chat_message_histories.astradb import ( AstraDBChatMessageHistory, ) from langchain_community.chat_message_histories.cassandra import ( CassandraChatMessageHistory, ) from langchain_community.chat_message_histories.cosmos_db import ( CosmosDBChatMessageHistory, ) from langchain_comm...
langchain/libs/community/langchain_community/chat_message_histories/__init__.py/0
{ "file_path": "langchain/libs/community/langchain_community/chat_message_histories/__init__.py", "repo_id": "langchain", "token_count": 818 }
233
from pathlib import Path from typing import List from langchain_core.documents import Document from langchain_community.document_loaders.base import BaseLoader class RoamLoader(BaseLoader): """Load `Roam` files from a directory.""" def __init__(self, path: str): """Initialize with a path.""" ...
langchain/libs/community/langchain_community/document_loaders/roam.py/0
{ "file_path": "langchain/libs/community/langchain_community/document_loaders/roam.py", "repo_id": "langchain", "token_count": 292 }
247
<jupyter_start><jupyter_code>from llama_index.tools.waii import WaiiToolSpec waii_tool = WaiiToolSpec( url="https://tweakit.waii.ai/api/", # API Key of Waii (not OpenAI API key) api_key="3........", # Which database you want to use, you need add the db connection to Waii first database_key="snowfla...
llama_index/llama-index-integrations/tools/llama-index-tools-waii/examples/waii.ipynb/0
{ "file_path": "llama_index/llama-index-integrations/tools/llama-index-tools-waii/examples/waii.ipynb", "repo_id": "llama_index", "token_count": 1543 }
1,500
import { HF_TOKEN, HF_API_ROOT, MODELS, OLD_MODELS, TASK_MODEL, HF_ACCESS_TOKEN, } from "$env/static/private"; import type { ChatTemplateInput } from "$lib/types/Template"; import { compileTemplate } from "$lib/utils/template"; import { z } from "zod"; import endpoints, { endpointSchema, type Endpoint } from "./e...
chat-ui/src/lib/server/models.ts/0
{ "file_path": "chat-ui/src/lib/server/models.ts", "repo_id": "chat-ui", "token_count": 2039 }
92
<jupyter_start><jupyter_text>PGVecto.rsThis notebook shows how to use functionality related to the Postgres vector database ([pgvecto.rs](https://github.com/tensorchord/pgvecto.rs)).<jupyter_code>%pip install "pgvecto_rs[sdk]" from typing import List from langchain.docstore.document import Document from langchain.text...
langchain/docs/docs/integrations/vectorstores/pgvecto_rs.ipynb/0
{ "file_path": "langchain/docs/docs/integrations/vectorstores/pgvecto_rs.ipynb", "repo_id": "langchain", "token_count": 1255 }
184
import importlib.metadata import warnings from copy import deepcopy from packaging import version from ..utils import is_accelerate_available, is_bitsandbytes_available, logging if is_bitsandbytes_available(): import bitsandbytes as bnb import torch import torch.nn as nn from ..pytorch_utils import...
transformers/src/transformers/integrations/bitsandbytes.py/0
{ "file_path": "transformers/src/transformers/integrations/bitsandbytes.py", "repo_id": "transformers", "token_count": 6445 }
610
"""KG Retrievers.""" import logging from collections import defaultdict from enum import Enum from typing import Any, Callable, Dict, List, Optional, Set, Tuple from llama_index.core.base.base_retriever import BaseRetriever from llama_index.core.base.embeddings.base import BaseEmbedding from llama_index.core.callback...
llama_index/llama-index-core/llama_index/core/indices/knowledge_graph/retrievers.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/indices/knowledge_graph/retrievers.py", "repo_id": "llama_index", "token_count": 15951 }
1,193
kind: StressChaos apiVersion: chaos-mesh.org/v1alpha1 metadata: name: test-indexnode-memory-stress namespace: chaos-testing spec: selector: namespaces: - chaos-testing labelSelectors: app.kubernetes.io/name: milvus app.kubernetes.io/instance: mic-memory app.kubernetes.io/component:...
milvus/tests/python_client/chaos/chaos_objects/memory_stress/chaos_indexnode_memory_stress.yaml/0
{ "file_path": "milvus/tests/python_client/chaos/chaos_objects/memory_stress/chaos_indexnode_memory_stress.yaml", "repo_id": "milvus", "token_count": 174 }
2,164
from llama_index.legacy.constants import DATA_KEY, TYPE_KEY from llama_index.legacy.schema import ( BaseNode, Document, ImageDocument, ImageNode, IndexNode, NodeRelationship, RelatedNodeInfo, TextNode, ) def doc_to_json(doc: BaseNode) -> dict: return { DATA_KEY: doc.dict(),...
llama_index/llama-index-legacy/llama_index/legacy/storage/docstore/utils.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/storage/docstore/utils.py", "repo_id": "llama_index", "token_count": 1194 }
1,775
# Fine-tuning
candle/candle-book/src/training/finetuning.md/0
{ "file_path": "candle/candle-book/src/training/finetuning.md", "repo_id": "candle", "token_count": 6 }
31
python_tests()
llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-outlook/tests/BUILD/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-microsoft-outlook/tests/BUILD", "repo_id": "llama_index", "token_count": 5 }
1,399
from __future__ import annotations from typing import TYPE_CHECKING, Optional, Tuple, Type from langchain_core.pydantic_v1 import root_validator from langchain_core.tools import BaseTool if TYPE_CHECKING: from playwright.async_api import Browser as AsyncBrowser from playwright.sync_api import Browser as Sync...
langchain/libs/community/langchain_community/tools/playwright/base.py/0
{ "file_path": "langchain/libs/community/langchain_community/tools/playwright/base.py", "repo_id": "langchain", "token_count": 766 }
291
// 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/datacoord/segment_allocation_policy_test.go/0
{ "file_path": "milvus/internal/datacoord/segment_allocation_policy_test.go", "repo_id": "milvus", "token_count": 2325 }
1,796
class VellumException(Exception): pass class VellumApiError(VellumException): pass class VellumGenerateException(VellumApiError): pass
llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/vellum/exceptions.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/llm_predictor/vellum/exceptions.py", "repo_id": "llama_index", "token_count": 56 }
1,576
<jupyter_start><jupyter_text>PatchTSMixer in HuggingFace - Getting Started `PatchTSMixer` is a lightweight time-series modeling approach based on the MLP-Mixer architecture. It is proposed in [TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting](https://huggingface.co/papers/2306.09364) by IBM...
notebooks/examples/patch_tsmixer.ipynb/0
{ "file_path": "notebooks/examples/patch_tsmixer.ipynb", "repo_id": "notebooks", "token_count": 7682 }
309
"""Simple Reader that loads text relevant to a certain search keyword from subreddits.""" from typing import List, Optional from llama_index.core.readers.base import BaseReader from llama_index.core.schema import Document class RedditReader(BaseReader): """ Subreddit post and top-level comments reader for Re...
llama_index/llama-index-integrations/readers/llama-index-readers-reddit/llama_index/readers/reddit/base.py/0
{ "file_path": "llama_index/llama-index-integrations/readers/llama-index-readers-reddit/llama_index/readers/reddit/base.py", "repo_id": "llama_index", "token_count": 835 }
1,513
"""Struct store.""" import re from typing import Any, Callable, Dict, Generic, Optional, Sequence, TypeVar from llama_index.core.data_structs.table import BaseStructTable from llama_index.core.indices.base import BaseIndex from llama_index.core.prompts import BasePromptTemplate from llama_index.core.prompts.default_p...
llama_index/llama-index-core/llama_index/core/indices/struct_store/base.py/0
{ "file_path": "llama_index/llama-index-core/llama_index/core/indices/struct_store/base.py", "repo_id": "llama_index", "token_count": 959 }
1,221
// 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/task.go/0
{ "file_path": "milvus/internal/proxy/task.go", "repo_id": "milvus", "token_count": 22505 }
1,886
from langchain_openai import ( AzureChatOpenAI, AzureOpenAI, AzureOpenAIEmbeddings, ChatOpenAI, OpenAI, OpenAIEmbeddings, ) def test_chat_openai_secrets() -> None: o = ChatOpenAI(openai_api_key="foo") s = str(o) assert "foo" not in s def test_openai_secrets() -> None: o = Ope...
langchain/libs/partners/openai/tests/unit_tests/test_secrets.py/0
{ "file_path": "langchain/libs/partners/openai/tests/unit_tests/test_secrets.py", "repo_id": "langchain", "token_count": 646 }
638
[ { "server": "poseidon", "suite_params": [ { "suite": "clean.yaml", "image_type": "cpu" } ] } ]
milvus/tests/benchmark/milvus_benchmark/scheduler/clean.json/0
{ "file_path": "milvus/tests/benchmark/milvus_benchmark/scheduler/clean.json", "repo_id": "milvus", "token_count": 129 }
2,082
"""Elasticsearch/Opensearch vector store.""" import json import uuid from typing import Any, Dict, Iterable, List, Optional, Union, cast from llama_index.legacy.schema import BaseNode, MetadataMode, TextNode from llama_index.legacy.vector_stores.types import ( MetadataFilters, VectorStore, VectorStoreQuer...
llama_index/llama-index-legacy/llama_index/legacy/vector_stores/opensearch.py/0
{ "file_path": "llama_index/llama-index-legacy/llama_index/legacy/vector_stores/opensearch.py", "repo_id": "llama_index", "token_count": 7140 }
1,654
import json from typing import Any, Dict, List, Optional, cast from langchain_core.callbacks.manager import CallbackManagerForLLMRun from langchain_core.language_models.chat_models import BaseChatModel from langchain_core.messages import ( AIMessage, BaseMessage, ChatMessage, HumanMessage, SystemMe...
langchain/libs/community/langchain_community/chat_models/azureml_endpoint.py/0
{ "file_path": "langchain/libs/community/langchain_community/chat_models/azureml_endpoint.py", "repo_id": "langchain", "token_count": 3502 }
234
from langchain_community.vectorstores.hippo import Hippo __all__ = ["Hippo"]
langchain/libs/langchain/langchain/vectorstores/hippo.py/0
{ "file_path": "langchain/libs/langchain/langchain/vectorstores/hippo.py", "repo_id": "langchain", "token_count": 27 }
603
"""Test the LangSmith evaluation helpers.""" import uuid from datetime import datetime from typing import Any, Dict, Iterator, List, Optional, Union from unittest import mock import pytest from freezegun import freeze_time from langchain_core.language_models import BaseLanguageModel from langsmith.client import Client...
langchain/libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py/0
{ "file_path": "langchain/libs/langchain/tests/unit_tests/smith/evaluation/test_runner_utils.py", "repo_id": "langchain", "token_count": 5196 }
618
<jupyter_start><jupyter_text>Observability with OpenLLMetry[OpenLLMetry](https://github.com/traceloop/openllmetry) is an open-source project based on OpenTelemetry for tracing and monitoringLLM applications. It connects to [all major observability platforms](https://www.traceloop.com/docs/openllmetry/integrations/intro...
llama_index/docs/examples/callbacks/OpenLLMetry.ipynb/0
{ "file_path": "llama_index/docs/examples/callbacks/OpenLLMetry.ipynb", "repo_id": "llama_index", "token_count": 794 }
1,090
""" AdamW Optimizer Impl copied from PyTorch master NOTE: Builtin optim.AdamW is used by the factory, this impl only serves as a Python based reference, will be removed someday """ import math import torch from torch.optim.optimizer import Optimizer class AdamW(Optimizer): r"""Implements AdamW algorithm. Th...
pytorch-image-models/timm/optim/adamw.py/0
{ "file_path": "pytorch-image-models/timm/optim/adamw.py", "repo_id": "pytorch-image-models", "token_count": 2417 }
350
import os import uuid from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain_community.document_loaders import PyPDFLoader from langchain_community.embeddings import OpenAIEmbeddings from langchain_community.vectorstores import MongoDBAtlasVectorSearch from pymongo import MongoClient PARENT...
langchain/templates/mongo-parent-document-retrieval/ingest.py/0
{ "file_path": "langchain/templates/mongo-parent-document-retrieval/ingest.py", "repo_id": "langchain", "token_count": 787 }
666