Skip to content

Commit

Permalink
docs[patch]: Update examples imports to use core (langchain-ai#3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Jan 4, 2024
1 parent a1404ef commit da19a07
Show file tree
Hide file tree
Showing 248 changed files with 669 additions and 623 deletions.
135 changes: 135 additions & 0 deletions docs/api_refs/blacklisted-entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
[
"../../langchain/src/load.ts",
"../../langchain/src/load/serializable.ts",
"../../langchain/src/agents/toolkits/connery.ts",
"../../langchain/src/tools/aws_lambda.ts",
"../../langchain/src/tools/aws_sfn.ts",
"../../langchain/src/tools/connery.ts",
"../../langchain/src/tools/gmail.ts",
"../../langchain/src/tools/google_places.ts",
"../../langchain/src/embeddings/bedrock.ts",
"../../langchain/src/embeddings/cloudflare_workersai.ts",
"../../langchain/src/embeddings/ollama.ts",
"../../langchain/src/embeddings/cohere.ts",
"../../langchain/src/embeddings/tensorflow.ts",
"../../langchain/src/embeddings/hf.ts",
"../../langchain/src/embeddings/hf_transformers.ts",
"../../langchain/src/embeddings/googlevertexai.ts",
"../../langchain/src/embeddings/googlepalm.ts",
"../../langchain/src/embeddings/minimax.ts",
"../../langchain/src/embeddings/voyage.ts",
"../../langchain/src/embeddings/llama_cpp.ts",
"../../langchain/src/embeddings/gradient_ai.ts",
"../../langchain/src/llms/ai21.ts",
"../../langchain/src/llms/aleph_alpha.ts",
"../../langchain/src/llms/cloudflare_workersai.ts",
"../../langchain/src/llms/cohere.ts",
"../../langchain/src/llms/hf.ts",
"../../langchain/src/llms/raycast.ts",
"../../langchain/src/llms/ollama.ts",
"../../langchain/src/llms/replicate.ts",
"../../langchain/src/llms/fireworks.ts",
"../../langchain/src/llms/googlevertexai.ts",
"../../langchain/src/llms/googlevertexai/web.ts",
"../../langchain/src/llms/googlepalm.ts",
"../../langchain/src/llms/gradient_ai.ts",
"../../langchain/src/llms/sagemaker_endpoint.ts",
"../../langchain/src/llms/watsonx_ai.ts",
"../../langchain/src/llms/bedrock.ts",
"../../langchain/src/llms/bedrock/web.ts",
"../../langchain/src/llms/llama_cpp.ts",
"../../langchain/src/llms/writer.ts",
"../../langchain/src/llms/portkey.ts",
"../../langchain/src/llms/yandex.ts",
"../../langchain/src/vectorstores/clickhouse.ts",
"../../langchain/src/vectorstores/analyticdb.ts",
"../../langchain/src/vectorstores/cassandra.ts",
"../../langchain/src/vectorstores/convex.ts",
"../../langchain/src/vectorstores/elasticsearch.ts",
"../../langchain/src/vectorstores/cloudflare_vectorize.ts",
"../../langchain/src/vectorstores/closevector/web.ts",
"../../langchain/src/vectorstores/closevector/node.ts",
"../../langchain/src/vectorstores/chroma.ts",
"../../langchain/src/vectorstores/googlevertexai.ts",
"../../langchain/src/vectorstores/hnswlib.ts",
"../../langchain/src/vectorstores/faiss.ts",
"../../langchain/src/vectorstores/weaviate.ts",
"../../langchain/src/vectorstores/lancedb.ts",
"../../langchain/src/vectorstores/momento_vector_index.ts",
"../../langchain/src/vectorstores/mongodb_atlas.ts",
"../../langchain/src/vectorstores/pinecone.ts",
"../../langchain/src/vectorstores/qdrant.ts",
"../../langchain/src/vectorstores/supabase.ts",
"../../langchain/src/vectorstores/opensearch.ts",
"../../langchain/src/vectorstores/pgvector.ts",
"../../langchain/src/vectorstores/milvus.ts",
"../../langchain/src/vectorstores/neo4j_vector.ts",
"../../langchain/src/vectorstores/prisma.ts",
"../../langchain/src/vectorstores/typeorm.ts",
"../../langchain/src/vectorstores/myscale.ts",
"../../langchain/src/vectorstores/redis.ts",
"../../langchain/src/vectorstores/rockset.ts",
"../../langchain/src/vectorstores/typesense.ts",
"../../langchain/src/vectorstores/singlestore.ts",
"../../langchain/src/vectorstores/tigris.ts",
"../../langchain/src/vectorstores/usearch.ts",
"../../langchain/src/vectorstores/vectara.ts",
"../../langchain/src/vectorstores/vercel_postgres.ts",
"../../langchain/src/vectorstores/voy.ts",
"../../langchain/src/vectorstores/xata.ts",
"../../langchain/src/vectorstores/zep.ts",
"../../langchain/src/memory/zep.ts",
"../../langchain/src/document_transformers/html_to_text.ts",
"../../langchain/src/document_transformers/mozilla_readability.ts",
"../../langchain/src/chat_models/portkey.ts",
"../../langchain/src/chat_models/bedrock.ts",
"../../langchain/src/chat_models/bedrock/web.ts",
"../../langchain/src/chat_models/cloudflare_workersai.ts",
"../../langchain/src/chat_models/googlevertexai.ts",
"../../langchain/src/chat_models/googlevertexai/web.ts",
"../../langchain/src/chat_models/googlepalm.ts",
"../../langchain/src/chat_models/fireworks.ts",
"../../langchain/src/chat_models/baiduwenxin.ts",
"../../langchain/src/chat_models/iflytek_xinghuo.ts",
"../../langchain/src/chat_models/iflytek_xinghuo/web.ts",
"../../langchain/src/chat_models/ollama.ts",
"../../langchain/src/chat_models/minimax.ts",
"../../langchain/src/chat_models/llama_cpp.ts",
"../../langchain/src/chat_models/yandex.ts",
"../../langchain/src/callbacks/handlers/llmonitor.ts",
"../../langchain/src/retrievers/amazon_kendra.ts",
"../../langchain/src/retrievers/supabase.ts",
"../../langchain/src/retrievers/zep.ts",
"../../langchain/src/retrievers/metal.ts",
"../../langchain/src/retrievers/chaindesk.ts",
"../../langchain/src/retrievers/databerry.ts",
"../../langchain/src/retrievers/vectara_summary.ts",
"../../langchain/src/retrievers/tavily_search_api.ts",
"../../langchain/src/retrievers/vespa.ts",
"../../langchain/src/stores/doc/in_memory.ts",
"../../langchain/src/stores/message/cassandra.ts",
"../../langchain/src/stores/message/convex.ts",
"../../langchain/src/stores/message/cloudflare_d1.ts",
"../../langchain/src/stores/message/in_memory.ts",
"../../langchain/src/stores/message/dynamodb.ts",
"../../langchain/src/stores/message/firestore.ts",
"../../langchain/src/stores/message/momento.ts",
"../../langchain/src/stores/message/mongodb.ts",
"../../langchain/src/stores/message/redis.ts",
"../../langchain/src/stores/message/ioredis.ts",
"../../langchain/src/stores/message/upstash_redis.ts",
"../../langchain/src/stores/message/planetscale.ts",
"../../langchain/src/stores/message/xata.ts",
"../../langchain/src/storage/convex.ts",
"../../langchain/src/storage/ioredis.ts",
"../../langchain/src/storage/vercel_kv.ts",
"../../langchain/src/storage/upstash_redis.ts",
"../../langchain/src/graphs/neo4j_graph.ts",
"../../langchain/src/util/convex.ts",
"../../langchain/src/runnables.ts",
"../../libs/langchain-community/src/chat_models/yandex.ts",
"../../libs/langchain-community/src/llms/yandex.ts",
"../../langchain/src/schema/output_parser.ts",
"../../langchain/src/document.ts",
"../../langchain/src/callbacks/index.ts"
]
9 changes: 6 additions & 3 deletions docs/api_refs/scripts/create-entrypoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ const updateJsonFile = (relativePath, updateFunction) => {
function main() {
const project = new Project();
const workspaces = fs
.readdirSync("../../libs/")
.filter((dir) => dir.startsWith("langchain-"))
.map((dir) => path.join("../../libs/", dir, "/scripts/create-entrypoints.js"));
.readdirSync("../../libs/")
.filter((dir) => dir.startsWith("langchain-"))
.map((dir) => path.join("../../libs/", dir, "/scripts/create-entrypoints.js"));
const entrypointFiles = [
"../../langchain/scripts/create-entrypoints.js",
"../../langchain-core/scripts/create-entrypoints.js",
...workspaces,
];
/** @type {Array<string>} */
const blacklistedEntrypoints = JSON.parse(fs.readFileSync("./blacklisted-entrypoints.json"));

const entrypoints = new Set([]);
entrypointFiles.forEach((entrypointFile) => {
Expand Down Expand Up @@ -64,6 +66,7 @@ function main() {

Object.values(entrypointsObject)
.filter((key) => !deprecatedNodeOnly.includes(key))
.filter((key) => !blacklistedEntrypoints.find((blacklistedItem) => blacklistedItem === `${entrypointDir}/src/${key}.ts`))
.map((key) => entrypoints.add(`${entrypointDir}/src/${key}.ts`));
});

Expand Down
Loading

0 comments on commit da19a07

Please sign in to comment.