How to filter documents by metadata using SupabaseHybridSearch and RunnableSequence? #4719
-
Checked other resources
Commit to Help
Example Codeimport { SupabaseVectorStore } from '@langchain/community/vectorstores/supabase';
import { SupabaseHybridSearch } from '@langchain/community/retrievers/supabase';
import {
ChatPromptTemplate,
HumanMessagePromptTemplate,
SystemMessagePromptTemplate,
} from '@langchain/core/prompts';
import {
RunnablePassthrough,
RunnableSequence,
} from '@langchain/core/runnables';
import { formatDocumentsAsString } from 'langchain/util/document';
import { CharacterTextSplitter } from 'langchain/text_splitter';
import { StringOutputParser } from '@langchain/core/output_parsers';
import { IChatbotConfig, IChatbotLeadConfig } from '@/interfaces/chatbot';
import { LLM } from '.';
class Langchain extends LLM {
async uploadContext(chatbotId: string, text: string) {
const splitter = new CharacterTextSplitter({
separator: ' ',
chunkSize: 1000,
chunkOverlap: 0,
});
const docs = await splitter.createDocuments([text], [{ chatbotId }]);
return await SupabaseVectorStore.fromDocuments(docs, this.embeddings, {
client: this.database,
tableName: 'documents',
queryName: 'match_documents',
filter: { chatbotId },
});
}
async queryData(query: string, config: IChatbotConfig) {
const retriever = new SupabaseHybridSearch(this.embeddings, {
client: this.database,
metadata: {
chatbotId: config.chatbotId,
},
// verbose: true,
similarityK: 2,
keywordK: 2,
tableName: 'documents',
similarityQueryName: 'match_documents',
keywordQueryName: 'kw_match_documents',
});
const SYSTEM_TEMPLATE = `Use the following pieces of context to answer the question at the end.
If you don't know the answer, just say that you don't know, don't try to make up an answer.
----------------
{context}`;
const messages = [
SystemMessagePromptTemplate.fromTemplate(
`System name is ${config.botName}.`,
),
SystemMessagePromptTemplate.fromTemplate(
`System gender is ${config.gender}.`,
),
SystemMessagePromptTemplate.fromTemplate(
`System only speaks ${config.language} and doesn't speak any other language.`,
),
SystemMessagePromptTemplate.fromTemplate(
`System personality is: ${config.personality}.`,
),
SystemMessagePromptTemplate.fromTemplate(
`System must follow these instructions: ${config.instructions}.`,
),
SystemMessagePromptTemplate.fromTemplate(SYSTEM_TEMPLATE),
HumanMessagePromptTemplate.fromTemplate('{question}'),
];
const prompt = ChatPromptTemplate.fromMessages(messages);
const chain = RunnableSequence.from([
{
context: retriever.pipe(formatDocumentsAsString),
question: new RunnablePassthrough(),
},
prompt,
this.llm,
new StringOutputParser(),
]);
return await chain.invoke(query);
}
}
export default new Langchain(); DescriptionI'm creating a nodejs application to create conversational bots, I have created these two methods In method Someone can help me on how to filter by metadata using the retriever System Infoyarn info v1.22.19
{
time: {
created: '2023-02-14T18:06:57.074Z',
'1.0.0': '2023-01-20T03:45:29.634Z',
modified: '2024-03-10T01:36:02.256Z',
'1.0.9': '2023-01-22T02:02:57.467Z',
'0.0.1': '2023-01-26T21:22:58.657Z',
'0.0.4': '2023-02-14T18:06:57.434Z',
'0.0.5': '2023-02-17T05:51:37.227Z',
'0.0.6': '2023-02-17T08:53:32.946Z',
'0.0.7': '2023-02-18T00:31:00.386Z',
'0.0.8': '2023-02-20T04:56:45.683Z',
'0.0.9': '2023-02-21T07:17:14.208Z',
'0.0.10': '2023-02-22T18:48:35.631Z',
'0.0.11': '2023-02-23T16:12:41.455Z',
'0.0.12': '2023-02-26T18:49:26.071Z',
'0.0.13': '2023-02-27T16:03:50.432Z',
'0.0.14': '2023-02-27T16:59:17.082Z',
'0.0.15': '2023-02-27T17:59:53.741Z',
'0.0.16': '2023-02-28T16:41:21.705Z',
'0.0.17': '2023-03-01T15:28:09.338Z',
'0.0.18': '2023-03-01T20:00:24.554Z',
'0.0.19': '2023-03-01T20:58:49.811Z',
'0.0.20': '2023-03-02T17:11:30.882Z',
'0.0.21': '2023-03-03T19:23:04.354Z',
'0.0.22': '2023-03-04T16:00:04.873Z',
'0.0.23': '2023-03-06T16:42:44.996Z',
'0.0.24': '2023-03-07T18:10:28.933Z',
'0.0.25': '2023-03-08T17:42:24.706Z',
'0.0.26': '2023-03-09T19:36:23.799Z',
'0.0.27': '2023-03-10T16:24:31.279Z',
'0.0.28': '2023-03-11T19:41:29.182Z',
'0.0.29': '2023-03-12T07:41:25.588Z',
'0.0.30': '2023-03-13T19:27:19.085Z',
'0.0.31': '2023-03-13T22:48:33.902Z',
'0.0.32': '2023-03-14T08:48:30.479Z',
'0.0.33': '2023-03-14T18:36:54.970Z',
'0.0.34': '2023-03-15T18:20:43.233Z',
'0.0.35': '2023-03-15T18:59:13.048Z',
'0.0.36': '2023-03-17T18:55:33.715Z',
'0.0.37': '2023-03-20T20:10:36.444Z',
'0.0.38': '2023-03-21T18:31:14.819Z',
'0.0.39': '2023-03-22T15:47:46.529Z',
'0.0.40': '2023-03-24T15:13:53.947Z',
'0.0.41': '2023-03-24T19:33:29.565Z',
'0.0.42': '2023-03-27T18:47:07.410Z',
'0.0.43': '2023-03-28T18:43:21.068Z',
'0.0.44': '2023-03-29T18:45:08.636Z',
'0.0.45': '2023-03-31T15:55:26.705Z',
'0.0.46': '2023-04-03T15:46:07.061Z',
'0.0.47': '2023-04-03T15:55:06.384Z',
'0.0.48': '2023-04-04T17:25:41.531Z',
'0.0.49-0': '2023-04-05T12:56:44.659Z',
'0.0.49-1': '2023-04-05T13:07:31.197Z',
'0.0.49': '2023-04-06T10:31:23.786Z',
'0.0.50': '2023-04-07T21:46:20.961Z',
'0.0.51': '2023-04-08T17:07:19.121Z',
'0.0.52-0': '2023-04-09T17:48:55.378Z',
'0.0.52': '2023-04-10T18:57:02.678Z',
'0.0.53': '2023-04-11T15:51:36.258Z',
'0.0.54': '2023-04-12T16:59:09.975Z',
'0.0.55': '2023-04-13T16:22:58.352Z',
'0.0.56': '2023-04-14T17:47:49.152Z',
'0.0.57': '2023-04-17T17:01:13.362Z',
'0.0.58': '2023-04-18T18:51:48.339Z',
'0.0.59': '2023-04-18T20:23:09.912Z',
'0.0.60': '2023-04-21T18:45:14.498Z',
'0.0.61': '2023-04-21T20:58:46.669Z',
'0.0.62': '2023-04-22T20:27:37.499Z',
'0.0.63': '2023-04-23T15:27:57.932Z',
'0.0.64': '2023-04-25T15:58:01.314Z',
'0.0.65': '2023-04-28T11:29:13.611Z',
'0.0.66': '2023-04-28T12:48:12.798Z',
'0.0.67': '2023-05-01T14:55:22.206Z',
'0.0.68': '2023-05-02T19:51:47.329Z',
'0.0.69': '2023-05-04T17:35:32.223Z',
'0.0.70': '2023-05-05T16:40:01.904Z',
'0.0.71': '2023-05-06T15:19:04.361Z',
'0.0.72': '2023-05-08T07:03:31.569Z',
'0.0.73': '2023-05-09T18:50:58.586Z',
'0.0.74': '2023-05-10T15:50:49.597Z',
'0.0.75': '2023-05-11T18:54:42.166Z',
'0.0.76': '2023-05-17T19:35:53.355Z',
'0.0.77': '2023-05-18T15:25:50.965Z',
'0.0.78': '2023-05-19T15:18:20.002Z',
'0.0.79': '2023-05-23T16:30:38.510Z',
'0.0.80': '2023-05-23T18:18:28.751Z',
'0.0.81': '2023-05-23T18:57:35.910Z',
'0.0.82': '2023-05-25T00:15:56.768Z',
'0.0.83': '2023-05-25T16:48:27.312Z',
'0.0.84': '2023-05-26T20:43:14.443Z',
'0.0.85': '2023-05-30T19:31:33.866Z',
'0.0.86': '2023-05-30T23:26:55.520Z',
'0.0.87': '2023-05-31T15:23:33.608Z',
'0.0.88': '2023-06-01T02:10:23.366Z',
'0.0.89': '2023-06-02T16:10:24.873Z',
'0.0.90': '2023-06-03T01:29:12.535Z',
'0.0.91': '2023-06-04T23:00:33.336Z',
'0.0.92': '2023-06-07T20:40:58.171Z',
'0.0.93': '2023-06-13T17:32:25.870Z',
'0.0.94': '2023-06-13T21:41:36.359Z',
'0.0.95': '2023-06-14T14:25:53.017Z',
'0.0.96': '2023-06-19T18:24:31.016Z',
'0.0.97': '2023-06-26T20:08:09.043Z',
'0.0.98': '2023-06-28T05:15:53.569Z',
'0.0.99': '2023-06-29T10:00:34.210Z',
'0.0.100': '2023-06-29T16:19:24.235Z',
'0.0.101': '2023-06-30T19:51:23.760Z',
'0.0.102': '2023-07-01T19:12:19.594Z',
'0.0.103': '2023-07-05T23:21:04.630Z',
'0.0.104': '2023-07-07T01:35:39.991Z',
'0.0.105': '2023-07-09T00:55:47.724Z',
'0.0.106': '2023-07-10T17:32:39.936Z',
'0.0.107': '2023-07-12T06:09:52.155Z',
'0.0.108': '2023-07-13T02:24:55.332Z',
'0.0.109': '2023-07-14T01:37:31.791Z',
'0.0.110': '2023-07-15T17:39:11.281Z',
'0.0.111': '2023-07-18T04:22:39.858Z',
'0.0.112': '2023-07-18T18:22:02.588Z',
'0.0.113': '2023-07-19T23:56:22.261Z',
'0.0.114': '2023-07-21T03:00:26.247Z',
'0.0.115': '2023-07-24T01:01:00.307Z',
'0.0.116': '2023-07-24T05:19:14.838Z',
'0.0.117': '2023-07-25T00:26:59.388Z',
'0.0.118': '2023-07-26T16:09:04.672Z',
'0.0.119': '2023-07-28T22:08:02.687Z',
'0.0.120': '2023-07-30T17:08:46.417Z',
'0.0.121': '2023-08-01T21:15:07.740Z',
'0.0.122': '2023-08-03T03:25:11.530Z',
'0.0.123': '2023-08-05T06:09:18.474Z',
'0.0.124': '2023-08-07T05:38:39.271Z',
'0.0.125': '2023-08-09T03:48:44.885Z',
'0.0.126': '2023-08-11T01:19:19.011Z',
'0.0.127': '2023-08-12T01:03:28.743Z',
'0.0.128': '2023-08-15T06:55:07.574Z',
'0.0.129': '2023-08-16T02:39:45.923Z',
'0.0.130': '2023-08-18T01:17:54.954Z',
'0.0.131': '2023-08-19T00:48:09.017Z',
'0.0.132': '2023-08-21T23:24:17.628Z',
'0.0.133': '2023-08-24T02:13:40.841Z',
'0.0.134': '2023-08-25T04:45:19.565Z',
'0.0.135': '2023-08-26T00:44:11.083Z',
'0.0.136': '2023-08-29T01:36:44.900Z',
'0.0.137': '2023-08-30T01:34:15.475Z',
'0.0.138': '2023-08-31T02:22:36.630Z',
'0.0.139': '2023-09-01T07:20:17.993Z',
'0.0.140': '2023-09-02T00:37:02.261Z',
'0.0.141': '2023-09-03T07:34:21.546Z',
'0.0.142': '2023-09-04T20:15:53.914Z',
'0.0.143': '2023-09-05T14:41:59.202Z',
'0.0.144': '2023-09-06T01:21:44.338Z',
'0.0.145': '2023-09-07T01:35:35.892Z',
'0.0.146': '2023-09-08T15:27:22.355Z',
'0.0.147': '2023-09-12T06:22:04.926Z',
'0.0.148': '2023-09-13T03:03:39.760Z',
'0.0.149': '2023-09-14T01:40:17.567Z',
'0.0.150': '2023-09-15T06:28:14.560Z',
'0.0.151': '2023-09-19T03:53:15.800Z',
'0.0.152': '2023-09-20T00:08:57.506Z',
'0.0.153': '2023-09-21T03:10:39.410Z',
'0.0.154': '2023-09-26T01:47:45.016Z',
'0.0.155': '2023-09-28T01:35:14.504Z',
'0.0.156': '2023-09-29T05:55:44.312Z',
'0.0.157': '2023-10-02T01:10:49.355Z',
'0.0.158': '2023-10-03T16:33:07.960Z',
'0.0.159': '2023-10-04T05:07:58.638Z',
'0.0.160': '2023-10-04T22:07:49.157Z',
'0.0.161': '2023-10-06T02:07:05.756Z',
'0.0.162': '2023-10-07T01:37:20.312Z',
'0.0.163': '2023-10-08T01:32:36.536Z',
'0.0.164': '2023-10-10T01:43:32.276Z',
'0.0.165': '2023-10-10T20:57:49.443Z',
'0.0.166': '2023-10-12T01:40:20.109Z',
'0.0.167': '2023-10-14T00:32:54.607Z',
'0.0.168': '2023-10-18T02:53:34.953Z',
'0.0.169': '2023-10-19T06:32:45.493Z',
'0.0.170': '2023-10-20T22:38:06.659Z',
'0.0.171': '2023-10-24T00:17:00.928Z',
'0.0.172': '2023-10-24T20:19:09.813Z',
'0.0.173': '2023-10-26T00:58:15.045Z',
'0.0.174': '2023-10-26T23:11:53.499Z',
'0.0.175': '2023-10-28T17:04:03.349Z',
'0.0.176': '2023-10-31T00:57:13.953Z',
'0.0.177': '2023-11-01T00:20:00.276Z',
'0.0.178': '2023-11-01T22:33:03.571Z',
'0.0.179': '2023-11-03T05:49:56.666Z',
'0.0.180': '2023-11-03T22:15:10.842Z',
'0.0.181': '2023-11-06T09:59:26.380Z',
'0.0.182-rc.0': '2023-11-06T22:23:48.947Z',
'0.0.182-rc.1': '2023-11-07T03:41:06.816Z',
'0.0.182': '2023-11-08T04:04:31.241Z',
'0.0.183': '2023-11-08T05:25:05.808Z',
'0.0.184': '2023-11-08T23:56:28.690Z',
'0.0.185': '2023-11-10T02:35:22.582Z',
'0.0.186': '2023-11-11T02:24:26.776Z',
'0.0.187': '2023-11-14T04:35:18.096Z',
'0.0.188': '2023-11-15T05:34:58.759Z',
'0.0.189': '2023-11-15T06:30:57.181Z',
'0.0.190': '2023-11-16T15:23:59.223Z',
'0.0.191': '2023-11-16T16:31:07.507Z',
'0.0.192': '2023-11-17T02:06:54.439Z',
'0.0.193': '2023-11-19T11:06:54.623Z',
'0.0.194': '2023-11-20T02:15:31.205Z',
'0.0.195': '2023-11-20T20:25:34.666Z',
'0.0.196': '2023-11-22T02:19:47.812Z',
'0.0.197-rc.0': '2023-11-22T22:16:48.971Z',
'0.0.197-rc.1': '2023-11-23T05:27:13.906Z',
'0.0.197': '2023-11-27T17:42:53.476Z',
'0.0.198': '2023-11-28T02:22:55.183Z',
'0.0.199': '2023-12-01T01:28:26.144Z',
'0.0.200': '2023-12-02T04:43:25.313Z',
'0.0.201': '2023-12-05T04:22:22.540Z',
'0.0.202': '2023-12-06T01:34:55.388Z',
'0.0.203': '2023-12-07T06:15:39.619Z',
'0.0.204-rc.0': '2023-12-08T02:34:03.010Z',
'0.0.204-rc.1': '2023-12-09T03:54:40.336Z',
'0.0.204-rc.2': '2023-12-11T20:15:35.207Z',
'0.0.204': '2023-12-11T22:28:49.455Z',
'0.0.205': '2023-12-12T18:27:07.427Z',
'0.0.206': '2023-12-13T04:51:42.993Z',
'0.0.207': '2023-12-14T03:34:38.535Z',
'0.0.208': '2023-12-15T10:05:40.181Z',
'0.0.209-rc.0': '2023-12-17T03:47:20.439Z',
'0.0.209': '2023-12-17T06:10:40.303Z',
'0.0.210': '2023-12-20T02:53:42.769Z',
'0.0.211': '2023-12-21T07:29:16.193Z',
'0.0.212': '2023-12-23T01:22:18.040Z',
'0.0.213': '2023-12-29T15:33:05.323Z',
'0.0.214': '2024-01-03T03:24:13.994Z',
'0.1.0-rc.0': '2024-01-05T22:33:51.804Z',
'0.1.0-rc.1': '2024-01-06T03:41:30.131Z',
'0.1.0': '2024-01-06T03:58:20.185Z',
'0.1.1': '2024-01-08T00:25:32.620Z',
'0.1.2': '2024-01-09T22:35:21.328Z',
'0.1.3': '2024-01-15T17:18:03.822Z',
'0.1.4': '2024-01-18T05:58:46.640Z',
'0.1.5': '2024-01-21T17:57:55.335Z',
'0.1.6': '2024-01-24T07:58:31.013Z',
'0.1.7': '2024-01-25T07:27:13.252Z',
'0.1.8': '2024-01-27T01:11:52.718Z',
'0.1.9-rc.0': '2024-01-27T06:14:56.103Z',
'0.1.9': '2024-01-27T06:25:12.844Z',
'0.1.10': '2024-01-30T09:54:07.013Z',
'0.1.11': '2024-01-31T03:31:39.843Z',
'0.1.12': '2024-02-01T23:57:54.094Z',
'0.1.13': '2024-02-05T03:24:29.383Z',
'0.1.14': '2024-02-07T01:03:54.355Z',
'0.1.15': '2024-02-07T19:22:37.134Z',
'0.1.16-rc.0': '2024-02-07T23:34:28.951Z',
'0.1.16': '2024-02-07T23:45:35.740Z',
'0.1.17': '2024-02-08T23:22:04.844Z',
'0.1.18': '2024-02-13T23:15:14.011Z',
'0.1.19-rc.0': '2024-02-14T23:59:15.835Z',
'0.1.19-rc.1': '2024-02-16T00:20:22.801Z',
'0.1.19': '2024-02-16T04:48:07.787Z',
'0.1.19-rc.2': '2024-02-16T18:47:07.688Z',
'0.1.20': '2024-02-16T22:03:07.378Z',
'0.1.21': '2024-02-21T22:48:04.422Z',
'0.1.22': '2024-02-26T20:27:53.383Z',
'0.1.23': '2024-02-27T04:07:47.477Z',
'0.1.24': '2024-02-29T00:52:15.516Z',
'0.1.25': '2024-03-01T18:49:55.617Z',
'0.1.26': '2024-03-10T01:36:01.782Z'
},
name: 'langchain',
'dist-tags': {
latest: '0.1.26',
next: '0.1.19-rc.2'
},
versions: [
'0.0.4',
'0.0.5',
'0.0.6',
'0.0.7',
'0.0.8',
'0.0.9',
'0.0.10',
'0.0.11',
'0.0.12',
'0.0.13',
'0.0.14',
'0.0.15',
'0.0.16',
'0.0.17',
'0.0.18',
'0.0.19',
'0.0.20',
'0.0.21',
'0.0.22',
'0.0.23',
'0.0.24',
'0.0.25',
'0.0.26',
'0.0.27',
'0.0.28',
'0.0.29',
'0.0.30',
'0.0.31',
'0.0.32',
'0.0.33',
'0.0.34',
'0.0.35',
'0.0.36',
'0.0.37',
'0.0.38',
'0.0.39',
'0.0.40',
'0.0.41',
'0.0.42',
'0.0.43',
'0.0.44',
'0.0.45',
'0.0.46',
'0.0.47',
'0.0.48',
'0.0.49-0',
'0.0.49-1',
'0.0.49',
'0.0.50',
'0.0.51',
'0.0.52-0',
'0.0.52',
'0.0.53',
'0.0.54',
'0.0.55',
'0.0.56',
'0.0.57',
'0.0.58',
'0.0.59',
'0.0.60',
'0.0.61',
'0.0.62',
'0.0.63',
'0.0.64',
'0.0.65',
'0.0.66',
'0.0.67',
'0.0.68',
'0.0.69',
'0.0.70',
'0.0.71',
'0.0.72',
'0.0.73',
'0.0.74',
'0.0.75',
'0.0.76',
'0.0.77',
'0.0.78',
'0.0.79',
'0.0.80',
'0.0.81',
'0.0.82',
'0.0.83',
'0.0.84',
'0.0.85',
'0.0.86',
'0.0.87',
'0.0.88',
'0.0.89',
'0.0.90',
'0.0.91',
'0.0.92',
'0.0.93',
'0.0.94',
'0.0.95',
'0.0.96',
'0.0.97',
'0.0.98',
'0.0.99',
'0.0.100',
'0.0.101',
'0.0.102',
'0.0.103',
'0.0.104',
'0.0.105',
'0.0.106',
'0.0.107',
'0.0.108',
'0.0.109',
'0.0.110',
'0.0.111',
'0.0.112',
'0.0.113',
'0.0.114',
'0.0.115',
'0.0.116',
'0.0.117',
'0.0.118',
'0.0.119',
'0.0.120',
'0.0.121',
'0.0.122',
'0.0.123',
'0.0.124',
'0.0.125',
'0.0.126',
'0.0.127',
'0.0.128',
'0.0.129',
'0.0.130',
'0.0.131',
'0.0.132',
'0.0.133',
'0.0.134',
'0.0.135',
'0.0.136',
'0.0.137',
'0.0.138',
'0.0.139',
'0.0.140',
'0.0.141',
'0.0.142',
'0.0.143',
'0.0.144',
'0.0.145',
'0.0.146',
'0.0.147',
'0.0.148',
'0.0.149',
'0.0.150',
'0.0.151',
'0.0.152',
'0.0.153',
'0.0.154',
'0.0.155',
'0.0.156',
'0.0.157',
'0.0.158',
'0.0.159',
'0.0.160',
'0.0.161',
'0.0.162',
'0.0.163',
'0.0.164',
'0.0.165',
'0.0.166',
'0.0.167',
'0.0.168',
'0.0.169',
'0.0.170',
'0.0.171',
'0.0.172',
'0.0.173',
'0.0.174',
'0.0.175',
'0.0.176',
'0.0.177',
'0.0.178',
'0.0.179',
'0.0.180',
'0.0.181',
'0.0.182-rc.0',
'0.0.182-rc.1',
'0.0.182',
'0.0.183',
'0.0.184',
'0.0.185',
'0.0.186',
'0.0.187',
'0.0.188',
'0.0.189',
'0.0.190',
'0.0.191',
'0.0.192',
'0.0.193',
'0.0.194',
'0.0.195',
'0.0.196',
'0.0.197-rc.0',
'0.0.197-rc.1',
'0.0.197',
'0.0.198',
'0.0.199',
'0.0.200',
'0.0.201',
'0.0.202',
'0.0.203',
'0.0.204-rc.0',
'0.0.204-rc.1',
'0.0.204-rc.2',
'0.0.204',
'0.0.205',
'0.0.206',
'0.0.207',
'0.0.208',
'0.0.209-rc.0',
'0.0.209',
'0.0.210',
'0.0.211',
'0.0.212',
'0.0.213',
'0.0.214',
'0.1.0-rc.0',
'0.1.0-rc.1',
'0.1.0',
'0.1.1',
'0.1.2',
'0.1.3',
'0.1.4',
'0.1.5',
'0.1.6',
'0.1.7',
'0.1.8',
'0.1.9-rc.0',
'0.1.9',
'0.1.10',
'0.1.11',
'0.1.12',
'0.1.13',
'0.1.14',
'0.1.15',
'0.1.16-rc.0',
'0.1.16',
'0.1.17',
'0.1.18',
'0.1.19-rc.0',
'0.1.19-rc.1',
'0.1.19-rc.2',
'0.1.19',
'0.1.20',
'0.1.21',
'0.1.22',
'0.1.23',
'0.1.24',
'0.1.25',
'0.1.26'
],
maintainers: [
{
name: 'nfcampos',
email: '[email protected]'
},
{
name: 'jacoblee93',
email: '[email protected]'
},
{
name: 'davidduong',
email: '[email protected]'
},
{
name: 'hwchase17',
email: '[email protected]'
},
{
name: 'basproul',
email: '[email protected]'
}
],
description: 'Typescript bindings for langchain',
author: {
name: 'LangChain'
},
license: 'MIT',
readmeFilename: 'README.md',
keywords: [
'llm',
'ai',
'gpt3',
'chain',
'prompt',
'prompt engineering',
'chatgpt',
'machine learning',
'ml',
'openai',
'embeddings',
'vectorstores'
],
repository: {
type: 'git',
url: 'git+ssh://[email protected]/langchain-ai/langchainjs.git'
},
homepage: 'https://github.com/langchain-ai/langchainjs/tree/main/langchain/',
bugs: {
url: 'https://github.com/langchain-ai/langchainjs/issues'
},
version: '0.1.26',
type: 'module',
engines: {
node: '>=18'
},
main: './index.js',
types: './index.d.ts',
scripts: {
build: 'yarn run build:deps && yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts',
'build:deps': 'yarn run turbo:command build --filter=@langchain/core --filter=@langchain/anthropic --filter=@langchain/openai --filter=@langchain/community --concurrency=1',
'build:esm': 'NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rimraf dist/tests dist/**/tests',
'build:cjs': 'NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rimraf dist-cjs',
'build:watch': 'yarn create-entrypoints && tsc --outDir dist/ --watch',
'build:scripts': 'yarn create-entrypoints && yarn check-tree-shaking',
'lint:eslint': 'NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/',
'lint:dpdm': 'dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts',
lint: 'yarn lint:eslint && yarn lint:dpdm',
'lint:fix': 'yarn lint:eslint --fix && yarn lint:dpdm',
precommit: 'lint-staged',
clean: 'rimraf .turbo/ dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre --gen-maps',
prepack: 'yarn build',
release: 'release-it --only-version --config .release-it.json',
test: 'yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%',
'test:watch': 'yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts',
'test:integration': 'yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%',
'test:single': 'yarn run build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000',
format: 'prettier --config .prettierrc --write "src"',
'format:check': 'prettier --config .prettierrc --check "src"',
'move-cjs-to-dist': 'yarn lc-build --config ./langchain.config.js --move-cjs-dist',
'create-entrypoints': 'yarn lc-build --config ./langchain.config.js --create-entrypoints',
'check-tree-shaking': 'yarn lc-build --config ./langchain.config.js --tree-shaking'
},
devDependencies: {
'@aws-sdk/client-s3': '^3.310.0',
'@aws-sdk/client-sagemaker-runtime': '^3.414.0',
'@aws-sdk/client-sfn': '^3.362.0',
'@aws-sdk/credential-provider-node': '^3.388.0',
'@aws-sdk/types': '^3.357.0',
'@azure/storage-blob': '^12.15.0',
'@cloudflare/workers-types': '^4.20230922.0',
'@faker-js/faker': '^7.6.0',
'@gomomento/sdk': '^1.51.1',
'@gomomento/sdk-core': '^1.51.1',
'@google-ai/generativelanguage': '^0.2.1',
'@google-cloud/storage': '^7.7.0',
'@jest/globals': '^29.5.0',
'@langchain/scripts': '~0.0',
'@notionhq/client': '^2.2.10',
'@pinecone-database/pinecone': '^1.1.0',
'@supabase/supabase-js': '^2.10.0',
'@swc/core': '^1.3.90',
'@swc/jest': '^0.2.29',
'@tsconfig/recommended': '^1.0.2',
'@types/d3-dsv': '^2',
'@types/decamelize': '^1.2.0',
'@types/handlebars': '^4.1.0',
'@types/html-to-text': '^9',
'@types/js-yaml': '^4',
'@types/jsdom': '^21.1.1',
'@types/pdf-parse': '^1.1.1',
'@types/uuid': '^9',
'@types/ws': '^8',
'@typescript-eslint/eslint-plugin': '^5.58.0',
'@typescript-eslint/parser': '^5.58.0',
'@vercel/kv': '^0.2.3',
'@xata.io/client': '^0.28.0',
'apify-client': '^2.7.1',
assemblyai: '^4.0.0',
axios: '^0.26.0',
cheerio: '^1.0.0-rc.12',
chromadb: '^1.5.3',
convex: '^1.3.1',
couchbase: '^4.2.10',
'd3-dsv': '^2.0.0',
dotenv: '^16.0.3',
dpdm: '^3.12.0',
epub2: '^3.0.1',
eslint: '^8.33.0',
'eslint-config-airbnb-base': '^15.0.0',
'eslint-config-prettier': '^8.6.0',
'eslint-plugin-import': '^2.27.5',
'eslint-plugin-jest': '^27.6.0',
'eslint-plugin-no-instanceof': '^1.0.1',
'eslint-plugin-prettier': '^4.2.1',
'fast-xml-parser': '^4.2.7',
'google-auth-library': '^8.9.0',
handlebars: '^4.7.8',
'html-to-text': '^9.0.5',
ignore: '^5.2.0',
ioredis: '^5.3.2',
jest: '^29.5.0',
'jest-environment-node': '^29.6.4',
jsdom: '^22.1.0',
mammoth: '^1.5.1',
mongodb: '^5.2.0',
'node-llama-cpp': '2.7.3',
'notion-to-md': '^3.1.0',
officeparser: '^4.0.4',
openai: '^4.26.1',
'pdf-parse': '1.1.1',
peggy: '^3.0.2',
playwright: '^1.32.1',
prettier: '^2.8.3',
puppeteer: '^19.7.2',
pyodide: '^0.24.1',
redis: '^4.6.6',
'release-it': '^15.10.1',
rimraf: '^5.0.1',
rollup: '^3.19.1',
'sonix-speech-recognition': '^2.1.1',
'srt-parser-2': '^1.2.3',
'ts-jest': '^29.1.0',
typeorm: '^0.3.12',
typescript: '~5.1.6',
'weaviate-ts-client': '^2.0.0',
'web-auth-library': '^1.0.3',
wikipedia: '^2.1.2',
'youtube-transcript': '^1.0.6',
'youtubei.js': '^9.1.0'
},
peerDependencies: {
'@aws-sdk/client-s3': '^3.310.0',
'@aws-sdk/client-sagemaker-runtime': '^3.310.0',
'@aws-sdk/client-sfn': '^3.310.0',
'@aws-sdk/credential-provider-node': '^3.388.0',
'@azure/storage-blob': '^12.15.0',
'@gomomento/sdk': '^1.51.1',
'@gomomento/sdk-core': '^1.51.1',
'@gomomento/sdk-web': '^1.51.1',
'@google-ai/generativelanguage': '^0.2.1',
'@google-cloud/storage': '^6.10.1 || ^7.7.0',
'@notionhq/client': '^2.2.10',
'@pinecone-database/pinecone': '*',
'@supabase/supabase-js': '^2.10.0',
'@vercel/kv': '^0.2.3',
'@xata.io/client': '^0.28.0',
'apify-client': '^2.7.1',
assemblyai: '^4.0.0',
axios: '*',
cheerio: '^1.0.0-rc.12',
chromadb: '*',
convex: '^1.3.1',
couchbase: '^4.2.10',
'd3-dsv': '^2.0.0',
epub2: '^3.0.1',
'fast-xml-parser': '*',
'google-auth-library': '^8.9.0',
handlebars: '^4.7.8',
'html-to-text': '^9.0.5',
ignore: '^5.2.0',
ioredis: '^5.3.2',
jsdom: '*',
mammoth: '^1.6.0',
mongodb: '>=5.2.0',
'node-llama-cpp': '*',
'notion-to-md': '^3.1.0',
officeparser: '^4.0.4',
'pdf-parse': '1.1.1',
peggy: '^3.0.2',
playwright: '^1.32.1',
puppeteer: '^19.7.2',
pyodide: '^0.24.1',
redis: '^4.6.4',
'sonix-speech-recognition': '^2.1.1',
'srt-parser-2': '^1.2.3',
typeorm: '^0.3.12',
'weaviate-ts-client': '*',
'web-auth-library': '^1.0.3',
ws: '^8.14.2',
'youtube-transcript': '^1.0.6',
'youtubei.js': '^9.1.0'
},
peerDependenciesMeta: {
'@aws-sdk/client-s3': {
optional: true
},
'@aws-sdk/client-sagemaker-runtime': {
optional: true
},
'@aws-sdk/client-sfn': {
optional: true
},
'@aws-sdk/credential-provider-node': {
optional: true
},
'@azure/storage-blob': {
optional: true
},
'@gomomento/sdk': {
optional: true
},
'@gomomento/sdk-core': {
optional: true
},
'@gomomento/sdk-web': {
optional: true
},
'@google-ai/generativelanguage': {
optional: true
},
'@google-cloud/storage': {
optional: true
},
'@notionhq/client': {
optional: true
},
'@pinecone-database/pinecone': {
optional: true
},
'@supabase/supabase-js': {
optional: true
},
'@vercel/kv': {
optional: true
},
'@xata.io/client': {
optional: true
},
'apify-client': {
optional: true
},
assemblyai: {
optional: true
},
axios: {
optional: true
},
cheerio: {
optional: true
},
chromadb: {
optional: true
},
convex: {
optional: true
},
couchbase: {
optional: true
},
'd3-dsv': {
optional: true
},
epub2: {
optional: true
},
'faiss-node': {
optional: true
},
'fast-xml-parser': {
optional: true
},
'google-auth-library': {
optional: true
},
handlebars: {
optional: true
},
'html-to-text': {
optional: true
},
ignore: {
optional: true
},
ioredis: {
optional: true
},
jsdom: {
optional: true
},
mammoth: {
optional: true
},
mongodb: {
optional: true
},
'node-llama-cpp': {
optional: true
},
'notion-to-md': {
optional: true
},
officeparser: {
optional: true
},
'pdf-parse': {
optional: true
},
peggy: {
optional: true
},
playwright: {
optional: true
},
puppeteer: {
optional: true
},
pyodide: {
optional: true
},
redis: {
optional: true
},
'sonix-speech-recognition': {
optional: true
},
'srt-parser-2': {
optional: true
},
typeorm: {
optional: true
},
'weaviate-ts-client': {
optional: true
},
'web-auth-library': {
optional: true
},
ws: {
optional: true
},
'youtube-transcript': {
optional: true
},
'youtubei.js': {
optional: true
}
},
dependencies: {
'@anthropic-ai/sdk': '^0.9.1',
'@langchain/community': '~0.0.36',
'@langchain/core': '~0.1.44',
'@langchain/openai': '~0.0.19',
'binary-extensions': '^2.2.0',
'expr-eval': '^2.0.2',
'js-tiktoken': '^1.0.7',
'js-yaml': '^4.1.0',
jsonpointer: '^5.0.1',
langchainhub: '~0.0.8',
langsmith: '~0.1.7',
'ml-distance': '^4.0.0',
'openapi-types': '^12.1.3',
'p-retry': '4',
uuid: '^9.0.0',
yaml: '^2.2.1',
zod: '^3.22.4',
'zod-to-json-schema': '^3.22.3'
},
publishConfig: {
access: 'public'
},
exports: {
'./load': {
types: {
import: './load.d.ts',
require: './load.d.cts',
default: './load.d.ts'
},
import: './load.js',
require: './load.cjs'
},
'./load/serializable': {
types: {
import: './load/serializable.d.ts',
require: './load/serializable.d.cts',
default: './load/serializable.d.ts'
},
import: './load/serializable.js',
require: './load/serializable.cjs'
},
'./agents': {
types: {
import: './agents.d.ts',
require: './agents.d.cts',
default: './agents.d.ts'
},
import: './agents.js',
require: './agents.cjs'
},
'./agents/load': {
types: {
import: './agents/load.d.ts',
require: './agents/load.d.cts',
default: './agents/load.d.ts'
},
import: './agents/load.js',
require: './agents/load.cjs'
},
'./agents/toolkits': {
types: {
import: './agents/toolkits.d.ts',
require: './agents/toolkits.d.cts',
default: './agents/toolkits.d.ts'
},
import: './agents/toolkits.js',
require: './agents/toolkits.cjs'
},
'./agents/toolkits/aws_sfn': {
types: {
import: './agents/toolkits/aws_sfn.d.ts',
require: './agents/toolkits/aws_sfn.d.cts',
default: './agents/toolkits/aws_sfn.d.ts'
},
import: './agents/toolkits/aws_sfn.js',
require: './agents/toolkits/aws_sfn.cjs'
},
'./agents/toolkits/connery': {
types: {
import: './agents/toolkits/connery.d.ts',
require: './agents/toolkits/connery.d.cts',
default: './agents/toolkits/connery.d.ts'
},
import: './agents/toolkits/connery.js',
require: './agents/toolkits/connery.cjs'
},
'./agents/toolkits/sql': {
types: {
import: './agents/toolkits/sql.d.ts',
require: './agents/toolkits/sql.d.cts',
default: './agents/toolkits/sql.d.ts'
},
import: './agents/toolkits/sql.js',
require: './agents/toolkits/sql.cjs'
},
'./agents/format_scratchpad': {
types: {
import: './agents/format_scratchpad.d.ts',
require: './agents/format_scratchpad.d.cts',
default: './agents/format_scratchpad.d.ts'
},
import: './agents/format_scratchpad.js',
require: './agents/format_scratchpad.cjs'
},
'./agents/format_scratchpad/openai_tools': {
types: {
import: './agents/format_scratchpad/openai_tools.d.ts',
require: './agents/format_scratchpad/openai_tools.d.cts',
default: './agents/format_scratchpad/openai_tools.d.ts'
},
import: './agents/format_scratchpad/openai_tools.js',
require: './agents/format_scratchpad/openai_tools.cjs'
},
'./agents/format_scratchpad/log': {
types: {
import: './agents/format_scratchpad/log.d.ts',
require: './agents/format_scratchpad/log.d.cts',
default: './agents/format_scratchpad/log.d.ts'
},
import: './agents/format_scratchpad/log.js',
require: './agents/format_scratchpad/log.cjs'
},
'./agents/format_scratchpad/xml': {
types: {
import: './agents/format_scratchpad/xml.d.ts',
require: './agents/format_scratchpad/xml.d.cts',
default: './agents/format_scratchpad/xml.d.ts'
},
import: './agents/format_scratchpad/xml.js',
require: './agents/format_scratchpad/xml.cjs'
},
'./agents/format_scratchpad/log_to_message': {
types: {
import: './agents/format_scratchpad/log_to_message.d.ts',
require: './agents/format_scratchpad/log_to_message.d.cts',
default: './agents/format_scratchpad/log_to_message.d.ts'
},
import: './agents/format_scratchpad/log_to_message.js',
require: './agents/format_scratchpad/log_to_message.cjs'
},
'./agents/react/output_parser': {
types: {
import: './agents/react/output_parser.d.ts',
require: './agents/react/output_parser.d.cts',
default: './agents/react/output_parser.d.ts'
},
import: './agents/react/output_parser.js',
require: './agents/react/output_parser.cjs'
},
'./agents/xml/output_parser': {
types: {
import: './agents/xml/output_parser.d.ts',
require: './agents/xml/output_parser.d.cts',
default: './agents/xml/output_parser.d.ts'
},
import: './agents/xml/output_parser.js',
require: './agents/xml/output_parser.cjs'
},
'./agents/openai/output_parser': {
types: {
import: './agents/openai/output_parser.d.ts',
require: './agents/openai/output_parser.d.cts',
default: './agents/openai/output_parser.d.ts'
},
import: './agents/openai/output_parser.js',
require: './agents/openai/output_parser.cjs'
},
'./base_language': {
types: {
import: './base_language.d.ts',
require: './base_language.d.cts',
default: './base_language.d.ts'
},
import: './base_language.js',
require: './base_language.cjs'
},
'./tools': {
types: {
import: './tools.d.ts',
require: './tools.d.cts',
default: './tools.d.ts'
},
import: './tools.js',
require: './tools.cjs'
},
'./tools/aws_lambda': {
types: {
import: './tools/aws_lambda.d.ts',
require: './tools/aws_lambda.d.cts',
default: './tools/aws_lambda.d.ts'
},
import: './tools/aws_lambda.js',
require: './tools/aws_lambda.cjs'
},
'./tools/aws_sfn': {
types: {
import: './tools/aws_sfn.d.ts',
require: './tools/aws_sfn.d.cts',
default: './tools/aws_sfn.d.ts'
},
import: './tools/aws_sfn.js',
require: './tools/aws_sfn.cjs'
},
'./tools/calculator': {
types: {
import: './tools/calculator.d.ts',
require: './tools/calculator.d.cts',
default: './tools/calculator.d.ts'
},
import: './tools/calculator.js',
require: './tools/calculator.cjs'
},
'./tools/chain': {
types: {
import: './tools/chain.d.ts',
require: './tools/chain.d.cts',
default: './tools/chain.d.ts'
},
import: './tools/chain.js',
require: './tools/chain.cjs'
},
'./tools/connery': {
types: {
import: './tools/connery.d.ts',
require: './tools/connery.d.cts',
default: './tools/connery.d.ts'
},
import: './tools/connery.js',
require: './tools/connery.cjs'
},
'./tools/render': {
types: {
import: './tools/render.d.ts',
require: './tools/render.d.cts',
default: './tools/render.d.ts'
},
import: './tools/render.js',
require: './tools/render.cjs'
},
'./tools/retriever': {
types: {
import: './tools/retriever.d.ts',
require: './tools/retriever.d.cts',
default: './tools/retriever.d.ts'
},
import: './tools/retriever.js',
require: './tools/retriever.cjs'
},
'./tools/sql': {
types: {
import: './tools/sql.d.ts',
require: './tools/sql.d.cts',
default: './tools/sql.d.ts'
},
import: './tools/sql.js',
require: './tools/sql.cjs'
},
'./tools/webbrowser': {
types: {
import: './tools/webbrowser.d.ts',
require: './tools/webbrowser.d.cts',
default: './tools/webbrowser.d.ts'
},
import: './tools/webbrowser.js',
require: './tools/webbrowser.cjs'
},
'./tools/gmail': {
types: {
import: './tools/gmail.d.ts',
require: './tools/gmail.d.cts',
default: './tools/gmail.d.ts'
},
import: './tools/gmail.js',
require: './tools/gmail.cjs'
},
'./tools/google_calendar': {
types: {
import: './tools/google_calendar.d.ts',
require: './tools/google_calendar.d.cts',
default: './tools/google_calendar.d.ts'
},
import: './tools/google_calendar.js',
require: './tools/google_calendar.cjs'
},
'./tools/google_places': {
types: {
import: './tools/google_places.d.ts',
require: './tools/google_places.d.cts',
default: './tools/google_places.d.ts'
},
import: './tools/google_places.js',
require: './tools/google_places.cjs'
},
'./chains': {
types: {
import: './chains.d.ts',
require: './chains.d.cts',
default: './chains.d.ts'
},
import: './chains.js',
require: './chains.cjs'
},
'./chains/combine_documents': {
types: {
import: './chains/combine_documents.d.ts',
require: './chains/combine_documents.d.cts',
default: './chains/combine_documents.d.ts'
},
import: './chains/combine_documents.js',
require: './chains/combine_documents.cjs'
},
'./chains/combine_documents/reduce': {
types: {
import: './chains/combine_documents/reduce.d.ts',
require: './chains/combine_documents/reduce.d.cts',
default: './chains/combine_documents/reduce.d.ts'
},
import: './chains/combine_documents/reduce.js',
require: './chains/combine_documents/reduce.cjs'
},
'./chains/history_aware_retriever': {
types: {
import: './chains/history_aware_retriever.d.ts',
require: './chains/history_aware_retriever.d.cts',
default: './chains/history_aware_retriever.d.ts'
},
import: './chains/history_aware_retriever.js',
require: './chains/history_aware_retriever.cjs'
},
'./chains/load': {
types: {
import: './chains/load.d.ts',
require: './chains/load.d.cts',
default: './chains/load.d.ts'
},
import: './chains/load.js',
require: './chains/load.cjs'
},
'./chains/openai_functions': {
types: {
import: './chains/openai_functions.d.ts',
require: './chains/openai_functions.d.cts',
default: './chains/openai_functions.d.ts'
},
import: './chains/openai_functions.js',
require: './chains/openai_functions.cjs'
},
'./chains/query_constructor': {
types: {
import: './chains/query_constructor.d.ts',
require: './chains/query_constructor.d.cts',
default: './chains/query_constructor.d.ts'
},
import: './chains/query_constructor.js',
require: './chains/query_constructor.cjs'
},
'./chains/query_constructor/ir': {
types: {
import: './chains/query_constructor/ir.d.ts',
require: './chains/query_constructor/ir.d.cts',
default: './chains/query_constructor/ir.d.ts'
},
import: './chains/query_constructor/ir.js',
require: './chains/query_constructor/ir.cjs'
},
'./chains/retrieval': {
types: {
import: './chains/retrieval.d.ts',
require: './chains/retrieval.d.cts',
default: './chains/retrieval.d.ts'
},
import: './chains/retrieval.js',
require: './chains/retrieval.cjs'
},
'./chains/sql_db': {
types: {
import: './chains/sql_db.d.ts',
require: './chains/sql_db.d.cts',
default: './chains/sql_db.d.ts'
},
import: './chains/sql_db.js',
require: './chains/sql_db.cjs'
},
'./chains/graph_qa/cypher': {
types: {
import: './chains/graph_qa/cypher.d.ts',
require: './chains/graph_qa/cypher.d.cts',
default: './chains/graph_qa/cypher.d.ts'
},
import: './chains/graph_qa/cypher.js',
require: './chains/graph_qa/cypher.cjs'
},
'./embeddings/base': {
types: {
import: './embeddings/base.d.ts',
require: './embeddings/base.d.cts',
default: './embeddings/base.d.ts'
},
import: './embeddings/base.js',
require: './embeddings/base.cjs'
},
'./embeddings/bedrock': {
types: {
import: './embeddings/bedrock.d.ts',
require: './embeddings/bedrock.d.cts',
default: './embeddings/bedrock.d.ts'
},
import: './embeddings/bedrock.js',
require: './embeddings/bedrock.cjs'
},
'./embeddings/cache_backed': {
types: {
import: './embeddings/cache_backed.d.ts',
require: './embeddings/cache_backed.d.cts',
default: './embeddings/cache_backed.d.ts'
},
import: './embeddings/cache_backed.js',
require: './embeddings/cache_backed.cjs'
},
'./embeddings/cloudflare_workersai': {
types: {
import: './embeddings/cloudflare_workersai.d.ts',
require: './embeddings/cloudflare_workersai.d.cts',
default: './embeddings/cloudflare_workersai.d.ts'
},
import: './embeddings/cloudflare_workersai.js',
require: './embeddings/cloudflare_workersai.cjs'
},
'./embeddings/fake': {
types: {
import: './embeddings/fake.d.ts',
require: './embeddings/fake.d.cts',
default: './embeddings/fake.d.ts'
},
import: './embeddings/fake.js',
require: './embeddings/fake.cjs'
},
'./embeddings/ollama': {
types: {
import: './embeddings/ollama.d.ts',
require: './embeddings/ollama.d.cts',
default: './embeddings/ollama.d.ts'
},
import: './embeddings/ollama.js',
require: './embeddings/ollama.cjs'
},
'./embeddings/openai': {
types: {
import: './embeddings/openai.d.ts',
require: './embeddings/openai.d.cts',
default: './embeddings/openai.d.ts'
},
import: './embeddings/openai.js',
require: './embeddings/openai.cjs'
},
'./embeddings/cohere': {
types: {
import: './embeddings/cohere.d.ts',
require: './embeddings/cohere.d.cts',
default: './embeddings/cohere.d.ts'
},
import: './embeddings/cohere.js',
require: './embeddings/cohere.cjs'
},
'./embeddings/tensorflow': {
types: {
import: './embeddings/tensorflow.d.ts',
require: './embeddings/tensorflow.d.cts',
default: './embeddings/tensorflow.d.ts'
},
import: './embeddings/tensorflow.js',
require: './embeddings/tensorflow.cjs'
},
'./embeddings/hf': {
types: {
import: './embeddings/hf.d.ts',
require: './embeddings/hf.d.cts',
default: './embeddings/hf.d.ts'
},
import: './embeddings/hf.js',
require: './embeddings/hf.cjs'
},
'./embeddings/hf_transformers': {
types: {
import: './embeddings/hf_transformers.d.ts',
require: './embeddings/hf_transformers.d.cts',
default: './embeddings/hf_transformers.d.ts'
},
import: './embeddings/hf_transformers.js',
require: './embeddings/hf_transformers.cjs'
},
'./embeddings/googlevertexai': {
types: {
import: './embeddings/googlevertexai.d.ts',
require: './embeddings/googlevertexai.d.cts',
default: './embeddings/googlevertexai.d.ts'
},
import: './embeddings/googlevertexai.js',
require: './embeddings/googlevertexai.cjs'
},
'./embeddings/googlepalm': {
types: {
import: './embeddings/googlepalm.d.ts',
require: './embeddings/googlepalm.d.cts',
default: './embeddings/googlepalm.d.ts'
},
import: './embeddings/googlepalm.js',
require: './embeddings/googlepalm.cjs'
},
'./embeddings/minimax': {
types: {
import: './embeddings/minimax.d.ts',
require: './embeddings/minimax.d.cts',
default: './embeddings/minimax.d.ts'
},
import: './embeddings/minimax.js',
require: './embeddings/minimax.cjs'
},
'./embeddings/voyage': {
types: {
import: './embeddings/voyage.d.ts',
require: './embeddings/voyage.d.cts',
default: './embeddings/voyage.d.ts'
},
import: './embeddings/voyage.js',
require: './embeddings/voyage.cjs'
},
'./embeddings/llama_cpp': {
types: {
import: './embeddings/llama_cpp.d.ts',
require: './embeddings/llama_cpp.d.cts',
default: './embeddings/llama_cpp.d.ts'
},
import: './embeddings/llama_cpp.js',
require: './embeddings/llama_cpp.cjs'
},
'./embeddings/gradient_ai': {
types: {
import: './embeddings/gradient_ai.d.ts',
require: './embeddings/gradient_ai.d.cts',
default: './embeddings/gradient_ai.d.ts'
},
import: './embeddings/gradient_ai.js',
require: './embeddings/gradient_ai.cjs'
},
'./llms/load': {
types: {
import: './llms/load.d.ts',
require: './llms/load.d.cts',
default: './llms/load.d.ts'
},
import: './llms/load.js',
require: './llms/load.cjs'
},
'./llms/base': {
types: {
import: './llms/base.d.ts',
require: './llms/base.d.cts',
default: './llms/base.d.ts'
},
import: './llms/base.js',
require: './llms/base.cjs'
},
'./llms/openai': {
types: {
import: './llms/openai.d.ts',
require: './llms/openai.d.cts',
default: './llms/openai.d.ts'
},
import: './llms/openai.js',
require: './llms/openai.cjs'
},
'./llms/ai21': {
types: {
import: './llms/ai21.d.ts',
require: './llms/ai21.d.cts',
default: './llms/ai21.d.ts'
},
import: './llms/ai21.js',
require: './llms/ai21.cjs'
},
'./llms/aleph_alpha': {
types: {
import: './llms/aleph_alpha.d.ts',
require: './llms/aleph_alpha.d.cts',
default: './llms/aleph_alpha.d.ts'
},
import: './llms/aleph_alpha.js',
require: './llms/aleph_alpha.cjs'
},
'./llms/cloudflare_workersai': {
types: {
import: './llms/cloudflare_workersai.d.ts',
require: './llms/cloudflare_workersai.d.cts',
default: './llms/cloudflare_workersai.d.ts'
},
import: './llms/cloudflare_workersai.js',
require: './llms/cloudflare_workersai.cjs'
},
'./llms/cohere': {
types: {
import: './llms/cohere.d.ts',
require: './llms/cohere.d.cts',
default: './llms/cohere.d.ts'
},
import: './llms/cohere.js',
require: './llms/cohere.cjs'
},
'./llms/hf': {
types: {
import: './llms/hf.d.ts',
require: './llms/hf.d.cts',
default: './llms/hf.d.ts'
},
import: './llms/hf.js',
require: './llms/hf.cjs'
},
'./llms/raycast': {
types: {
import: './llms/raycast.d.ts',
require: './llms/raycast.d.cts',
default: './llms/raycast.d.ts'
},
import: './llms/raycast.js',
require: './llms/raycast.cjs'
},
'./llms/ollama': {
types: {
import: './llms/ollama.d.ts',
require: './llms/ollama.d.cts',
default: './llms/ollama.d.ts'
},
import: './llms/ollama.js',
require: './llms/ollama.cjs'
},
'./llms/replicate': {
types: {
import: './llms/replicate.d.ts',
require: './llms/replicate.d.cts',
default: './llms/replicate.d.ts'
},
import: './llms/replicate.js',
require: './llms/replicate.cjs'
},
'./llms/fireworks': {
types: {
import: './llms/fireworks.d.ts',
require: './llms/fireworks.d.cts',
default: './llms/fireworks.d.ts'
},
import: './llms/fireworks.js',
require: './llms/fireworks.cjs'
},
'./llms/googlevertexai': {
types: {
import: './llms/googlevertexai.d.ts',
require: './llms/googlevertexai.d.cts',
default: './llms/googlevertexai.d.ts'
},
import: './llms/googlevertexai.js',
require: './llms/googlevertexai.cjs'
},
'./llms/googlevertexai/web': {
types: {
import: './llms/googlevertexai/web.d.ts',
require: './llms/googlevertexai/web.d.cts',
default: './llms/googlevertexai/web.d.ts'
},
import: './llms/googlevertexai/web.js',
require: './llms/googlevertexai/web.cjs'
},
'./llms/googlepalm': {
types: {
import: './llms/googlepalm.d.ts',
require: './llms/googlepalm.d.cts',
default: './llms/googlepalm.d.ts'
},
import: './llms/googlepalm.js',
require: './llms/googlepalm.cjs'
},
'./llms/gradient_ai': {
types: {
import: './llms/gradient_ai.d.ts',
require: './llms/gradient_ai.d.cts',
default: './llms/gradient_ai.d.ts'
},
import: './llms/gradient_ai.js',
require: './llms/gradient_ai.cjs'
},
'./llms/sagemaker_endpoint': {
types: {
import: './llms/sagemaker_endpoint.d.ts',
require: './llms/sagemaker_endpoint.d.cts',
default: './llms/sagemaker_endpoint.d.ts'
},
import: './llms/sagemaker_endpoint.js',
require: './llms/sagemaker_endpoint.cjs'
},
'./llms/watsonx_ai': {
types: {
import: './llms/watsonx_ai.d.ts',
require: './llms/watsonx_ai.d.cts',
default: './llms/watsonx_ai.d.ts'
},
import: './llms/watsonx_ai.js',
require: './llms/watsonx_ai.cjs'
},
'./llms/bedrock': {
types: {
import: './llms/bedrock.d.ts',
require: './llms/bedrock.d.cts',
default: './llms/bedrock.d.ts'
},
import: './llms/bedrock.js',
require: './llms/bedrock.cjs'
},
'./llms/bedrock/web': {
types: {
import: './llms/bedrock/web.d.ts',
require: './llms/bedrock/web.d.cts',
default: './llms/bedrock/web.d.ts'
},
import: './llms/bedrock/web.js',
require: './llms/bedrock/web.cjs'
},
'./llms/llama_cpp': {
types: {
import: './llms/llama_cpp.d.ts',
require: './llms/llama_cpp.d.cts',
default: './llms/llama_cpp.d.ts'
},
import: './llms/llama_cpp.js',
require: './llms/llama_cpp.cjs'
},
'./llms/writer': {
types: {
import: './llms/writer.d.ts',
require: './llms/writer.d.cts',
default: './llms/writer.d.ts'
},
import: './llms/writer.js',
require: './llms/writer.cjs'
},
'./llms/portkey': {
types: {
import: './llms/portkey.d.ts',
require: './llms/portkey.d.cts',
default: './llms/portkey.d.ts'
},
import: './llms/portkey.js',
require: './llms/portkey.cjs'
},
'./llms/yandex': {
types: {
import: './llms/yandex.d.ts',
require: './llms/yandex.d.cts',
default: './llms/yandex.d.ts'
},
import: './llms/yandex.js',
require: './llms/yandex.cjs'
},
'./llms/fake': {
types: {
import: './llms/fake.d.ts',
require: './llms/fake.d.cts',
default: './llms/fake.d.ts'
},
import: './llms/fake.js',
require: './llms/fake.cjs'
},
'./prompts': {
types: {
import: './prompts.d.ts',
require: './prompts.d.cts',
default: './prompts.d.ts'
},
import: './prompts.js',
require: './prompts.cjs'
},
'./prompts/load': {
types: {
import: './prompts/load.d.ts',
require: './prompts/load.d.cts',
default: './prompts/load.d.ts'
},
import: './prompts/load.js',
require: './prompts/load.cjs'
},
'./vectorstores/clickhouse': {
types: {
import: './vectorstores/clickhouse.d.ts',
require: './vectorstores/clickhouse.d.cts',
default: './vectorstores/clickhouse.d.ts'
},
import: './vectorstores/clickhouse.js',
require: './vectorstores/clickhouse.cjs'
},
'./vectorstores/analyticdb': {
types: {
import: './vectorstores/analyticdb.d.ts',
require: './vectorstores/analyticdb.d.cts',
default: './vectorstores/analyticdb.d.ts'
},
import: './vectorstores/analyticdb.js',
require: './vectorstores/analyticdb.cjs'
},
'./vectorstores/base': {
types: {
import: './vectorstores/base.d.ts',
require: './vectorstores/base.d.cts',
default: './vectorstores/base.d.ts'
},
import: './vectorstores/base.js',
require: './vectorstores/base.cjs'
},
'./vectorstores/cassandra': {
types: {
import: './vectorstores/cassandra.d.ts',
require: './vectorstores/cassandra.d.cts',
default: './vectorstores/cassandra.d.ts'
},
import: './vectorstores/cassandra.js',
require: './vectorstores/cassandra.cjs'
},
'./vectorstores/convex': {
types: {
import: './vectorstores/convex.d.ts',
require: './vectorstores/convex.d.cts',
default: './vectorstores/convex.d.ts'
},
import: './vectorstores/convex.js',
require: './vectorstores/convex.cjs'
},
'./vectorstores/elasticsearch': {
types: {
import: './vectorstores/elasticsearch.d.ts',
require: './vectorstores/elasticsearch.d.cts',
default: './vectorstores/elasticsearch.d.ts'
},
import: './vectorstores/elasticsearch.js',
require: './vectorstores/elasticsearch.cjs'
},
'./vectorstores/memory': {
types: {
import: './vectorstores/memory.d.ts',
require: './vectorstores/memory.d.cts',
default: './vectorstores/memory.d.ts'
},
import: './vectorstores/memory.js',
require: './vectorstores/memory.cjs'
},
'./vectorstores/cloudflare_vectorize': {
types: {
import: './vectorstores/cloudflare_vectorize.d.ts',
require: './vectorstores/cloudflare_vectorize.d.cts',
default: './vectorstores/cloudflare_vectorize.d.ts'
},
import: './vectorstores/cloudflare_vectorize.js',
require: './vectorstores/cloudflare_vectorize.cjs'
},
'./vectorstores/closevector/web': {
types: {
import: './vectorstores/closevector/web.d.ts',
require: './vectorstores/closevector/web.d.cts',
default: './vectorstores/closevector/web.d.ts'
},
import: './vectorstores/closevector/web.js',
require: './vectorstores/closevector/web.cjs'
},
'./vectorstores/closevector/node': {
types: {
import: './vectorstores/closevector/node.d.ts',
require: './vectorstores/closevector/node.d.cts',
default: './vectorstores/closevector/node.d.ts'
},
import: './vectorstores/closevector/node.js',
require: './vectorstores/closevector/node.cjs'
},
'./vectorstores/chroma': {
types: {
import: './vectorstores/chroma.d.ts',
require: './vectorstores/chroma.d.cts',
default: './vectorstores/chroma.d.ts'
},
import: './vectorstores/chroma.js',
require: './vectorstores/chroma.cjs'
},
'./vectorstores/googlevertexai': {
types: {
import: './vectorstores/googlevertexai.d.ts',
require: './vectorstores/googlevertexai.d.cts',
default: './vectorstores/googlevertexai.d.ts'
},
import: './vectorstores/googlevertexai.js',
require: './vectorstores/googlevertexai.cjs'
},
'./vectorstores/hnswlib': {
types: {
import: './vectorstores/hnswlib.d.ts',
require: './vectorstores/hnswlib.d.cts',
default: './vectorstores/hnswlib.d.ts'
},
import: './vectorstores/hnswlib.js',
require: './vectorstores/hnswlib.cjs'
},
'./vectorstores/faiss': {
types: {
import: './vectorstores/faiss.d.ts',
require: './vectorstores/faiss.d.cts',
default: './vectorstores/faiss.d.ts'
},
import: './vectorstores/faiss.js',
require: './vectorstores/faiss.cjs'
},
'./vectorstores/weaviate': {
types: {
import: './vectorstores/weaviate.d.ts',
require: './vectorstores/weaviate.d.cts',
default: './vectorstores/weaviate.d.ts'
},
import: './vectorstores/weaviate.js',
require: './vectorstores/weaviate.cjs'
},
'./vectorstores/lancedb': {
types: {
import: './vectorstores/lancedb.d.ts',
require: './vectorstores/lancedb.d.cts',
default: './vectorstores/lancedb.d.ts'
},
import: './vectorstores/lancedb.js',
require: './vectorstores/lancedb.cjs'
},
'./vectorstores/momento_vector_index': {
types: {
import: './vectorstores/momento_vector_index.d.ts',
require: './vectorstores/momento_vector_index.d.cts',
default: './vectorstores/momento_vector_index.d.ts'
},
import: './vectorstores/momento_vector_index.js',
require: './vectorstores/momento_vector_index.cjs'
},
'./vectorstores/mongo': {
types: {
import: './vectorstores/mongo.d.ts',
require: './vectorstores/mongo.d.cts',
default: './vectorstores/mongo.d.ts'
},
import: './vectorstores/mongo.js',
require: './vectorstores/mongo.cjs'
},
'./vectorstores/mongodb_atlas': {
types: {
import: './vectorstores/mongodb_atlas.d.ts',
require: './vectorstores/mongodb_atlas.d.cts',
default: './vectorstores/mongodb_atlas.d.ts'
},
import: './vectorstores/mongodb_atlas.js',
require: './vectorstores/mongodb_atlas.cjs'
},
'./vectorstores/pinecone': {
types: {
import: './vectorstores/pinecone.d.ts',
require: './vectorstores/pinecone.d.cts',
default: './vectorstores/pinecone.d.ts'
},
import: './vectorstores/pinecone.js',
require: './vectorstores/pinecone.cjs'
},
'./vectorstores/qdrant': {
types: {
import: './vectorstores/qdrant.d.ts',
require: './vectorstores/qdrant.d.cts',
default: './vectorstores/qdrant.d.ts'
},
import: './vectorstores/qdrant.js',
require: './vectorstores/qdrant.cjs'
},
'./vectorstores/supabase': {
types: {
import: './vectorstores/supabase.d.ts',
require: './vectorstores/supabase.d.cts',
default: './vectorstores/supabase.d.ts'
},
import: './vectorstores/supabase.js',
require: './vectorstores/supabase.cjs'
},
'./vectorstores/opensearch': {
types: {
import: './vectorstores/opensearch.d.ts',
require: './vectorstores/opensearch.d.cts',
default: './vectorstores/opensearch.d.ts'
},
import: './vectorstores/opensearch.js',
require: './vectorstores/opensearch.cjs'
},
'./vectorstores/pgvector': {
types: {
import: './vectorstores/pgvector.d.ts',
require: './vectorstores/pgvector.d.cts',
default: './vectorstores/pgvector.d.ts'
},
import: './vectorstores/pgvector.js',
require: './vectorstores/pgvector.cjs'
},
'./vectorstores/milvus': {
types: {
import: './vectorstores/milvus.d.ts',
require: './vectorstores/milvus.d.cts',
default: './vectorstores/milvus.d.ts'
},
import: './vectorstores/milvus.js',
require: './vectorstores/milvus.cjs'
},
'./vectorstores/neo4j_vector': {
types: {
import: './vectorstores/neo4j_vector.d.ts',
require: './vectorstores/neo4j_vector.d.cts',
default: './vectorstores/neo4j_vector.d.ts'
},
import: './vectorstores/neo4j_vector.js',
require: './vectorstores/neo4j_vector.cjs'
},
'./vectorstores/prisma': {
types: {
import: './vectorstores/prisma.d.ts',
require: './vectorstores/prisma.d.cts',
default: './vectorstores/prisma.d.ts'
},
import: './vectorstores/prisma.js',
require: './vectorstores/prisma.cjs'
},
'./vectorstores/typeorm': {
types: {
import: './vectorstores/typeorm.d.ts',
require: './vectorstores/typeorm.d.cts',
default: './vectorstores/typeorm.d.ts'
},
import: './vectorstores/typeorm.js',
require: './vectorstores/typeorm.cjs'
},
'./vectorstores/myscale': {
types: {
import: './vectorstores/myscale.d.ts',
require: './vectorstores/myscale.d.cts',
default: './vectorstores/myscale.d.ts'
},
import: './vectorstores/myscale.js',
require: './vectorstores/myscale.cjs'
},
'./vectorstores/redis': {
types: {
import: './vectorstores/redis.d.ts',
require: './vectorstores/redis.d.cts',
default: './vectorstores/redis.d.ts'
},
import: './vectorstores/redis.js',
require: './vectorstores/redis.cjs'
},
'./vectorstores/rockset': {
types: {
import: './vectorstores/rockset.d.ts',
require: './vectorstores/rockset.d.cts',
default: './vectorstores/rockset.d.ts'
},
import: './vectorstores/rockset.js',
require: './vectorstores/rockset.cjs'
},
'./vectorstores/typesense': {
types: {
import: './vectorstores/typesense.d.ts',
require: './vectorstores/typesense.d.cts',
default: './vectorstores/typesense.d.ts'
},
import: './vectorstores/typesense.js',
require: './vectorstores/typesense.cjs'
},
'./vectorstores/singlestore': {
types: {
import: './vectorstores/singlestore.d.ts',
require: './vectorstores/singlestore.d.cts',
default: './vectorstores/singlestore.d.ts'
},
import: './vectorstores/singlestore.js',
require: './vectorstores/singlestore.cjs'
},
'./vectorstores/tigris': {
types: {
import: './vectorstores/tigris.d.ts',
require: './vectorstores/tigris.d.cts',
default: './vectorstores/tigris.d.ts'
},
import: './vectorstores/tigris.js',
require: './vectorstores/tigris.cjs'
},
'./vectorstores/usearch': {
types: {
import: './vectorstores/usearch.d.ts',
require: './vectorstores/usearch.d.cts',
default: './vectorstores/usearch.d.ts'
},
import: './vectorstores/usearch.js',
require: './vectorstores/usearch.cjs'
},
'./vectorstores/vectara': {
types: {
import: './vectorstores/vectara.d.ts',
require: './vectorstores/vectara.d.cts',
default: './vectorstores/vectara.d.ts'
},
import: './vectorstores/vectara.js',
require: './vectorstores/vectara.cjs'
},
'./vectorstores/vercel_postgres': {
types: {
import: './vectorstores/vercel_postgres.d.ts',
require: './vectorstores/vercel_postgres.d.cts',
default: './vectorstores/vercel_postgres.d.ts'
},
import: './vectorstores/vercel_postgres.js',
require: './vectorstores/vercel_postgres.cjs'
},
'./vectorstores/voy': {
types: {
import: './vectorstores/voy.d.ts',
require: './vectorstores/voy.d.cts',
default: './vectorstores/voy.d.ts'
},
import: './vectorstores/voy.js',
require: './vectorstores/voy.cjs'
},
'./vectorstores/xata': {
types: {
import: './vectorstores/xata.d.ts',
require: './vectorstores/xata.d.cts',
default: './vectorstores/xata.d.ts'
},
import: './vectorstores/xata.js',
require: './vectorstores/xata.cjs'
},
'./vectorstores/zep': {
types: {
import: './vectorstores/zep.d.ts',
require: './vectorstores/zep.d.cts',
default: './vectorstores/zep.d.ts'
},
import: './vectorstores/zep.js',
require: './vectorstores/zep.cjs'
},
'./text_splitter': {
types: {
import: './text_splitter.d.ts',
require: './text_splitter.d.cts',
default: './text_splitter.d.ts'
},
import: './text_splitter.js',
require: './text_splitter.cjs'
},
'./memory': {
types: {
import: './memory.d.ts',
require: './memory.d.cts',
default: './memory.d.ts'
},
import: './memory.js',
require: './memory.cjs'
},
'./memory/zep': {
types: {
import: './memory/zep.d.ts',
require: './memory/zep.d.cts',
default: './memory/zep.d.ts'
},
import: './memory/zep.js',
require: './memory/zep.cjs'
},
'./document': {
types: {
import: './document.d.ts',
require: './document.d.cts',
default: './document.d.ts'
},
import: './document.js',
require: './document.cjs'
},
'./document_loaders/base': {
types: {
import: './document_loaders/base.d.ts',
require: './document_loaders/base.d.cts',
default: './document_loaders/base.d.ts'
},
import: './document_loaders/base.js',
require: './document_loaders/base.cjs'
},
'./document_loaders/web/apify_dataset': {
types: {
import: './document_loaders/web/apify_dataset.d.ts',
require: './document_loaders/web/apify_dataset.d.cts',
default: './document_loaders/web/apify_dataset.d.ts'
},
import: './document_loaders/web/apify_dataset.js',
require: './document_loaders/web/apify_dataset.cjs'
},
'./document_loaders/web/assemblyai': {
types: {
import: './document_loaders/web/assemblyai.d.ts',
require: './document_loaders/web/assemblyai.d.cts',
default: './document_loaders/web/assemblyai.d.ts'
},
import: './document_loaders/web/assemblyai.js',
require: './document_loaders/web/assemblyai.cjs'
},
'./document_loaders/web/azure_blob_storage_container': {
types: {
import: './document_loaders/web/azure_blob_storage_container.d.ts',
require: './document_loaders/web/azure_blob_storage_container.d.cts',
default: './document_loaders/web/azure_blob_storage_container.d.ts'
},
import: './document_loaders/web/azure_blob_storage_container.js',
require: './document_loaders/web/azure_blob_storage_container.cjs'
},
'./document_loaders/web/azure_blob_storage_file': {
types: {
import: './document_loaders/web/azure_blob_storage_file.d.ts',
require: './document_loaders/web/azure_blob_storage_file.d.cts',
default: './document_loaders/web/azure_blob_storage_file.d.ts'
},
import: './document_loaders/web/azure_blob_storage_file.js',
require: './document_loaders/web/azure_blob_storage_file.cjs'
},
'./document_loaders/web/cheerio': {
types: {
import: './document_loaders/web/cheerio.d.ts',
require: './document_loaders/web/cheerio.d.cts',
default: './document_loaders/web/cheerio.d.ts'
},
import: './document_loaders/web/cheerio.js',
require: './document_loaders/web/cheerio.cjs'
},
'./document_loaders/web/puppeteer': {
types: {
import: './document_loaders/web/puppeteer.d.ts',
require: './document_loaders/web/puppeteer.d.cts',
default: './document_loaders/web/puppeteer.d.ts'
},
import: './document_loaders/web/puppeteer.js',
require: './document_loaders/web/puppeteer.cjs'
},
'./document_loaders/web/playwright': {
types: {
import: './document_loaders/web/playwright.d.ts',
require: './document_loaders/web/playwright.d.cts',
default: './document_loaders/web/playwright.d.ts'
},
import: './document_loaders/web/playwright.js',
require: './document_loaders/web/playwright.cjs'
},
'./document_loaders/web/college_confidential': {
types: {
import: './document_loaders/web/college_confidential.d.ts',
require: './document_loaders/web/college_confidential.d.cts',
default: './document_loaders/web/college_confidential.d.ts'
},
import: './document_loaders/web/college_confidential.js',
require: './document_loaders/web/college_confidential.cjs'
},
'./document_loaders/web/gitbook': {
types: {
import: './document_loaders/web/gitbook.d.ts',
require: './document_loaders/web/gitbook.d.cts',
default: './document_loaders/web/gitbook.d.ts'
},
import: './document_loaders/web/gitbook.js',
require: './document_loaders/web/gitbook.cjs'
},
'./document_loaders/web/hn': {
types: {
import: './document_loaders/web/hn.d.ts',
require: './document_loaders/web/hn.d.cts',
default: './document_loaders/web/hn.d.ts'
},
import: './document_loaders/web/hn.js',
require: './document_loaders/web/hn.cjs'
},
'./document_loaders/web/imsdb': {
types: {
import: './document_loaders/web/imsdb.d.ts',
require: './document_loaders/web/imsdb.d.cts',
default: './document_loaders/web/imsdb.d.ts'
},
import: './document_loaders/web/imsdb.js',
require: './document_loaders/web/imsdb.cjs'
},
'./document_loaders/web/figma': {
types: {
import: './document_loaders/web/figma.d.ts',
require: './document_loaders/web/figma.d.cts',
default: './document_loaders/web/figma.d.ts'
},
import: './document_loaders/web/figma.js',
require: './document_loaders/web/figma.cjs'
},
'./document_loaders/web/github': {
types: {
import: './document_loaders/web/github.d.ts',
require: './document_loaders/web/github.d.cts',
default: './document_loaders/web/github.d.ts'
},
import: './document_loaders/web/github.js',
require: './document_loaders/web/github.cjs'
},
'./document_loaders/web/notiondb': {
types: {
import: './document_loaders/web/notiondb.d.ts',
require: './document_loaders/web/notiondb.d.cts',
default: './document_loaders/web/notiondb.d.ts'
},
import: './document_loaders/web/notiondb.js',
require: './document_loaders/web/notiondb.cjs'
},
'./document_loaders/web/notionapi': {
types: {
import: './document_loaders/web/notionapi.d.ts',
require: './document_loaders/web/notionapi.d.cts',
default: './document_loaders/web/notionapi.d.ts'
},
import: './document_loaders/web/notionapi.js',
require: './document_loaders/web/notionapi.cjs'
},
'./document_loaders/web/pdf': {
types: {
import: './document_loaders/web/pdf.d.ts',
require: './document_loaders/web/pdf.d.cts',
default: './document_loaders/web/pdf.d.ts'
},
import: './document_loaders/web/pdf.js',
require: './document_loaders/web/pdf.cjs'
},
'./document_loaders/web/recursive_url': {
types: {
import: './document_loaders/web/recursive_url.d.ts',
require: './document_loaders/web/recursive_url.d.cts',
default: './document_loaders/web/recursive_url.d.ts'
},
import: './document_loaders/web/recursive_url.js',
require: './document_loaders/web/recursive_url.cjs'
},
'./document_loaders/web/s3': {
types: {
import: './document_loaders/web/s3.d.ts',
require: './document_loaders/web/s3.d.cts',
default: './document_loaders/web/s3.d.ts'
},
import: './document_loaders/web/s3.js',
require: './document_loaders/web/s3.cjs'
},
'./document_loaders/web/sitemap': {
types: {
import: './document_loaders/web/sitemap.d.ts',
require: './document_loaders/web/sitemap.d.cts',
default: './document_loaders/web/sitemap.d.ts'
},
import: './document_loaders/web/sitemap.js',
require: './document_loaders/web/sitemap.cjs'
},
'./document_loaders/web/sonix_audio': {
types: {
import: './document_loaders/web/sonix_audio.d.ts',
require: './document_loaders/web/sonix_audio.d.cts',
default: './document_loaders/web/sonix_audio.d.ts'
},
import: './document_loaders/web/sonix_audio.js',
require: './document_loaders/web/sonix_audio.cjs'
},
'./document_loaders/web/confluence': {
types: {
import: './document_loaders/web/confluence.d.ts',
require: './document_loaders/web/confluence.d.cts',
default: './document_loaders/web/confluence.d.ts'
},
import: './document_loaders/web/confluence.js',
require: './document_loaders/web/confluence.cjs'
},
'./document_loaders/web/couchbase': {
types: {
import: './document_loaders/web/couchbase.d.ts',
require: './document_loaders/web/couchbase.d.cts',
default: './document_loaders/web/couchbase.d.ts'
},
import: './document_loaders/web/couchbase.js',
require: './document_loaders/web/couchbase.cjs'
},
'./document_loaders/web/searchapi': {
types: {
import: './document_loaders/web/searchapi.d.ts',
require: './document_loaders/web/searchapi.d.cts',
default: './document_loaders/web/searchapi.d.ts'
},
import: './document_loaders/web/searchapi.js',
require: './document_loaders/web/searchapi.cjs'
},
'./document_loaders/web/serpapi': {
types: {
import: './document_loaders/web/serpapi.d.ts',
require: './document_loaders/web/serpapi.d.cts',
default: './document_loaders/web/serpapi.d.ts'
},
import: './document_loaders/web/serpapi.js',
require: './document_loaders/web/serpapi.cjs'
},
'./document_loaders/web/sort_xyz_blockchain': {
types: {
import: './document_loaders/web/sort_xyz_blockchain.d.ts',
require: './document_loaders/web/sort_xyz_blockchain.d.cts',
default: './document_loaders/web/sort_xyz_blockchain.d.ts'
},
import: './document_loaders/web/sort_xyz_blockchain.js',
require: './document_loaders/web/sort_xyz_blockchain.cjs'
},
'./document_loaders/web/youtube': {
types: {
import: './document_loaders/web/youtube.d.ts',
require: './document_loaders/web/youtube.d.cts',
default: './document_loaders/web/youtube.d.ts'
},
import: './document_loaders/web/youtube.js',
require: './document_loaders/web/youtube.cjs'
},
'./document_loaders/fs/directory': {
types: {
import: './document_loaders/fs/directory.d.ts',
require: './document_loaders/fs/directory.d.cts',
default: './document_loaders/fs/directory.d.ts'
},
import: './document_loaders/fs/directory.js',
require: './document_loaders/fs/directory.cjs'
},
'./document_loaders/fs/buffer': {
types: {
import: './document_loaders/fs/buffer.d.ts',
require: './document_loaders/fs/buffer.d.cts',
default: './document_loaders/fs/buffer.d.ts'
},
import: './document_loaders/fs/buffer.js',
require: './document_loaders/fs/buffer.cjs'
},
'./document_loaders/fs/chatgpt': {
types: {
import: './document_loaders/fs/chatgpt.d.ts',
require: './document_loaders/fs/chatgpt.d.cts',
default: './document_loaders/fs/chatgpt.d.ts'
},
import: './document_loaders/fs/chatgpt.js',
require: './document_loaders/fs/chatgpt.cjs'
},
'./document_loaders/fs/text': {
types: {
import: './document_loaders/fs/text.d.ts',
require: './document_loaders/fs/text.d.cts',
default: './document_loaders/fs/text.d.ts'
},
import: './document_loaders/fs/text.js',
require: './document_loaders/fs/text.cjs'
},
'./document_loaders/fs/json': {
types: {
import: './document_loaders/fs/json.d.ts',
require: './document_loaders/fs/json.d.cts',
default: './document_loaders/fs/json.d.ts'
},
import: './document_loaders/fs/json.js',
require: './document_loaders/fs/json.cjs'
},
'./document_loaders/fs/srt': {
types: {
import: './document_loaders/fs/srt.d.ts',
require: './document_loaders/fs/srt.d.cts',
default: './document_loaders/fs/srt.d.ts'
},
import: './document_loaders/fs/srt.js',
require: './document_loaders/fs/srt.cjs'
},
'./document_loaders/fs/pdf': {
types: {
import: './document_loaders/fs/pdf.d.ts',
require: './document_loaders/fs/pdf.d.cts',
default: './document_loaders/fs/pdf.d.ts'
},
import: './document_loaders/fs/pdf.js',
require: './document_loaders/fs/pdf.cjs'
},
'./document_loaders/fs/docx': {
types: {
import: './document_loaders/fs/docx.d.ts',
require: './document_loaders/fs/docx.d.cts',
default: './document_loaders/fs/docx.d.ts'
},
import: './document_loaders/fs/docx.js',
require: './document_loaders/fs/docx.cjs'
},
'./document_loaders/fs/epub': {
types: {
import: './document_loaders/fs/epub.d.ts',
require: './document_loaders/fs/epub.d.cts',
default: './document_loaders/fs/epub.d.ts'
},
import: './document_loaders/fs/epub.js',
require: './document_loaders/fs/epub.cjs'
},
'./document_loaders/fs/csv': {
types: {
import: './document_loaders/fs/csv.d.ts',
require: './document_loaders/fs/csv.d.cts',
default: './document_loaders/fs/csv.d.ts'
},
import: './document_loaders/fs/csv.js',
require: './document_loaders/fs/csv.cjs'
},
'./document_loaders/fs/notion': {
types: {
import: './document_loaders/fs/notion.d.ts',
require: './document_loaders/fs/notion.d.cts',
default: './document_loaders/fs/notion.d.ts'
},
import: './document_loaders/fs/notion.js',
require: './document_loaders/fs/notion.cjs'
},
'./document_loaders/fs/obsidian': {
types: {
import: './document_loaders/fs/obsidian.d.ts',
require: './document_loaders/fs/obsidian.d.cts',
default: './document_loaders/fs/obsidian.d.ts'
},
import: './document_loaders/fs/obsidian.js',
require: './document_loaders/fs/obsidian.cjs'
},
'./document_loaders/fs/unstructured': {
types: {
import: './document_loaders/fs/unstructured.d.ts',
require: './document_loaders/fs/unstructured.d.cts',
default: './document_loaders/fs/unstructured.d.ts'
},
import: './document_loaders/fs/unstructured.js',
require: './document_loaders/fs/unstructured.cjs'
},
'./document_loaders/fs/openai_whisper_audio': {
types: {
import: './document_loaders/fs/openai_whisper_audio.d.ts',
require: './document_loaders/fs/openai_whisper_audio.d.cts',
default: './document_loaders/fs/openai_whisper_audio.d.ts'
},
import: './document_loaders/fs/openai_whisper_audio.js',
require: './document_loaders/fs/openai_whisper_audio.cjs'
},
'./document_loaders/fs/pptx': {
types: {
import: './document_loaders/fs/pptx.d.ts',
require: './document_loaders/fs/pptx.d.cts',
default: './document_loaders/fs/pptx.d.ts'
},
import: './document_loaders/fs/pptx.js',
require: './document_loaders/fs/pptx.cjs'
},
'./document_transformers/html_to_text': {
types: {
import: './document_transformers/html_to_text.d.ts',
require: './document_transformers/html_to_text.d.cts',
default: './document_transformers/html_to_text.d.ts'
},
import: './document_transformers/html_to_text.js',
require: './document_transformers/html_to_text.cjs'
},
'./document_transformers/mozilla_readability': {
types: {
import: './document_transformers/mozilla_readability.d.ts',
require: './document_transformers/mozilla_readability.d.cts',
default: './document_transformers/mozilla_readability.d.ts'
},
import: './document_transformers/mozilla_readability.js',
require: './document_transformers/mozilla_readability.cjs'
},
'./document_transformers/openai_functions': {
types: {
import: './document_transformers/openai_functions.d.ts',
require: './document_transformers/openai_functions.d.cts',
default: './document_transformers/openai_functions.d.ts'
},
import: './document_transformers/openai_functions.js',
require: './document_transformers/openai_functions.cjs'
},
'./chat_models/base': {
types: {
import: './chat_models/base.d.ts',
require: './chat_models/base.d.cts',
default: './chat_models/base.d.ts'
},
import: './chat_models/base.js',
require: './chat_models/base.cjs'
},
'./chat_models/openai': {
types: {
import: './chat_models/openai.d.ts',
require: './chat_models/openai.d.cts',
default: './chat_models/openai.d.ts'
},
import: './chat_models/openai.js',
require: './chat_models/openai.cjs'
},
'./chat_models/portkey': {
types: {
import: './chat_models/portkey.d.ts',
require: './chat_models/portkey.d.cts',
default: './chat_models/portkey.d.ts'
},
import: './chat_models/portkey.js',
require: './chat_models/portkey.cjs'
},
'./chat_models/anthropic': {
types: {
import: './chat_models/anthropic.d.ts',
require: './chat_models/anthropic.d.cts',
default: './chat_models/anthropic.d.ts'
},
import: './chat_models/anthropic.js',
require: './chat_models/anthropic.cjs'
},
'./chat_models/bedrock': {
types: {
import: './chat_models/bedrock.d.ts',
require: './chat_models/bedrock.d.cts',
default: './chat_models/bedrock.d.ts'
},
import: './chat_models/bedrock.js',
require: './chat_models/bedrock.cjs'
},
'./chat_models/bedrock/web': {
types: {
import: './chat_models/bedrock/web.d.ts',
require: './chat_models/bedrock/web.d.cts',
default: './chat_models/bedrock/web.d.ts'
},
import: './chat_models/bedrock/web.js',
require: './chat_models/bedrock/web.cjs'
},
'./chat_models/cloudflare_workersai': {
types: {
import: './chat_models/cloudflare_workersai.d.ts',
require: './chat_models/cloudflare_workersai.d.cts',
default: './chat_models/cloudflare_workersai.d.ts'
},
import: './chat_models/cloudflare_workersai.js',
require: './chat_models/cloudflare_workersai.cjs'
},
'./chat_models/googlevertexai': {
types: {
import: './chat_models/googlevertexai.d.ts',
require: './chat_models/googlevertexai.d.cts',
default: './chat_models/googlevertexai.d.ts'
},
import: './chat_models/googlevertexai.js',
require: './chat_models/googlevertexai.cjs'
},
'./chat_models/googlevertexai/web': {
types: {
import: './chat_models/googlevertexai/web.d.ts',
require: './chat_models/googlevertexai/web.d.cts',
default: './chat_models/googlevertexai/web.d.ts'
},
import: './chat_models/googlevertexai/web.js',
require: './chat_models/googlevertexai/web.cjs'
},
'./chat_models/googlepalm': {
types: {
import: './chat_models/googlepalm.d.ts',
require: './chat_models/googlepalm.d.cts',
default: './chat_models/googlepalm.d.ts'
},
import: './chat_models/googlepalm.js',
require: './chat_models/googlepalm.cjs'
},
'./chat_models/fireworks': {
types: {
import: './chat_models/fireworks.d.ts',
require: './chat_models/fireworks.d.cts',
default: './chat_models/fireworks.d.ts'
},
import: './chat_models/fireworks.js',
require: './chat_models/fireworks.cjs'
},
'./chat_models/baiduwenxin': {
types: {
import: './chat_models/baiduwenxin.d.ts',
require: './chat_models/baiduwenxin.d.cts',
default: './chat_models/baiduwenxin.d.ts'
},
import: './chat_models/baiduwenxin.js',
require: './chat_models/baiduwenxin.cjs'
},
'./chat_models/iflytek_xinghuo': {
types: {
import: './chat_models/iflytek_xinghuo.d.ts',
require: './chat_models/iflytek_xinghuo.d.cts',
default: './chat_models/iflytek_xinghuo.d.ts'
},
import: './chat_models/iflytek_xinghuo.js',
require: './chat_models/iflytek_xinghuo.cjs'
},
'./chat_models/iflytek_xinghuo/web': {
types: {
import: './chat_models/iflytek_xinghuo/web.d.ts',
require: './chat_models/iflytek_xinghuo/web.d.cts',
default: './chat_models/iflytek_xinghuo/web.d.ts'
},
import: './chat_models/iflytek_xinghuo/web.js',
require: './chat_models/iflytek_xinghuo/web.cjs'
},
'./chat_models/ollama': {
types: {
import: './chat_models/ollama.d.ts',
require: './chat_models/ollama.d.cts',
default: './chat_models/ollama.d.ts'
},
import: './chat_models/ollama.js',
require: './chat_models/ollama.cjs'
},
'./chat_models/minimax': {
types: {
import: './chat_models/minimax.d.ts',
require: './chat_models/minimax.d.cts',
default: './chat_models/minimax.d.ts'
},
import: './chat_models/minimax.js',
require: './chat_models/minimax.cjs'
},
'./chat_models/llama_cpp': {
types: {
import: './chat_models/llama_cpp.d.ts',
require: './chat_models/llama_cpp.d.cts',
default: './chat_models/llama_cpp.d.ts'
},
import: './chat_models/llama_cpp.js',
require: './chat_models/llama_cpp.cjs'
},
'./chat_models/yandex': {
types: {
import: './chat_models/yandex.d.ts',
require: './chat_models/yandex.d.cts',
default: './chat_models/yandex.d.ts'
},
import: './chat_models/yandex.js',
require: './chat_models/yandex.cjs'
},
'./chat_models/fake': {
types: {
import: './chat_models/fake.d.ts',
require: './chat_models/fake.d.cts',
default: './chat_models/fake.d.ts'
},
import: './chat_models/fake.js',
require: './chat_models/fake.cjs'
},
'./schema': {
types: {
import: './schema.d.ts',
require: './schema.d.cts',
default: './schema.d.ts'
},
import: './schema.js',
require: './schema.cjs'
},
'./schema/document': {
types: {
import: './schema/document.d.ts',
require: './schema/document.d.cts',
default: './schema/document.d.ts'
},
import: './schema/document.js',
require: './schema/document.cjs'
},
'./schema/output_parser': {
types: {
import: './schema/output_parser.d.ts',
require: './schema/output_parser.d.cts',
default: './schema/output_parser.d.ts'
},
import: './schema/output_parser.js',
require: './schema/output_parser.cjs'
},
'./schema/prompt_template': {
types: {
import: './schema/prompt_template.d.ts',
require: './schema/prompt_template.d.cts',
default: './schema/prompt_template.d.ts'
},
import: './schema/prompt_template.js',
require: './schema/prompt_template.cjs'
},
'./schema/query_constructor': {
types: {
import: './schema/query_constructor.d.ts',
require: './schema/query_constructor.d.cts',
default: './schema/query_constructor.d.ts'
},
import: './schema/query_constructor.js',
require: './schema/query_constructor.cjs'
},
'./schema/retriever': {
types: {
import: './schema/retriever.d.ts',
require: './schema/retriever.d.cts',
default: './schema/retriever.d.ts'
},
import: './schema/retriever.js',
require: './schema/retriever.cjs'
},
'./schema/runnable': {
types: {
import: './schema/runnable.d.ts',
require: './schema/runnable.d.cts',
default: './schema/runnable.d.ts'
},
import: './schema/runnable.js',
require: './schema/runnable.cjs'
},
'./schema/storage': {
types: {
import: './schema/storage.d.ts',
require: './schema/storage.d.cts',
default: './schema/storage.d.ts'
},
import: './schema/storage.js',
require: './schema/storage.cjs'
},
'./sql_db': {
types: {
import: './sql_db.d.ts',
require: './sql_db.d.cts',
default: './sql_db.d.ts'
},
import: './sql_db.js',
require: './sql_db.cjs'
},
'./callbacks': {
types: {
import: './callbacks.d.ts',
require: './callbacks.d.cts',
default: './callbacks.d.ts'
},
import: './callbacks.js',
require: './callbacks.cjs'
},
'./callbacks/handlers/llmonitor': {
types: {
import: './callbacks/handlers/llmonitor.d.ts',
require: './callbacks/handlers/llmonitor.d.cts',
default: './callbacks/handlers/llmonitor.d.ts'
},
import: './callbacks/handlers/llmonitor.js',
require: './callbacks/handlers/llmonitor.cjs'
},
'./output_parsers': {
types: {
import: './output_parsers.d.ts',
require: './output_parsers.d.cts',
default: './output_parsers.d.ts'
},
import: './output_parsers.js',
require: './output_parsers.cjs'
},
'./output_parsers/expression': {
types: {
import: './output_parsers/expression.d.ts',
require: './output_parsers/expression.d.cts',
default: './output_parsers/expression.d.ts'
},
import: './output_parsers/expression.js',
require: './output_parsers/expression.cjs'
},
'./retrievers/amazon_kendra': {
types: {
import: './retrievers/amazon_kendra.d.ts',
require: './retrievers/amazon_kendra.d.cts',
default: './retrievers/amazon_kendra.d.ts'
},
import: './retrievers/amazon_kendra.js',
require: './retrievers/amazon_kendra.cjs'
},
'./retrievers/remote': {
types: {
import: './retrievers/remote.d.ts',
require: './retrievers/remote.d.cts',
default: './retrievers/remote.d.ts'
},
import: './retrievers/remote.js',
require: './retrievers/remote.cjs'
},
'./retrievers/supabase': {
types: {
import: './retrievers/supabase.d.ts',
require: './retrievers/supabase.d.cts',
default: './retrievers/supabase.d.ts'
},
import: './retrievers/supabase.js',
require: './retrievers/supabase.cjs'
},
'./retrievers/zep': {
types: {
import: './retrievers/zep.d.ts',
require: './retrievers/zep.d.cts',
default: './retrievers/zep.d.ts'
},
import: './retrievers/zep.js',
require: './retrievers/zep.cjs'
},
'./retrievers/metal': {
types: {
import: './retrievers/metal.d.ts',
require: './retrievers/metal.d.cts',
default: './retrievers/metal.d.ts'
},
import: './retrievers/metal.js',
require: './retrievers/metal.cjs'
},
'./retrievers/chaindesk': {
types: {
import: './retrievers/chaindesk.d.ts',
require: './retrievers/chaindesk.d.cts',
default: './retrievers/chaindesk.d.ts'
},
import: './retrievers/chaindesk.js',
require: './retrievers/chaindesk.cjs'
},
'./retrievers/databerry': {
types: {
import: './retrievers/databerry.d.ts',
require: './retrievers/databerry.d.cts',
default: './retrievers/databerry.d.ts'
},
import: './retrievers/databerry.js',
require: './retrievers/databerry.cjs'
},
'./retrievers/contextual_compression': {
types: {
import: './retrievers/contextual_compression.d.ts',
require: './retrievers/contextual_compression.d.cts',
default: './retrievers/contextual_compression.d.ts'
},
import: './retrievers/contextual_compression.js',
require: './retrievers/contextual_compression.cjs'
},
'./retrievers/document_compressors': {
types: {
import: './retrievers/document_compressors.d.ts',
require: './retrievers/document_compressors.d.cts',
default: './retrievers/document_compressors.d.ts'
},
import: './retrievers/document_compressors.js',
require: './retrievers/document_compressors.cjs'
},
'./retrievers/multi_query': {
types: {
import: './retrievers/multi_query.d.ts',
require: './retrievers/multi_query.d.cts',
default: './retrievers/multi_query.d.ts'
},
import: './retrievers/multi_query.js',
require: './retrievers/multi_query.cjs'
},
'./retrievers/multi_vector': {
types: {
import: './retrievers/multi_vector.d.ts',
require: './retrievers/multi_vector.d.cts',
default: './retrievers/multi_vector.d.ts'
},
import: './retrievers/multi_vector.js',
require: './retrievers/multi_vector.cjs'
},
'./retrievers/parent_document': {
types: {
import: './retrievers/parent_document.d.ts',
require: './retrievers/parent_document.d.cts',
default: './retrievers/parent_document.d.ts'
},
import: './retrievers/parent_document.js',
require: './retrievers/parent_document.cjs'
},
'./retrievers/vectara_summary': {
types: {
import: './retrievers/vectara_summary.d.ts',
require: './retrievers/vectara_summary.d.cts',
default: './retrievers/vectara_summary.d.ts'
},
import: './retrievers/vectara_summary.js',
require: './retrievers/vectara_summary.cjs'
},
'./retrievers/tavily_search_api': {
types: {
import: './retrievers/tavily_search_api.d.ts',
require: './retrievers/tavily_search_api.d.cts',
default: './retrievers/tavily_search_api.d.ts'
},
import: './retrievers/tavily_search_api.js',
require: './retrievers/tavily_search_api.cjs'
},
'./retrievers/time_weighted': {
types: {
import: './retrievers/time_weighted.d.ts',
require: './retrievers/time_weighted.d.cts',
default: './retrievers/time_weighted.d.ts'
},
import: './retrievers/time_weighted.js',
require: './retrievers/time_weighted.cjs'
},
'./retrievers/document_compressors/chain_extract': {
types: {
import: './retrievers/document_compressors/chain_extract.d.ts',
require: './retrievers/document_compressors/chain_extract.d.cts',
default: './retrievers/document_compressors/chain_extract.d.ts'
},
import: './retrievers/document_compressors/chain_extract.js',
require: './retrievers/document_compressors/chain_extract.cjs'
},
'./retrievers/document_compressors/embeddings_filter': {
types: {
import: './retrievers/document_compressors/embeddings_filter.d.ts',
require: './retrievers/document_compressors/embeddings_filter.d.cts',
default: './retrievers/document_compressors/embeddings_filter.d.ts'
},
import: './retrievers/document_compressors/embeddings_filter.js',
require: './retrievers/document_compressors/embeddings_filter.cjs'
},
'./retrievers/hyde': {
types: {
import: './retrievers/hyde.d.ts',
require: './retrievers/hyde.d.cts',
default: './retrievers/hyde.d.ts'
},
import: './retrievers/hyde.js',
require: './retrievers/hyde.cjs'
},
'./retrievers/score_threshold': {
types: {
import: './retrievers/score_threshold.d.ts',
require: './retrievers/score_threshold.d.cts',
default: './retrievers/score_threshold.d.ts'
},
import: './retrievers/score_threshold.js',
require: './retrievers/score_threshold.cjs'
},
'./retrievers/self_query': {
types: {
import: './retrievers/self_query.d.ts',
require: './retrievers/self_query.d.cts',
default: './retrievers/self_query.d.ts'
},
import: './retrievers/self_query.js',
require: './retrievers/self_query.cjs'
},
'./retrievers/self_query/chroma': {
types: {
import: './retrievers/self_query/chroma.d.ts',
require: './retrievers/self_query/chroma.d.cts',
default: './retrievers/self_query/chroma.d.ts'
},
import: './retrievers/self_query/chroma.js',
require: './retrievers/self_query/chroma.cjs'
},
'./retrievers/self_query/functional': {
types: {
import: './retrievers/self_query/functional.d.ts',
require: './retrievers/self_query/functional.d.cts',
default: './retrievers/self_query/functional.d.ts'
},
import: './retrievers/self_query/functional.js',
require: './retrievers/self_query/functional.cjs'
},
'./retrievers/self_query/pinecone': {
types: {
import: './retrievers/self_query/pinecone.d.ts',
require: './retrievers/self_query/pinecone.d.cts',
default: './retrievers/self_query/pinecone.d.ts'
},
import: './retrievers/self_query/pinecone.js',
require: './retrievers/self_query/pinecone.cjs'
},
'./retrievers/self_query/supabase': {
types: {
import: './retrievers/self_query/supabase.d.ts',
require: './retrievers/self_query/supabase.d.cts',
default: './retrievers/self_query/supabase.d.ts'
},
import: './retrievers/self_query/supabase.js',
require: './retrievers/self_query/supabase.cjs'
},
'./retrievers/self_query/weaviate': {
types: {
import: './retrievers/self_query/weaviate.d.ts',
require: './retrievers/self_query/weaviate.d.cts',
default: './retrievers/self_query/weaviate.d.ts'
},
import: './retrievers/self_query/weaviate.js',
require: './retrievers/self_query/weaviate.cjs'
},
'./retrievers/self_query/vectara': {
types: {
import: './retrievers/self_query/vectara.d.ts',
require: './retrievers/self_query/vectara.d.cts',
default: './retrievers/self_query/vectara.d.ts'
},
import: './retrievers/self_query/vectara.js',
require: './retrievers/self_query/vectara.cjs'
},
'./retrievers/vespa': {
types: {
import: './retrievers/vespa.d.ts',
require: './retrievers/vespa.d.cts',
default: './retrievers/vespa.d.ts'
},
import: './retrievers/vespa.js',
require: './retrievers/vespa.cjs'
},
'./retrievers/matryoshka_retriever': {
types: {
import: './retrievers/matryoshka_retriever.d.ts',
require: './retrievers/matryoshka_retriever.d.cts',
default: './retrievers/matryoshka_retriever.d.ts'
},
import: './retrievers/matryoshka_retriever.js',
require: './retrievers/matryoshka_retriever.cjs'
},
'./cache': {
types: {
import: './cache.d.ts',
require: './cache.d.cts',
default: './cache.d.ts'
},
import: './cache.js',
require: './cache.cjs'
},
'./cache/cloudflare_kv': {
types: {
import: './cache/cloudflare_kv.d.ts',
require: './cache/cloudflare_kv.d.cts',
default: './cache/cloudflare_kv.d.ts'
},
import: './cache/cloudflare_kv.js',
require: './cache/cloudflare_kv.cjs'
},
'./cache/momento': {
types: {
import: './cache/momento.d.ts',
require: './cache/momento.d.cts',
default: './cache/momento.d.ts'
},
import: './cache/momento.js',
require: './cache/momento.cjs'
},
'./cache/redis': {
types: {
import: './cache/redis.d.ts',
require: './cache/redis.d.cts',
default: './cache/redis.d.ts'
},
import: './cache/redis.js',
require: './cache/redis.cjs'
},
'./cache/ioredis': {
types: {
import: './cache/ioredis.d.ts',
require: './cache/ioredis.d.cts',
default: './cache/ioredis.d.ts'
},
import: './cache/ioredis.js',
require: './cache/ioredis.cjs'
},
'./cache/file_system': {
types: {
import: './cache/file_system.d.ts',
require: './cache/file_system.d.cts',
default: './cache/file_system.d.ts'
},
import: './cache/file_system.js',
require: './cache/file_system.cjs'
},
'./cache/upstash_redis': {
types: {
import: './cache/upstash_redis.d.ts',
require: './cache/upstash_redis.d.cts',
default: './cache/upstash_redis.d.ts'
},
import: './cache/upstash_redis.js',
require: './cache/upstash_redis.cjs'
},
'./stores/doc/in_memory': {
types: {
import: './stores/doc/in_memory.d.ts',
require: './stores/doc/in_memory.d.cts',
default: './stores/doc/in_memory.d.ts'
},
import: './stores/doc/in_memory.js',
require: './stores/doc/in_memory.cjs'
},
'./stores/doc/gcs': {
types: {
import: './stores/doc/gcs.d.ts',
require: './stores/doc/gcs.d.cts',
default: './stores/doc/gcs.d.ts'
},
import: './stores/doc/gcs.js',
require: './stores/doc/gcs.cjs'
},
'./stores/file/in_memory': {
types: {
import: './stores/file/in_memory.d.ts',
require: './stores/file/in_memory.d.cts',
default: './stores/file/in_memory.d.ts'
},
import: './stores/file/in_memory.js',
require: './stores/file/in_memory.cjs'
},
'./stores/file/node': {
types: {
import: './stores/file/node.d.ts',
require: './stores/file/node.d.cts',
default: './stores/file/node.d.ts'
},
import: './stores/file/node.js',
require: './stores/file/node.cjs'
},
'./stores/message/cassandra': {
types: {
import: './stores/message/cassandra.d.ts',
require: './stores/message/cassandra.d.cts',
default: './stores/message/cassandra.d.ts'
},
import: './stores/message/cassandra.js',
require: './stores/message/cassandra.cjs'
},
'./stores/message/convex': {
types: {
import: './stores/message/convex.d.ts',
require: './stores/message/convex.d.cts',
default: './stores/message/convex.d.ts'
},
import: './stores/message/convex.js',
require: './stores/message/convex.cjs'
},
'./stores/message/cloudflare_d1': {
types: {
import: './stores/message/cloudflare_d1.d.ts',
require: './stores/message/cloudflare_d1.d.cts',
default: './stores/message/cloudflare_d1.d.ts'
},
import: './stores/message/cloudflare_d1.js',
require: './stores/message/cloudflare_d1.cjs'
},
'./stores/message/in_memory': {
types: {
import: './stores/message/in_memory.d.ts',
require: './stores/message/in_memory.d.cts',
default: './stores/message/in_memory.d.ts'
},
import: './stores/message/in_memory.js',
require: './stores/message/in_memory.cjs'
},
'./stores/message/dynamodb': {
types: {
import: './stores/message/dynamodb.d.ts',
require: './stores/message/dynamodb.d.cts',
default: './stores/message/dynamodb.d.ts'
},
import: './stores/message/dynamodb.js',
require: './stores/message/dynamodb.cjs'
},
'./stores/message/firestore': {
types: {
import: './stores/message/firestore.d.ts',
require: './stores/message/firestore.d.cts',
default: './stores/message/firestore.d.ts'
},
import: './stores/message/firestore.js',
require: './stores/message/firestore.cjs'
},
'./stores/message/momento': {
types: {
import: './stores/message/momento.d.ts',
require: './stores/message/momento.d.cts',
default: './stores/message/momento.d.ts'
},
import: './stores/message/momento.js',
require: './stores/message/momento.cjs'
},
'./stores/message/mongodb': {
types: {
import: './stores/message/mongodb.d.ts',
require: './stores/message/mongodb.d.cts',
default: './stores/message/mongodb.d.ts'
},
import: './stores/message/mongodb.js',
require: './stores/message/mongodb.cjs'
},
'./stores/message/redis': {
types: {
import: './stores/message/redis.d.ts',
require: './stores/message/redis.d.cts',
default: './stores/message/redis.d.ts'
},
import: './stores/message/redis.js',
require: './stores/message/redis.cjs'
},
'./stores/message/ioredis': {
types: {
import: './stores/message/ioredis.d.ts',
require: './stores/message/ioredis.d.cts',
default: './stores/message/ioredis.d.ts'
},
import: './stores/message/ioredis.js',
require: './stores/message/ioredis.cjs'
},
'./stores/message/upstash_redis': {
types: {
import: './stores/message/upstash_redis.d.ts',
require: './stores/message/upstash_redis.d.cts',
default: './stores/message/upstash_redis.d.ts'
},
import: './stores/message/upstash_redis.js',
require: './stores/message/upstash_redis.cjs'
},
'./stores/message/planetscale': {
types: {
import: './stores/message/planetscale.d.ts',
require: './stores/message/planetscale.d.cts',
default: './stores/message/planetscale.d.ts'
},
import: './stores/message/planetscale.js',
require: './stores/message/planetscale.cjs'
},
'./stores/message/xata': {
types: {
import: './stores/message/xata.d.ts',
require: './stores/message/xata.d.cts',
default: './stores/message/xata.d.ts'
},
import: './stores/message/xata.js',
require: './stores/message/xata.cjs'
},
'./storage/convex': {
types: {
import: './storage/convex.d.ts',
require: './storage/convex.d.cts',
default: './storage/convex.d.ts'
},
import: './storage/convex.js',
require: './storage/convex.cjs'
},
'./storage/encoder_backed': {
types: {
import: './storage/encoder_backed.d.ts',
require: './storage/encoder_backed.d.cts',
default: './storage/encoder_backed.d.ts'
},
import: './storage/encoder_backed.js',
require: './storage/encoder_backed.cjs'
},
'./storage/in_memory': {
types: {
import: './storage/in_memory.d.ts',
require: './storage/in_memory.d.cts',
default: './storage/in_memory.d.ts'
},
import: './storage/in_memory.js',
require: './storage/in_memory.cjs'
},
'./storage/ioredis': {
types: {
import: './storage/ioredis.d.ts',
require: './storage/ioredis.d.cts',
default: './storage/ioredis.d.ts'
},
import: './storage/ioredis.js',
require: './storage/ioredis.cjs'
},
'./storage/vercel_kv': {
types: {
import: './storage/vercel_kv.d.ts',
require: './storage/vercel_kv.d.cts',
default: './storage/vercel_kv.d.ts'
},
import: './storage/vercel_kv.js',
require: './storage/vercel_kv.cjs'
},
'./storage/upstash_redis': {
types: {
import: './storage/upstash_redis.d.ts',
require: './storage/upstash_redis.d.cts',
default: './storage/upstash_redis.d.ts'
},
import: './storage/upstash_redis.js',
require: './storage/upstash_redis.cjs'
},
'./storage/file_system': {
types: {
import: './storage/file_system.d.ts',
require: './storage/file_system.d.cts',
default: './storage/file_system.d.ts'
},
import: './storage/file_system.js',
require: './storage/file_system.cjs'
},
'./graphs/neo4j_graph': {
types: {
import: './graphs/neo4j_graph.d.ts',
require: './graphs/neo4j_graph.d.cts',
default: './graphs/neo4j_graph.d.ts'
},
import: './graphs/neo4j_graph.js',
require: './graphs/neo4j_graph.cjs'
},
'./hub': {
types: {
import: './hub.d.ts',
require: './hub.d.cts',
default: './hub.d.ts'
},
import: './hub.js',
require: './hub.cjs'
},
'./util/convex': {
types: {
import: './util/convex.d.ts',
require: './util/convex.d.cts',
default: './util/convex.d.ts'
},
import: './util/convex.js',
require: './util/convex.cjs'
},
'./util/document': {
types: {
import: './util/document.d.ts',
require: './util/document.d.cts',
default: './util/document.d.ts'
},
import: './util/document.js',
require: './util/document.cjs'
},
'./util/math': {
types: {
import: './util/math.d.ts',
require: './util/math.d.cts',
default: './util/math.d.ts'
},
import: './util/math.js',
require: './util/math.cjs'
},
'./util/time': {
types: {
import: './util/time.d.ts',
require: './util/time.d.cts',
default: './util/time.d.ts'
},
import: './util/time.js',
require: './util/time.cjs'
},
'./experimental/autogpt': {
types: {
import: './experimental/autogpt.d.ts',
require: './experimental/autogpt.d.cts',
default: './experimental/autogpt.d.ts'
},
import: './experimental/autogpt.js',
require: './experimental/autogpt.cjs'
},
'./experimental/openai_assistant': {
types: {
import: './experimental/openai_assistant.d.ts',
require: './experimental/openai_assistant.d.cts',
default: './experimental/openai_assistant.d.ts'
},
import: './experimental/openai_assistant.js',
require: './experimental/openai_assistant.cjs'
},
'./experimental/openai_files': {
types: {
import: './experimental/openai_files.d.ts',
require: './experimental/openai_files.d.cts',
default: './experimental/openai_files.d.ts'
},
import: './experimental/openai_files.js',
require: './experimental/openai_files.cjs'
},
'./experimental/babyagi': {
types: {
import: './experimental/babyagi.d.ts',
require: './experimental/babyagi.d.cts',
default: './experimental/babyagi.d.ts'
},
import: './experimental/babyagi.js',
require: './experimental/babyagi.cjs'
},
'./experimental/generative_agents': {
types: {
import: './experimental/generative_agents.d.ts',
require: './experimental/generative_agents.d.cts',
default: './experimental/generative_agents.d.ts'
},
import: './experimental/generative_agents.js',
require: './experimental/generative_agents.cjs'
},
'./experimental/plan_and_execute': {
types: {
import: './experimental/plan_and_execute.d.ts',
require: './experimental/plan_and_execute.d.cts',
default: './experimental/plan_and_execute.d.ts'
},
import: './experimental/plan_and_execute.js',
require: './experimental/plan_and_execute.cjs'
},
'./experimental/multimodal_embeddings/googlevertexai': {
types: {
import: './experimental/multimodal_embeddings/googlevertexai.d.ts',
require: './experimental/multimodal_embeddings/googlevertexai.d.cts',
default: './experimental/multimodal_embeddings/googlevertexai.d.ts'
},
import: './experimental/multimodal_embeddings/googlevertexai.js',
require: './experimental/multimodal_embeddings/googlevertexai.cjs'
},
'./experimental/chat_models/anthropic_functions': {
types: {
import: './experimental/chat_models/anthropic_functions.d.ts',
require: './experimental/chat_models/anthropic_functions.d.cts',
default: './experimental/chat_models/anthropic_functions.d.ts'
},
import: './experimental/chat_models/anthropic_functions.js',
require: './experimental/chat_models/anthropic_functions.cjs'
},
'./experimental/chat_models/bittensor': {
types: {
import: './experimental/chat_models/bittensor.d.ts',
require: './experimental/chat_models/bittensor.d.cts',
default: './experimental/chat_models/bittensor.d.ts'
},
import: './experimental/chat_models/bittensor.js',
require: './experimental/chat_models/bittensor.cjs'
},
'./experimental/chat_models/ollama_functions': {
types: {
import: './experimental/chat_models/ollama_functions.d.ts',
require: './experimental/chat_models/ollama_functions.d.cts',
default: './experimental/chat_models/ollama_functions.d.ts'
},
import: './experimental/chat_models/ollama_functions.js',
require: './experimental/chat_models/ollama_functions.cjs'
},
'./experimental/llms/bittensor': {
types: {
import: './experimental/llms/bittensor.d.ts',
require: './experimental/llms/bittensor.d.cts',
default: './experimental/llms/bittensor.d.ts'
},
import: './experimental/llms/bittensor.js',
require: './experimental/llms/bittensor.cjs'
},
'./experimental/hubs/makersuite/googlemakersuitehub': {
types: {
import: './experimental/hubs/makersuite/googlemakersuitehub.d.ts',
require: './experimental/hubs/makersuite/googlemakersuitehub.d.cts',
default: './experimental/hubs/makersuite/googlemakersuitehub.d.ts'
},
import: './experimental/hubs/makersuite/googlemakersuitehub.js',
require: './experimental/hubs/makersuite/googlemakersuitehub.cjs'
},
'./experimental/chains/violation_of_expectations': {
types: {
import: './experimental/chains/violation_of_expectations.d.ts',
require: './experimental/chains/violation_of_expectations.d.cts',
default: './experimental/chains/violation_of_expectations.d.ts'
},
import: './experimental/chains/violation_of_expectations.js',
require: './experimental/chains/violation_of_expectations.cjs'
},
'./experimental/masking': {
types: {
import: './experimental/masking.d.ts',
require: './experimental/masking.d.cts',
default: './experimental/masking.d.ts'
},
import: './experimental/masking.js',
require: './experimental/masking.cjs'
},
'./experimental/prompts/custom_format': {
types: {
import: './experimental/prompts/custom_format.d.ts',
require: './experimental/prompts/custom_format.d.cts',
default: './experimental/prompts/custom_format.d.ts'
},
import: './experimental/prompts/custom_format.js',
require: './experimental/prompts/custom_format.cjs'
},
'./experimental/prompts/handlebars': {
types: {
import: './experimental/prompts/handlebars.d.ts',
require: './experimental/prompts/handlebars.d.cts',
default: './experimental/prompts/handlebars.d.ts'
},
import: './experimental/prompts/handlebars.js',
require: './experimental/prompts/handlebars.cjs'
},
'./experimental/tools/pyinterpreter': {
types: {
import: './experimental/tools/pyinterpreter.d.ts',
require: './experimental/tools/pyinterpreter.d.cts',
default: './experimental/tools/pyinterpreter.d.ts'
},
import: './experimental/tools/pyinterpreter.js',
require: './experimental/tools/pyinterpreter.cjs'
},
'./evaluation': {
types: {
import: './evaluation.d.ts',
require: './evaluation.d.cts',
default: './evaluation.d.ts'
},
import: './evaluation.js',
require: './evaluation.cjs'
},
'./smith': {
types: {
import: './smith.d.ts',
require: './smith.d.cts',
default: './smith.d.ts'
},
import: './smith.js',
require: './smith.cjs'
},
'./runnables': {
types: {
import: './runnables.d.ts',
require: './runnables.d.cts',
default: './runnables.d.ts'
},
import: './runnables.js',
require: './runnables.cjs'
},
'./runnables/remote': {
types: {
import: './runnables/remote.d.ts',
require: './runnables/remote.d.cts',
default: './runnables/remote.d.ts'
},
import: './runnables/remote.js',
require: './runnables/remote.cjs'
},
'./indexes': {
types: {
import: './indexes.d.ts',
require: './indexes.d.cts',
default: './indexes.d.ts'
},
import: './indexes.js',
require: './indexes.cjs'
},
'./package.json': './package.json'
},
gitHead: 'f8ed096e02b56a2f085bfdbb6d8d025c44c340b3',
dist: {
integrity: 'sha512-2hCXDev/KkBKNHCrxqq7XQxAp/kpjMtwlIuKBzaSW8gM+BOrh8q6B9PM3ItbvG4s29JCW7xlJtIEO3LaWChwkQ==',
shasum: '1901db427565498b3b2316037deedcfdda5bb3c0',
tarball: 'https://registry.npmjs.org/langchain/-/langchain-0.1.26.tgz',
fileCount: 2810,
unpackedSize: 4032546,
signatures: [
{
keyid: 'SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA',
sig: 'MEUCIAkixt4RZdyafAEtGXF2bosdRLKrbR3qx7hWbPGp0QSxAiEA3s46Q/mcHuZq60xc+XD2ggWBExNYBloFpZjHup9FW9Q='
}
]
},
directories: {}
}
Done in 0.63s. Platform: Linux |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @ThiagoPereiraUFV! Great to see you back here with another intriguing challenge. Hope you're doing well! Based on your code, it seems like you're already passing the const retriever = new SupabaseHybridSearch(this.embeddings, {
client: this.database,
metadata: {
chatbotId: config.chatbotId,
},
// verbose: true,
similarityK: 2,
keywordK: 2,
tableName: 'documents',
similarityQueryName: 'match_documents',
keywordQueryName: 'kw_match_documents',
}); This should theoretically filter the documents based on the The if (Object.keys(this.metadata ?? {}).length > 0) {
matchDocumentsParams.filter = this.metadata;
} This code snippet checks if If this isn't working as expected, it might be a bug in the LangChain JS library or a misunderstanding of how the metadata filtering is supposed to work. I recommend checking the SupabaseHybridSearch class source code and the Supabase documentation for more information on how metadata filtering is implemented and supposed to work. If you're still having trouble, it might be helpful to provide more information about the issue. For example, what is the exact output you're getting, and what output are you expecting? Are there any error messages? This could help identify the problem more accurately. Sources
|
Beta Was this translation helpful? Give feedback.
@alastairayliffe it seems that the old version I was running langchain (0.1.26) has not supported filter by metadata, I updated to the latest version and it worked like a charm!