before_code
stringlengths
14
465k
reviewer_comment
stringlengths
16
64.5k
after_code
stringlengths
9
467k
diff_context
stringlengths
0
97k
file_path
stringlengths
5
226
comment_line
int32
0
26
language
stringclasses
37 values
quality_score
float32
0.07
1
comment_type
stringclasses
9 values
comment_length
int32
16
64.5k
before_lines
int32
1
17.2k
after_lines
int32
1
12.1k
is_negative
bool
2 classes
pr_title
stringlengths
1
308
pr_number
int32
1
299k
repo_name
stringclasses
533 values
repo_stars
int64
321
419k
repo_language
stringclasses
27 values
reviewer_username
stringlengths
0
39
author_username
stringlengths
2
39
} else if uriName, err := url.Parse(h); err == nil && uriName.Scheme != "" && uriName.Host != "" { tpl.URIs = append(tpl.URIs, uriName) } else { tpl.DNSNames = append(tpl.DNSNames, h) } } if m.client { tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth} } else ...
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.2 (GNU/Linux) mQGiBD8OdRwRBACEr0/NPA88qp8f6KyIMMveLQ1FOuLi0aDQDPybG7u1nrBoi3VI tSRyfYcdExVxWQjTGd9qbShzXBw2DsxjA6YjiGzWKpVcqtj9uUDpSlylBaoadUzu Sf3r3IkOHR2QJeC+9v2il30xy5XLMxDRbQYaSmf4uwTlIOUWNn118KpdawCgoNny p4DR9EvRgCmY5z6IKHA2WscD/AhAKDVHCIAoZHzSB/puNOu...
} else if uriName, err := url.Parse(h); err == nil && uriName.Scheme != "" && uriName.Host != "" { tpl.URIs = append(tpl.URIs, uriName) } else { tpl.DNSNames = append(tpl.DNSNames, h) } } if m.client { tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth} } else ...
@@ -108,15 +108,26 @@ func (m *mkcert) makeCert(hosts []string) { certFile, keyFile, p12File := m.fileNames(hosts)
cert.go
26
Go
0.429
suggestion
1,738
51
51
false
Don't overwrite the -key-file if it's identical to -cert-file
264
FiloSottile/mkcert
55,865
Go
qqqq-collab
arp242
Usage: $ mkcert -install Install the local CA in the system trust store. $ mkcert example.org Generate "example.org.pem" and "example.org-key.pem". $ mkcert example.com myapp.dev localhost 127.0.0.1 ::1 Generate "example.com+4.pem" and "example.com+4-key.pem". $ mkcert '*.example.com' Generate "_wildcard.ex...
No issues found.
Usage: $ mkcert -install Install the local CA in the system trust store. $ mkcert example.org Generate "example.org.pem" and "example.org-key.pem". $ mkcert example.com myapp.dev localhost 127.0.0.1 ::1 Generate "example.com+4.pem" and "example.com+4-key.pem". $ mkcert '*.example.com' Generate "_wildcard.ex...
@@ -154,8 +154,13 @@ func (m *mkcert) install() { var printed bool if !m.checkPlatform() { m.installPlatform() - m.ignoreCheckFailure = true // TODO: replace with a check for a successful install - log.Print("The local CA is now installed in the system trust store! ⚡️") + + // TODO: replace with a check for a...
main.go
0
Go
1
none
16
51
51
true
on linux don't declare we installed to the system store
18
FiloSottile/mkcert
55,865
Go
adamdecaf
} else if m.uninstallMode { m.uninstall() return } else { var warning bool if !m.checkPlatform() { warning = true log.Println("Warning: the local CA is not installed in the system trust store! ⚠️") } if hasNSS && CertutilInstallHelp != "" && !m.checkNSS() { warning = true log.Printf("Warning: ...
No issues found.
} else if m.uninstallMode { m.uninstall() return } else { var warning bool if !m.checkPlatform() { warning = true log.Println("Warning: the local CA is not installed in the system trust store! ⚠️") } if hasNSS && CertutilInstallHelp != "" && !m.checkNSS() { warning = true log.Printf("Warning: ...
@@ -40,6 +40,8 @@ const usage = `Usage of mkcert: $ mkcert -uninstall Uninstall the local CA (but do not delete it). +Use -cert-file, -key-file and -p12-file to customize the output paths. + Change the CA certificate and key storage location by setting $CAROOT, print it with "mkcert -CAROOT". ` @@ -50,6 +52,9 ...
main.go
0
Go
1
none
16
51
51
true
Add ability of customizing file name
77
FiloSottile/mkcert
55,865
Go
sleagon
label: string name: string type: string icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure ChatOpenAI' this.name = 'azureChatOpenAI' this.type = 'AzureChatOpenAI' this.icon...
not sure if these model names are correct. At least when checked docs - its called gpt-35-turbo. Refer to here: https://learn.microsoft.com/en-GB/azure/cognitive-services/openai/concepts/models
label: string name: string type: string icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure ChatOpenAI' this.name = 'azureChatOpenAI' this.type = 'AzureChatOpenAI' this.icon...
@@ -0,0 +1,134 @@ +import { OpenAIBaseInput } from 'langchain/dist/types/openai-types' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { AzureOpenAIInput, ChatOpenAI } from 'langchain/chat_models/openai' + +class AzureChatOpenAI_ChatMo...
packages/components/nodes/chatmodels/AzureChatOpenAI/AzureChatOpenAI.ts
26
TypeScript
0.357
suggestion
193
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
label: string name: string type: string icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure OpenAI' this.name = 'azureOpenAI' this.type = 'AzureOpenAI' this.icon = 'Azure.sv...
Refer to here for models: https://learn.microsoft.com/en-GB/azure/cognitive-services/openai/concepts/models
label: string name: string type: string icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure OpenAI' this.name = 'azureOpenAI' this.type = 'AzureOpenAI' this.icon = 'Azure.sv...
@@ -0,0 +1,129 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { AzureOpenAIInput, OpenAI, OpenAIInput } from 'langchain/llms/openai' + +class AzureOpenAI_LLMs implements INode { + label: string + name: string + type: strin...
packages/components/nodes/llms/Azure OpenAI/AzureOpenAI.ts
26
TypeScript
0.357
suggestion
107
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure OpenAI Embeddings' this.name = 'azureOpenAIEmbeddings' this.type = 'AzureOpenAIEmbeddings' this.icon = 'Azure.svg' this.categ...
We don't have model name is OpenAIEmbedding, think we can leave this out
icon: string category: string description: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Azure OpenAI Embeddings' this.name = 'azureOpenAIEmbeddings' this.type = 'AzureOpenAIEmbeddings' this.icon = 'Azure.svg' this.categ...
@@ -0,0 +1,116 @@ +import { AzureOpenAIInput } from 'langchain/chat_models/openai' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { OpenAIEmbeddings, OpenAIEmbeddingsParams } from 'langchain/embeddings/openai' + +class AzureOpenAIEmbe...
packages/components/nodes/embeddings/AzureOpenAIEmbedding/AzureOpenAIEmbedding.ts
26
TypeScript
0.214
suggestion
72
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
optional: true }, { label: 'Temperature', name: 'temperature', type: 'number', default: 0.9, optional: true }, { label: 'Azure OpenAI Api Instance Name', ...
Can we change api version to options: <img width="332" alt="image" src="https://github.com/FlowiseAI/Flowise/assets/26460777/cd148147-92f8-4768-9c25-ae1562d9f0e3">
optional: true }, { label: 'Temperature', name: 'temperature', type: 'number', default: 0.9, optional: true }, { label: 'Azure OpenAI Api Instance Name', ...
@@ -0,0 +1,122 @@ +import { OpenAIBaseInput } from 'langchain/dist/types/openai-types' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { AzureOpenAIInput, ChatOpenAI } from 'langchain/chat_models/openai' + +class AzureChatOpenAI_ChatMo...
packages/components/nodes/chatmodels/AzureChatOpenAI/AzureChatOpenAI.ts
26
TypeScript
0.429
suggestion
167
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
label: 'Temperature', name: 'temperature', type: 'number', default: 0.9, optional: true }, { label: 'Azure OpenAI Api Instance Name', name: 'azureOpenAIApiInstanceName', ...
Embeddings needed? <img width="713" alt="image" src="https://github.com/FlowiseAI/Flowise/assets/26460777/2fca3423-a6d2-4a05-92fc-97bca2ed9f22">
label: 'Temperature', name: 'temperature', type: 'number', default: 0.9, optional: true }, { label: 'Azure OpenAI Api Instance Name', name: 'azureOpenAIApiInstanceName', ...
@@ -0,0 +1,157 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { AzureOpenAIInput, OpenAI, OpenAIInput } from 'langchain/llms/openai' + +class AzureOpenAI_LLMs implements INode { + label: string + name: string + type: strin...
packages/components/nodes/llms/Azure OpenAI/AzureOpenAI.ts
26
TypeScript
0.357
suggestion
148
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
options: [ { label: 'gpt-4', name: 'gpt-4' }, { label: 'gpt-4-32k', name: 'gpt-4-32k' }, { ...
Same, make sure just include fields that are needed: https://js.langchain.com/docs/modules/models/chat/integrations
options: [ { label: 'gpt-4', name: 'gpt-4' }, { label: 'gpt-4-32k', name: 'gpt-4-32k' }, { ...
@@ -0,0 +1,122 @@ +import { OpenAIBaseInput } from 'langchain/dist/types/openai-types' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { AzureOpenAIInput, ChatOpenAI } from 'langchain/chat_models/openai' + +class AzureChatOpenAI_ChatMo...
packages/components/nodes/chatmodels/AzureChatOpenAI/AzureChatOpenAI.ts
26
TypeScript
0.357
suggestion
115
51
51
false
Feature/azure
92
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
constructor() { this.label = 'Buffer Window Memory' this.name = 'bufferWindowMemory' this.type = 'BufferWindowMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Uses a window of size k to surface the last k back-and-forths to use as memory' ...
can add a `description: 'window of size k to surface the last k back-and-forths to use as memory.'` so people can understand whats this k for
constructor() { this.label = 'Buffer Window Memory' this.name = 'bufferWindowMemory' this.type = 'BufferWindowMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Uses a window of size k to surface the last k back-and-forths to use as memory' ...
@@ -0,0 +1,61 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { BufferWindowMemory, BufferWindowMemoryInput } from 'langchain/memory' + +class BufferWindowMemory_Memory implements INode { + label: string + name: string + de...
packages/components/nodes/memory/BufferWindowMemory/BufferWindowMemory.ts
26
TypeScript
0.714
suggestion
141
48
49
false
feature/BufferWindowMemory
159
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
const docs = nodeData.inputs?.document as Document[] const chain = await getOpenAPIChain(docs, model) if (options.socketIO && options.socketIOClientId) { const handler = new CustomChainHandler(options.socketIO, options.socketIOClientId) const res = await chain.run(input,...
do you see an improvement from using custom `apiResponsePrompt` instead of the original prompt used in langchain library?
const headers = nodeData.inputs?.headers as string const chain = await getAPIChain(docs, model, headers) return chain } async run(nodeData: INodeData, input: string, options: ICommonObject): Promise<string> { const model = nodeData.inputs?.model as BaseLanguageModel con...
@@ -0,0 +1,78 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { APIChain } from 'langchain/chains' +import { CustomChainHandler, getBaseClasses } from '../../../src/utils' +import { BaseLanguageModel } from 'langchain/base_language' +import { Document } from 'langchain/...
packages/components/nodes/chains/ApiChain/ApiChain.ts
26
TypeScript
0.571
question
121
30
40
false
feature: changes to support ApiChain
190
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vjsai
if ( endingNodeData.outputs && Object.keys(endingNodeData.outputs).length && !Object.values(endingNodeData.outputs).includes(endingNodeData.name) ) { await sendToParentProcess( 'error', `Outpu...
can we also pass in the `chatid` from here - https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/index.ts#L445 ?
if ( endingNodeData.outputs && Object.keys(endingNodeData.outputs).length && !Object.values(endingNodeData.outputs).includes(endingNodeData.name) ) { await sendToParentProcess( 'error', `Outpu...
@@ -83,6 +83,7 @@ export class ChildProcess { depthQueue, componentNodes, incomingInput.question, + '',
packages/server/src/ChildProcess.ts
26
TypeScript
0.5
question
127
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
}) } // Handle errors const handleError = (message = 'Oops! There seems to be an error. Please try again.') => { message = message.replace(`Unable to parse JSON response from chat agent.\n\n`, '') setMessages((prevMessages) => [...prevMessages, { message, type: 'apiMessage' }]) ...
the code `await addChatMessage(userInput, 'userMessage')` looks the same before and after changes, is the comment redundant?
}) } // Handle errors const handleError = (message = 'Oops! There seems to be an error. Please try again.') => { message = message.replace(`Unable to parse JSON response from chat agent.\n\n`, '') setMessages((prevMessages) => [...prevMessages, { message, type: 'apiMessage' }]) ...
@@ -118,7 +118,8 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => { setLoading(true) setMessages((prevMessages) => [...prevMessages, { message: userInput, type: 'userMessage' }]) - addChatMessage(userInput, 'userMessage') + // waiting for first chatmessage uploaded, th...
packages/ui/src/views/chatmessage/ChatMessage.js
26
JavaScript
0.571
question
124
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
category: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Zep Memory' this.name = 'ZepMemory' this.type = 'ZepMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Summarizes the conversation and st...
I think we can also still have the session id in case when user want to resume the previous conversation. if the session id field is not filled, then we can use the first `chatid`: ``` { label: 'Session Id', name: 'sessionId', type: 'string', optional: true, additionalParams: true...
category: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Zep Memory' this.name = 'ZepMemory' this.type = 'ZepMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Summarizes the conversation and st...
@@ -0,0 +1,130 @@ +import { SystemChatMessage } from 'langchain/schema' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ZepMemory, ZepMemoryInput } from 'langchain/memory/zep' +import { ICommonObject } from '../../../src' + +class Ze...
packages/components/nodes/memory/ZepMemory/ZepMemory.ts
26
TypeScript
1
suggestion
329
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
constructor() { this.label = 'Zep Memory' this.name = 'ZepMemory' this.type = 'ZepMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Summarizes the conversation and stores the memory in zep server' this.baseClasses = [this.type, ...g...
we can use `description` for the message
constructor() { this.label = 'Zep Memory' this.name = 'ZepMemory' this.type = 'ZepMemory' this.icon = 'memory.svg' this.category = 'Memory' this.description = 'Summarizes the conversation and stores the memory in zep server' this.baseClasses = [this.type, ...g...
@@ -0,0 +1,140 @@ +import { SystemChatMessage } from 'langchain/schema' +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ZepMemory, ZepMemoryInput } from 'langchain/memory/zep' +import { ICommonObject } from '../../../src' + +class Ze...
packages/components/nodes/memory/ZepMemory/ZepMemory.ts
26
TypeScript
0.286
suggestion
40
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
const endingNodeData = nodes.find((nd) => nd.id === endingNodeId)?.data if (!endingNodeData) { await sendToParentProcess('error', `Ending node must be either a Chain or Agent`) return } if ( endingNodeData.outputs && ...
this will not work because child processes dont have access to `DataSource`. You'll have to get the chatid in `startChildProcess()` and pass it in the `IRunChatflowMessageValue` - https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/index.ts#L449. Then retrieve it here - https://github.com/FlowiseAI/Flowi...
const endingNodeData = nodes.find((nd) => nd.id === endingNodeId)?.data if (!endingNodeData) { await sendToParentProcess('error', `Ending node must be either a Chain or Agent`) return } if ( endingNodeData.outputs && ...
@@ -76,13 +77,15 @@ export class ChildProcess { const { startingNodeIds, depthQueue } = getStartingNodes(nonDirectedGraph, endingNodeId) /*** BFS to traverse from Starting Nodes to Ending Node ***/ + const chatId = await getChatId(chatflow.id)
packages/server/src/ChildProcess.ts
26
TypeScript
0.643
suggestion
372
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
const result = isStreamValid ? await nodeInstance.run(nodeToExecuteData, incomingInput.question, { chatHistory: incomingInput.history, socketIO, socketIOClientId: incomingInput.socketIOClientId ...
can you add ``` /** * Get first chat message id * @param {string} chatflowid * @returns {string} */ ```
isStreamValid = isStreamValid && !isVectorStoreFaiss(nodeToExecuteData) const result = isStreamValid ? await nodeInstance.run(nodeToExecuteData, incomingInput.question, { chatHistory: incomingInput.history, socketIO,...
@@ -661,6 +665,18 @@ export class App { } }
packages/server/src/index.ts
26
TypeScript
0.714
suggestion
114
51
51
false
feature/SupportZepMemoryAndAutoSummary
284
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
wangerzi
import { TextSplitter } from 'langchain/text_splitter' import { ApifyDatasetLoader } from 'langchain/document_loaders/web/apify_dataset' import { Document } from 'langchain/document' class ApifyWebsiteContentCrawler_DocumentLoaders implements INode { label: string name: string description: string type:...
Thanks for picking up the PR! We've recently added a new way to put credentials like API Key, ID etc. Can we separate `apifyApiToken` into another credential file similar to [this](https://github.com/FlowiseAI/Flowise/pull/646/files#diff-4101f7761f09aeeaede04c9ba71bf2ecbf1428218bb68112ec311b1691a9fdfb)?
import { getCredentialData, getCredentialParam } from '../../../src/utils' import { TextSplitter } from 'langchain/text_splitter' import { ApifyDatasetLoader } from 'langchain/document_loaders/web/apify_dataset' import { Document } from 'langchain/document' class ApifyWebsiteContentCrawler_DocumentLoaders implements I...
@@ -0,0 +1,68 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { TextSplitter } from 'langchain/text_splitter' +import { ApifyDatasetLoader } from 'langchain/document_loaders/web/apify_dataset' +import { Document } from 'langchain/document' + +class ApifyWebsiteContentCrawler_DocumentL...
packages/components/nodes/documentloaders/ApifyWebsiteContentCrawler/ApifyWebsiteContentCrawler.ts
26
TypeScript
0.571
security
307
51
51
false
feat: Add document loader for Apify Website Content Crawler
399
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
drobnikj
description: string type: string icon: string category: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Apify Website Content Crawler' this.name = 'apifyWebsiteContentCrawler' this.type = 'Document' this.icon = 'apify-symbol-t...
Instead of having a json that user has to fill in, can we make it more intuitive to like this? ``` { label: 'URL', name: 'url', type: 'string', placeholder: 'https://js.langchain.com/docs/' }, { label: 'Max Crawl Pages', name: 'maxCrawlPages', type: 'number', default: 1 }, ```
name: string description: string type: string icon: string version: number category: string baseClasses: string[] inputs: INodeParams[] credential: INodeParams constructor() { this.label = 'Apify Website Content Crawler' this.name = 'apifyWebsiteContentCrawler' ...
@@ -0,0 +1,68 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { TextSplitter } from 'langchain/text_splitter' +import { ApifyDatasetLoader } from 'langchain/document_loaders/web/apify_dataset' +import { Document } from 'langchain/document' + +class ApifyWebsiteContentCrawler_DocumentL...
packages/components/nodes/documentloaders/ApifyWebsiteContentCrawler/ApifyWebsiteContentCrawler.ts
26
TypeScript
1
suggestion
300
51
51
false
feat: Add document loader for Apify Website Content Crawler
399
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
drobnikj
this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever'] this.inputs = [ { label: 'Document', name: 'document', type: 'Document', list: true }, { label: 'Embeddings', ...
we have to add `optional: true` because API key is not a must. same with load existing index file
this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever'] this.inputs = [ { label: 'Document', name: 'document', type: 'Document', list: true }, { label: 'Embeddings', ...
@@ -0,0 +1,119 @@ +import { INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' +import { QdrantClient } from '@qdrant/js-client-rest' +import { QdrantVectorStore, QdrantLibArgs } from 'langchain/vectorstores/qdrant' +import { Embeddings } from 'langchain/embeddings/base' +import { Document...
packages/components/nodes/vectorstores/Qdrant_Upsert/Qdrant_Upsert.ts
26
TypeScript
0.571
suggestion
100
51
51
false
Feature/Qdrant vector store integration
409
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
govind-kumarr
outputs: INodeOutputsValue[] constructor() { this.label = 'Qdrant Upsert Document' this.name = 'qdrantUpsert' this.type = 'Qdrant' this.icon = 'qdrant_logo.svg' this.category = 'Vector Stores' this.description = 'Upsert documents to Qdrant' this.baseClass...
can we add a `placeholder: 'http://localhost:6333'`
outputs: INodeOutputsValue[] constructor() { this.label = 'Qdrant Upsert Document' this.name = 'qdrantUpsert' this.type = 'Qdrant' this.icon = 'qdrant_logo.svg' this.category = 'Vector Stores' this.description = 'Upsert documents to Qdrant' this.baseClass...
@@ -0,0 +1,119 @@ +import { INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' +import { QdrantClient } from '@qdrant/js-client-rest' +import { QdrantVectorStore, QdrantLibArgs } from 'langchain/vectorstores/qdrant' +import { Embeddings } from 'langchain/embeddings/base' +import { Document...
packages/components/nodes/vectorstores/Qdrant_Upsert/Qdrant_Upsert.ts
26
TypeScript
0.357
suggestion
51
51
51
false
Feature/Qdrant vector store integration
409
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
govind-kumarr
this.chatflowPool = new ChatflowPool() // Initialize API keys await getAPIKeys() }) .catch((err) => { console.error('❌[server]: Error during Data Source initialization:', err) }) } async config(socketIO?: Serv...
missing `'/api/v1/public-chatflows'`
this.chatflowPool = new ChatflowPool() // Initialize API keys await getAPIKeys() }) .catch((err) => { console.error('❌[server]: Error during Data Source initialization:', err) }) } async config(socketIO?: Serv...
@@ -93,7 +93,13 @@ export class App { const basicAuthMiddleware = basicAuth({ users: { [username]: password } }) - const whitelistURLs = ['/api/v1/public-chatflows', '/api/v1/prediction/', '/api/v1/node-icon/', '/api/v1/chatflows-streaming'] + const white...
packages/server/src/index.ts
26
TypeScript
0.214
suggestion
36
51
51
false
modify whitelistURLs
450
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { APIChain, createOpenAPIChain } from 'langchain/chains' import { CustomChainHandler, getBaseClasses } from '../../../src/utils' import { ChatOpenAI } from 'langchain/chat_models/openai' class OpenApiChain_Chains implements IN...
can we use the image [here](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/tools/OpenAPIToolkit/openapi.png)
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { APIChain, createOpenAPIChain } from 'langchain/chains' import { CustomChainHandler, getBaseClasses } from '../../../src/utils' import { ChatOpenAI } from 'langchain/chat_models/openai' class OpenApiChain_Chains implements IN...
@@ -0,0 +1,84 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { APIChain, createOpenAPIChain } from 'langchain/chains' +import { CustomChainHandler, getBaseClasses } from '../../../src/utils' +import { ChatOpenAI } from 'langchain/chat_models/openai' + +class OpenApiCha...
packages/components/nodes/chains/ApiChain/OpenAPIChain.ts
20
TypeScript
0.429
suggestion
134
45
45
false
Added OpenAPIChain
491
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vjsai
this.baseClasses = [this.type, ...getBaseClasses(APIChain)] this.inputs = [ { label: 'ChatOpenAI Model', name: 'model', type: 'ChatOpenAI' }, { label: 'YAML File', name: 'yamlFile', ...
For `headers`, you have to parse it because it is passed as string `const headers = nodeData.inputs?.headers as string` then pass to `createOpenAPIChain`: `headers: typeof headers === 'object' ? headers : headers ? JSON.parse(headers) : {}`
this.baseClasses = [this.type, ...getBaseClasses(APIChain)] this.inputs = [ { label: 'ChatOpenAI Model', name: 'model', type: 'ChatOpenAI' }, { label: 'YAML Link', name: 'yamlLink', ...
@@ -0,0 +1,84 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { APIChain, createOpenAPIChain } from 'langchain/chains' +import { CustomChainHandler, getBaseClasses } from '../../../src/utils' +import { ChatOpenAI } from 'langchain/chat_models/openai' + +class OpenApiCha...
packages/components/nodes/chains/ApiChain/OpenAPIChain.ts
26
TypeScript
0.786
suggestion
249
51
51
false
Added OpenAPIChain
491
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vjsai
type: 'string', optional: true, description: 'To use the online version, leave the URL blank. More details at https://getmetal.io.' }, { label: 'Memory Key', name: 'memoryKey', type: 'string', ...
can we add `additionalParams: true` and `description: 'Only needed when using hosted solution - https://getmetal.io'`
type: 'string', optional: true, description: 'To use the online version, leave the URL blank. More details at https://getmetal.io.' }, { label: 'Memory Key', name: 'memoryKey', type: 'string', ...
@@ -0,0 +1,96 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ICommonObject } from '../../../src' +import { MotorheadMemory, MotorheadMemoryInput } from 'langchain/memory' + +class MotorMemory_Memory implements INode { + label:...
packages/components/nodes/memory/MotorheadMemory/MotorheadMemory.ts
26
TypeScript
0.5
suggestion
117
51
51
false
Feature/Motorhead Memory
495
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ivalkshfoeif
default: 'chat_history' }, { label: 'Session Id', name: 'sessionId', type: 'string', description: 'if empty, chatId will be used automatically', default: '', additionalParams: true, ...
can we add `additionalParams: true` and `description: 'Only needed when using hosted solution https://getmetal.io'`
default: 'chat_history' }, { label: 'Session Id', name: 'sessionId', type: 'string', description: 'if empty, chatId will be used automatically', default: '', additionalParams: true, ...
@@ -0,0 +1,96 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ICommonObject } from '../../../src' +import { MotorheadMemory, MotorheadMemoryInput } from 'langchain/memory' + +class MotorMemory_Memory implements INode { + label:...
packages/components/nodes/memory/MotorheadMemory/MotorheadMemory.ts
26
TypeScript
0.5
suggestion
115
51
51
false
Feature/Motorhead Memory
495
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ivalkshfoeif
return 'txtFile' case 'application/pdf': return 'pdfFile' case 'application/json': return 'jsonFile' case 'text/csv': return 'csvFile' case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': return 'docxF...
i think we can also remove this too
return 'txtFile' case 'application/pdf': return 'pdfFile' case 'application/json': return 'jsonFile' case 'text/csv': return 'csvFile' case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': return 'docxF...
@@ -632,7 +632,7 @@ export const findAvailableConfigs = (reactFlowNodes: IReactFlowNode[]) => { for (const flowNode of reactFlowNodes) { for (const inputParam of flowNode.data.inputParams) { let obj: IOverrideConfig - if (inputParam.type === 'password' || inputParam.type === 'optio...
packages/server/src/utils/index.ts
26
TypeScript
0.143
refactor
35
51
51
false
modify options and password api config
510
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
output = query(form_data) ` } else if (codeLang === 'JavaScript') { return `// use FormData to upload files let formData = new FormData(); ${getConfigExamplesForJS(configData, 'formData')} async function query(formData) { const response = await fetch( "${baseURL}/api/v1/prediction/${dial...
should be `application/x-www-form-urlencoded` when using `formData`
output = query(form_data) ` } else if (codeLang === 'JavaScript') { return `// use FormData to upload files let formData = new FormData(); ${getConfigExamplesForJS(configData, 'formData')} async function query(formData) { const response = await fetch( "${baseURL}/api/v1/prediction/${dial...
@@ -316,7 +318,8 @@ query(formData).then((response) => { ` } else if (codeLang === 'cURL') { return `curl ${baseURL}/api/v1/prediction/${dialogProps.chatflowid} \\ - -X POST \\${getConfigExamplesForCurl(configData, 'formData')}` + -X POST \\${getConfigExamplesForCurl(configData, 'formData...
packages/ui/src/views/chatflows/APICodeDialog.js
26
JavaScript
0.429
suggestion
67
51
51
false
add -H "Content-Type: application/json" in curl command
554
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Yongtae723
return `import requests API_URL = "${baseURL}/api/v1/prediction/${dialogProps.chatflowid}" # use form data to upload files form_data = {${getConfigExamplesForPython(configData, 'formData')}} def query(form_data): response = requests.post(API_URL, files=form_data) return response.json() output = ...
Dont think this works. Using `formData` , the header should be `'Content-Type': 'application/x-www-form-urlencoded'` not `application/json` You also cant `JSON stringify` formData https://stackoverflow.com/questions/46640024/how-do-i-post-form-data-with-fetch-api
return `import requests API_URL = "${baseURL}/api/v1/prediction/${dialogProps.chatflowid}" # use form data to upload files form_data = {${getConfigExamplesForPython(configData, 'formData')}} def query(form_data): response = requests.post(API_URL, files=form_data) return response.json() output = ...
@@ -303,7 +309,10 @@ async function query(formData) { "${baseURL}/api/v1/prediction/${dialogProps.chatflowid}", { method: "POST", - body: formData + headers: { + "Content-Type": "application/json" + }, + body: JSON.stringify(formD...
packages/ui/src/views/chatflows/APICodeDialog.js
26
JavaScript
0.786
bug
269
51
51
false
Refactor API request to include Content-Type header
555
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Yongtae723
API_URL = "${baseURL}/api/v1/prediction/${dialogProps.chatflowid}" headers = {"Authorization": "Bearer ${selectedApiKey?.apiKey}"} # use form data to upload files form_data = {${getConfigExamplesForPython(configData, 'formData')}} def query(form_data): response = requests.post(API_URL, headers=headers, files=form...
do we need `new URLSearchParams` ? actually i dont think we should set `"Content-Type": "application/x-www-form-urlencoded"` according to many [answers](https://stackoverflow.com/questions/62644988/using-formdata-inside-fetch-api-is-not-working) online, just let the fetch decide for you
# use form data to upload files form_data = {${getConfigExamplesForPython(configData, 'formData')}} def query(form_data): response = requests.post(API_URL, headers=headers, files=form_data) return response.json() output = query(form_data) ` } else if (codeLang === 'JavaScript') { return `/...
@@ -347,9 +356,12 @@ async function query(formData) { const response = await fetch( "${baseURL}/api/v1/prediction/${dialogProps.chatflowid}", { - headers: { Authorization: "Bearer ${selectedApiKey?.apiKey}" }, + headers: { + Authorization: "Bearer ${selectedAp...
packages/ui/src/views/chatflows/APICodeDialog.js
26
JavaScript
0.786
bug
291
51
51
false
Refactor API request to include Content-Type header
555
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Yongtae723
type: 'number', additionalParams: true, optional: true } ] this.outputs = [ { label: 'Chroma Retriever', name: 'retriever', baseClasses: this.baseClasses }, { ...
these are `parseInt`. they are different from the `topK` used in models, although they have same name. check with langchainjs code and API docs from models to see which one is decimal values and which one is integer
type: 'number', additionalParams: true, optional: true } ] this.outputs = [ { label: 'Chroma Retriever', name: 'retriever', baseClasses: this.baseClasses }, { ...
@@ -69,7 +69,7 @@ class Chroma_Existing_VectorStores implements INode { const chromaURL = nodeData.inputs?.chromaURL as string const output = nodeData.outputs?.output as string const topK = nodeData.inputs?.topK as string - const k = topK ? parseInt(topK, 10) : 4 + const k = top...
packages/components/nodes/vectorstores/Chroma_Existing/Chroma_Existing.ts
26
TypeScript
0.643
suggestion
218
48
48
false
bugfix/OpenAITopP
617
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
chungyau97
baseClasses: string[] inputs: INodeParams[] outputs: INodeOutputsValue[] constructor() { this.label = 'Vectara Upsert Document' this.name = 'vectaraExisting' this.type = 'Vectara' this.icon = 'vectara.png' this.category = 'Vector Stores' this.description ...
Thanks for the PR! We've recently added a new way to put credentials like API Key, ID etc. Can we seperate these 3 `customerID`, `corpusID` and `apiKey` into another credential file similar to [this](https://github.com/FlowiseAI/Flowise/pull/646/files#diff-4101f7761f09aeeaede04c9ba71bf2ecbf1428218bb68112ec311b1691a9...
category: string baseClasses: string[] inputs: INodeParams[] credential: INodeParams outputs: INodeOutputsValue[] constructor() { this.label = 'Vectara Upsert Document' this.name = 'vectaraExisting' this.version = 1.0 this.type = 'Vectara' this.icon = 've...
@@ -0,0 +1,132 @@ +import { INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' +import { Embeddings } from 'langchain/embeddings/base' +import { getBaseClasses } from '../../../src/utils' +import { VectaraStore, VectaraLibArgs, VectaraFilter } from 'langchain/vectorstores/vectara' +import ...
packages/components/nodes/vectorstores/Vectara_Upsert/Vectara_Upsert.ts
26
TypeScript
0.571
security
326
51
51
false
Feature/Add Vectara Vector Store
645
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
3eif
import { INodeParams, INodeCredential } from '../src/Interface' class GoogleSearchApi implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'Google Custom Search API' this.name = 'googleCus...
can we add a description like [this](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/credentials/ZepMemoryApi.credential.ts#L14) to let user know how and where to get these credentials?
import { INodeParams, INodeCredential } from '../src/Interface' class GoogleSearchApi implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'Google Custom Search API' this.name = 'googleCus...
@@ -0,0 +1,29 @@ +import { INodeParams, INodeCredential } from '../src/Interface' + +class GoogleSearchApi implements INodeCredential { + label: string + name: string + version: number + description: string + inputs: INodeParams[] + + constructor() { + this.label = 'Google Custom Search API' + ...
packages/components/credentials/GoogleSearchApi.credential.ts
13
TypeScript
0.643
security
204
30
32
false
Feature/google custom search
646
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
denchi
}, { label: 'Additional File Loaders', name: 'additionalLoaders', type: 'json', optional: true, additionalParams: true } ] } async init(nodeData: INodeData): Promise<any> { const ...
I don't think it will work. Because you need specific loader for specific file types, otherwise if let's say you have a file with extension `.ppt`, there is no loader to process the file
} ] } async init(nodeData: INodeData): Promise<any> { const textSplitter = nodeData.inputs?.textSplitter as TextSplitter const folderPath = nodeData.inputs?.folderPath as string const metadata = nodeData.inputs?.metadata const loader = new DirectoryLoader(fo...
@@ -54,14 +61,17 @@ class Folder_DocumentLoaders implements INode { const textSplitter = nodeData.inputs?.textSplitter as TextSplitter const folderPath = nodeData.inputs?.folderPath as string const metadata = nodeData.inputs?.metadata + const additionalLoaders = nodeData.inputs?.additi...
packages/components/nodes/documentloaders/Folder/Folder.ts
26
TypeScript
0.714
suggestion
186
51
51
false
Issue #731: Add additional optional input parameter for adding additional file loaders
733
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
rkeshwani
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { SqlDatabaseChain, SqlDatabaseChainInput } from 'langchain/chains/sql_db' import { getBaseClasses } from '../../../src/utils' import { DataSource } from 'typeorm' import { SqlDatabase } from 'langchain/sql_db' import { BaseLan...
for other database types apart from `sqlite`, don't we need other configuration like `port`, `host` and others? [example](https://github.com/FlowiseAI/Flowise/blob/main/packages/server/src/DataSource.ts)
const url = nodeData.inputs?.url const chain = await getSQLDBChain(databaseType, url, model) const loggerHandler = new ConsoleCallbackHandler(options.logger) if (options.socketIO && options.socketIOClientId) { const handler = new CustomChainHandler(options.socketIO, options...
@@ -81,11 +96,18 @@ class SqlDatabaseChain_Chains implements INode { } } -const getSQLDBChain = async (databaseType: 'sqlite', dbFilePath: string, llm: BaseLanguageModel) => { - const datasource = new DataSource({ - type: databaseType, - database: dbFilePath - }) +const getSQLDBChain = async...
packages/components/nodes/chains/SqlDatabaseChain/SqlDatabaseChain.ts
26
TypeScript
0.714
suggestion
204
105
45
false
Issue #740: Added postgres, mssql and mysql to Sql Database Chain
761
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
lpongetti
credential: INodeParams outputs: INodeOutputsValue[] constructor() { this.label = 'Vectara Load Existing Index' this.name = 'vectaraExistingIndex' this.version = 1.0 this.type = 'Vectara' this.icon = 'vectara.png' this.category = 'Vector Stores' this....
can we add a `description` with how to use the filter, or the link to the docs page? Something like: ``` Refer to <a target="_blank" href="https://docs.vectara.com">official guide</a> on how to use filter ```
credential: INodeParams outputs: INodeOutputsValue[] constructor() { this.label = 'Vectara Load Existing Index' this.name = 'vectaraExistingIndex' this.version = 1.0 this.type = 'Vectara' this.icon = 'vectara.png' this.category = 'Vector Stores' this....
@@ -34,7 +34,7 @@ class VectaraExisting_VectorStores implements INode { { label: 'Vectara Metadata Filter', name: 'filter', - type: 'json', + type: 'string', additionalParams: true,
packages/components/nodes/vectorstores/Vectara_Existing/Vectara_Existing.ts
26
TypeScript
0.857
question
213
51
51
false
Fix Vectara filter
762
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
3eif
label: string name: string version: number description: string type: string icon: string category: string baseClasses: string[] inputs: INodeParams[] credential: INodeParams outputs: INodeOutputsValue[] constructor() { this.label = 'Postgres Upsert Document' ...
is the credential optional here?
label: string name: string version: number description: string type: string icon: string category: string baseClasses: string[] inputs: INodeParams[] credential: INodeParams outputs: INodeOutputsValue[] constructor() { this.label = 'Postgres Upsert Document' ...
@@ -0,0 +1,212 @@ +import { ICommonObject, INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' +import { Embeddings } from 'langchain/embeddings/base' +import { Document } from 'langchain/document' +import { DataSourceOptions } from 'typeorm' +import { TypeORMVectorStore, TypeORMVectorStore...
packages/components/nodes/vectorstores/Postgres_Upsert/Postgres_Upsert.ts
26
TypeScript
0.071
security
32
51
51
false
Add Postgres vector store using pgvector
782
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
fabiovalencio
optional: true, description: 'Google Vertex AI credential. If you are using a GCP service like Cloud Run, or if you have installed default credentials on your local machine, you do not need to set this credential.' } this.inputs = [ { l...
maybe we don't have to use `additionalParams` here
optional: true, description: 'Google Vertex AI credential. If you are using a GCP service like Cloud Run, or if you have installed default credentials on your local machine, you do not need to set this credential.' } this.inputs = [ { l...
@@ -33,11 +33,35 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { description: 'Google Vertex AI credential. If you are using a GCP service like Cloud Run, or if you have installed default credentials on your local machine, you do not need to set this credential.' } ...
packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts
26
TypeScript
0.429
suggestion
50
51
51
false
Add input option for Model Name in GoogleVertexAIEmbedding
869
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Yongtae723
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> { const credentialData = await getCredentialData(nodeData.credential ?? '', options) const modelName = nodeData.inputs?.modelName as string const googleApplicationCredentialFilePath = getCredentialParam('google...
if `modelName` is undefined, is it still running fine? maybe a better way is to check: ``` if (modelName) obj.model = modelName ```
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> { const credentialData = await getCredentialData(nodeData.credential ?? '', options) const modelName = nodeData.inputs?.modelName as string const googleApplicationCredentialFilePath = getCredentialParam('googleA...
@@ -58,7 +82,9 @@ class GoogleVertexAIEmbedding_Embeddings implements INode { if (projectID) authOptions.projectId = projectID } - const obj: GoogleVertexAIEmbeddingsParams = {} + const obj: GoogleVertexAIEmbeddingsParams = { + model: modelName
packages/components/nodes/embeddings/GoogleVertexAIEmbedding/GoogleVertexAIEmbedding.ts
26
TypeScript
0.929
suggestion
134
36
34
false
Add input option for Model Name in GoogleVertexAIEmbedding
869
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Yongtae723
additionalParams: true, optional: true }, { label: 'Custom Prompt', name: 'customPrompt', type: 'string', description: 'You can provide custom prompt to the chain. This will overri...
will this return error if `ignoreTables` is undefined?
additionalParams: true, optional: true }, { label: 'Custom Prompt', name: 'customPrompt', type: 'string', description: 'You can provide custom prompt to the chain. This will overri...
@@ -105,19 +140,49 @@ class SqlDatabaseChain_Chains implements INode { const databaseType = nodeData.inputs?.database as DatabaseType const model = nodeData.inputs?.model as BaseLanguageModel const url = nodeData.inputs?.url - const customPrompt = nodeData.inputs?.customPrompt as strin...
packages/components/nodes/chains/SqlDatabaseChain/SqlDatabaseChain.ts
26
TypeScript
0.5
question
54
51
51
false
Added some options for SqlDatabaseChain
879
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
lpongetti
optional: true }, { label: 'Custom Prompt', name: 'customPrompt', type: 'string', description: 'You can provide custom prompt to the chain. This will override the existing default prompt used. See...
`ignoreTables` is an array after split, so `ignoreTables == ''` is not a valid if else check. Also why `includesTables?.split(',')` is being used instead of `ignoreTables`?
optional: true }, { label: 'Custom Prompt', name: 'customPrompt', type: 'string', description: 'You can provide custom prompt to the chain. This will override the existing default prompt used. See...
@@ -105,19 +140,49 @@ class SqlDatabaseChain_Chains implements INode { const databaseType = nodeData.inputs?.database as DatabaseType const model = nodeData.inputs?.model as BaseLanguageModel const url = nodeData.inputs?.url - const customPrompt = nodeData.inputs?.customPrompt as strin...
packages/components/nodes/chains/SqlDatabaseChain/SqlDatabaseChain.ts
26
TypeScript
0.571
question
172
51
51
false
Added some options for SqlDatabaseChain
879
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
lpongetti
{ label: 'Chroma Retriever', name: 'retriever', baseClasses: this.baseClasses }, { label: 'Chroma Vector Store', name: 'vectorStore', baseClasses: [this.type, ...getBaseClasses(Chroma)] ...
Recommend following other `Metadata Filter` standard Examples: 1. [packages/components/nodes/vectorstores/Pinecone_Existing/Pinecone_Existing.ts](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/vectorstores/Pinecone_Existing/Pinecone_Existing.ts#L111) 2. [packages/components/nodes/vectorst...
{ label: 'Chroma Retriever', name: 'retriever', baseClasses: this.baseClasses }, { label: 'Chroma Vector Store', name: 'vectorStore', baseClasses: [this.type, ...getBaseClasses(Chroma)] ...
@@ -86,13 +93,18 @@ class Chroma_Existing_VectorStores implements INode { const credentialData = await getCredentialData(nodeData.credential ?? '', options) const chromaApiKey = getCredentialParam('chromaApiKey', credentialData, nodeData) + const chromaMetadataFilter = nodeData.inputs?.chroma...
packages/components/nodes/vectorstores/Chroma/Chroma_Existing.ts
26
TypeScript
0.571
suggestion
497
51
51
false
Update Chroma_Existing.ts to add metadatafilter
880
FlowiseAI/Flowise
45,241
TypeScript
chungyau97
pooriaarab
label: string name: string version: number type: string icon: string category: string description: string baseClasses: string[] credential: INodeParams inputs: INodeParams[] constructor() { this.label = 'GooglePaLM' this.name = 'GooglePaLM' this.versi...
Recommend moving credential's description into `packages/components/credentials/GoogleMakerSuite.credential.ts` Examples: 1. [packages/components/credentials/ConfluenceApi.credential.ts](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/credentials/ConfluenceApi.credential.ts#L15) 2. [packages/com...
label: string name: string version: number type: string icon: string category: string description: string baseClasses: string[] credential: INodeParams inputs: INodeParams[] constructor() { this.label = 'GooglePaLM' this.name = 'GooglePaLM' this.versi...
@@ -0,0 +1,158 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' +import { GooglePaLM, GooglePaLMTextInput } from 'langchain/llms/googlepalm' + +class GooglePaLM_LLMs implements INode { + ...
packages/components/nodes/llms/GooglePaLM/GooglePaLM.ts
26
TypeScript
0.571
security
470
51
51
false
PaLM API LLM component
882
FlowiseAI/Flowise
45,241
TypeScript
chungyau97
mdda
optional: true, additionalParams: true, description: 'Top-p changes how the model selects tokens for output.\n' + 'Tokens are selected from most probable to least until ' + 'the sum of their probabilities equals ...
can we remove commented unused code?
optional: true, additionalParams: true, description: 'Top-p changes how the model selects tokens for output.\n' + 'Tokens are selected from most probable to least until ' + 'the sum of their probabilities equals ...
@@ -0,0 +1,140 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' +import { ChatGooglePaLM, GooglePaLMChatInput } from 'langchain/chat_models/googlepalm' + +class ChatGooglePaLM_ChatModels ...
packages/components/nodes/chatmodels/ChatGooglePaLM/ChatGooglePaLM.ts
26
TypeScript
0.143
question
36
51
51
false
PaLM API Chat and Embedding components
891
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
mdda
version: number description: string type: string icon: string category: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Upstash Redis-Backed Chat Memory' this.name = 'UpstashRedisBackedChatMemory' this.version = 1.0 this.t...
Can we put the token to credential file? Here is an example PR - https://github.com/FlowiseAI/Flowise/pull/882/files
description: string type: string icon: string category: string baseClasses: string[] credential: INodeParams inputs: INodeParams[] constructor() { this.label = 'Upstash Redis-Backed Chat Memory' this.name = 'upstashRedisBackedChatMemory' this.version = 1.0 ...
@@ -0,0 +1,131 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ICommonObject } from '../../../src' +import { BufferMemory, BufferMemoryInput } from 'langchain/memory' +import { UpstashRedisChatMessageHistory, UpstashRedisChatMessa...
packages/components/nodes/memory/UpstashRedisBackedChatMemory/UpstashRedisBackedChatMemory.ts
26
TypeScript
0.357
security
117
51
51
false
Added Upstash Redis Memory support
1,002
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ayushjain6013
class UpstashRedisBackedChatMemory_Memory implements INode { label: string name: string version: number description: string type: string icon: string category: string baseClasses: string[] inputs: INodeParams[] constructor() { this.label = 'Upstash Redis-Backed Chat Memo...
this default url is wrong, from the [docs](https://js.langchain.com/docs/modules/memory/integrations/upstash_redis) it has to be upstash url: `https://<your-url>.upstash.io`
label: string name: string version: number description: string type: string icon: string category: string baseClasses: string[] credential: INodeParams inputs: INodeParams[] constructor() { this.label = 'Upstash Redis-Backed Chat Memory' this.name = 'upstashR...
@@ -0,0 +1,131 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { ICommonObject } from '../../../src' +import { BufferMemory, BufferMemoryInput } from 'langchain/memory' +import { UpstashRedisChatMessageHistory, UpstashRedisChatMessa...
packages/components/nodes/memory/UpstashRedisBackedChatMemory/UpstashRedisBackedChatMemory.ts
26
TypeScript
0.643
bug
173
51
51
false
Added Upstash Redis Memory support
1,002
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ayushjain6013
import { INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' import { TextSplitter } from 'langchain/text_splitter' import { Document } from 'langchain/document' import { handleEscapeCharacters } from '../../../src' class PlainText_DocumentLoaders implements INode { label: string n...
can we upgrade the `this.version=2.0` for both nodes?
import { INode, INodeData, INodeOutputsValue, INodeParams } from '../../../src/Interface' import { TextSplitter } from 'langchain/text_splitter' import { Document } from 'langchain/document' import { handleEscapeCharacters } from '../../../src' class PlainText_DocumentLoaders implements INode { label: string n...
@@ -12,6 +13,7 @@ class PlainText_DocumentLoaders implements INode { category: string baseClasses: string[] inputs: INodeParams[] + outputs: INodeOutputsValue[] constructor() { this.label = 'Plain Text'
packages/components/nodes/documentloaders/PlainText/PlainText.ts
19
TypeScript
0.357
question
53
44
44
false
Text output for Text File and Plain Text components
1,029
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
jan-stanek
protected constructor() { this.type = 'Redis' this.icon = 'redis.svg' this.category = 'Vector Stores' this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever'] this.credential = { label: 'Connect Credential', name: 'credential', ...
maybe change the `label` to `Replace Index`? and we can have a description saying if selected, will delete the existing index and recreate a new one
protected constructor() { this.type = 'Redis' this.icon = 'redis.svg' this.category = 'Vector Stores' this.baseClasses = [this.type, 'VectorStoreRetriever', 'BaseRetriever'] this.credential = { label: 'Connect Credential', name: 'credential', ...
@@ -0,0 +1,215 @@ +import { + getBaseClasses, + getCredentialData, + getCredentialParam, + ICommonObject, + INodeData, + INodeOutputsValue, + INodeParams +} from '../../../src' + +import { Embeddings } from 'langchain/embeddings/base' +import { VectorStore } from 'langchain/vectorstores/base' +impo...
packages/components/nodes/vectorstores/Redis/RedisSearchBase.ts
26
TypeScript
0.571
suggestion
148
51
51
false
Feature/RedisVectorStore
1,108
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
constructor() { this.label = 'Vectara QA Chain' this.name = 'vectaraQAChain' this.version = 1.0 this.type = 'VectaraQAChain' this.icon = 'vectara.png' this.category = 'Chains' this.description = 'QA chain for Vectara' this.baseClasses = [this.type, .....
Suggest we change the default to 10.
constructor() { this.label = 'Vectara QA Chain' this.name = 'vectaraQAChain' this.version = 1.0 this.type = 'VectaraQAChain' this.icon = 'vectara.png' this.category = 'Chains' this.description = 'QA chain for Vectara' this.baseClasses = [this.type, .....
@@ -0,0 +1,147 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { VectorDBQAChain } from 'langchain/chains' +import { Document } from 'langchain/document' +import { VectaraStore } from 'langchain/vectorstores/vectara' +import fetch f...
packages/components/nodes/chains/VectaraChain/VectaraChain.ts
26
TypeScript
0.143
suggestion
36
51
51
false
Feature/Add vectara chain
1,259
FlowiseAI/Flowise
45,241
TypeScript
ofermend
HenryHengZJ
import { VectaraStore } from 'langchain/vectorstores/vectara' import fetch from 'node-fetch' class VectaraChain_Chains implements INode { label: string name: string version: number type: string icon: string category: string baseClasses: string[] description: string inputs: INodePara...
Suggest: "label: 'Vectara Store'"
import { VectaraStore } from 'langchain/vectorstores/vectara' import fetch from 'node-fetch' class VectaraChain_Chains implements INode { label: string name: string version: number type: string icon: string category: string baseClasses: string[] description: string inputs: INodePara...
@@ -0,0 +1,147 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { VectorDBQAChain } from 'langchain/chains' +import { Document } from 'langchain/document' +import { VectaraStore } from 'langchain/vectorstores/vectara' +import fetch f...
packages/components/nodes/chains/VectaraChain/VectaraChain.ts
26
TypeScript
0.071
suggestion
33
51
51
false
Feature/Add vectara chain
1,259
FlowiseAI/Flowise
45,241
TypeScript
ofermend
HenryHengZJ
] } async init(): Promise<any> { return null } async run(nodeData: INodeData, input: string): Promise<object> { const vectorStore = nodeData.inputs?.vectaraStore as VectaraStore const topK = (vectorStore as any)?.k ?? 4 const headers = await vectorStore.getJson...
Suggest make this 7 instead of 6
{ label: 'Summarizer Prompt Name', name: 'summarizerPromptName', description: 'Summarize the results fetched from Vectara. Read <a target="_blank" href="https://docs.vectara.com/docs/learn/grounded-generation/select-a-summarizer">more</a>',...
@@ -0,0 +1,147 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses } from '../../../src/utils' +import { VectorDBQAChain } from 'langchain/chains' +import { Document } from 'langchain/document' +import { VectaraStore } from 'langchain/vectorstores/vectara' +import fetch f...
packages/components/nodes/chains/VectaraChain/VectaraChain.ts
26
TypeScript
0.143
suggestion
32
51
51
false
Feature/Add vectara chain
1,259
FlowiseAI/Flowise
45,241
TypeScript
ofermend
HenryHengZJ
import { INodeParams, INodeCredential } from '../src/Interface' class ElasticSearchUserPassword implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'ElasticSearch User Password' this.name...
can we add a `description` to explain how to get Cloud ID OR what is custom server URL? Better if it has link to docs like [here](https://github.com/FlowiseAI/Flowise/blob/main/packages/components/credentials/AWSCredential.credential.ts#L16)
import { INodeParams, INodeCredential } from '../src/Interface' class ElasticSearchUserPassword implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'ElasticSearch User Password' this.name...
@@ -15,7 +15,7 @@ class ElasticSearchUserPassword implements INodeCredential { 'Refer to <a target="_blank" href="https://www.elastic.co/guide/en/kibana/current/tutorial-secure-access-to-kibana.html">official guide</a> on how to get User Password from ElasticSearch' this.inputs = [ { ...
packages/components/credentials/ElectricsearchUserPassword.credential.ts
19
TypeScript
0.643
security
241
37
37
false
Enable inserting custom URL using basic auth
1,262
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
tirongi
;(vectorStore as any).k = k return vectorStore } return vectorStore } protected prepareConnectionOptions( endPoint: string | undefined, cloudId: string | undefined, credentialData: ICommonObject, nodeData: INodeData ) { let ela...
these 2 lines are redundant as its already declared above
;(vectorStore as any).k = k return vectorStore } return vectorStore } protected prepareConnectionOptions( endPoint: string | undefined, cloudId: string | undefined, credentialData: ICommonObject, nodeData: INodeData ) { let ela...
@@ -144,15 +144,30 @@ export abstract class ElasticSearchBase { } else if (cloudId) { let username = getCredentialParam('username', credentialData, nodeData) let password = getCredentialParam('password', credentialData, nodeData) - elasticSearchClientOptions = { - ...
packages/components/nodes/vectorstores/Elasticsearch/ElasticSearchBase.ts
26
TypeScript
0.214
suggestion
57
51
51
false
Enable inserting custom URL using basic auth
1,262
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
tirongi
const result = validationResult(req) if (!result.isEmpty()) { throw new Error(`Credential ${name} not found`) } if (!req.params.name.includes('&amp;')) { if (Object.prototype.hasOwnProperty.call(this.nodesPool.componentCredentials, req.para...
for every validation, do we have to create another `const name`? can we just use the `req.params.name` so that when we remove this `notEmpty().escape()` check in future we have less work to do
if (!req.params.name.includes('&')) { if (Object.prototype.hasOwnProperty.call(this.nodesPool.componentCredentials, req.params.name)) { return res.json(this.nodesPool.componentCredentials[req.params.name]) } else { throw new Error(`Cred...
@@ -210,9 +224,14 @@ export class App { }) // Returns specific component node icon via name - this.app.get('/api/v1/node-icon/:name', (req: Request, res: Response) => { - if (Object.prototype.hasOwnProperty.call(this.nodesPool.componentNodes, req.params.name)) { - co...
packages/server/src/index.ts
26
TypeScript
0.571
security
192
51
51
false
Bugfix/xss
1,327
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
const { graph, nodeDependencies } = constructGraphs(nodes, edges) const endingNodeId = getEndingNode(nodeDependencies, graph) if (!endingNodeId) return res.status(500).send(`Ending node ${endingNodeId} not found`) const endingNodeData = nodes.find((nd) => nd.id === endi...
all these query are optional. by declaring this as `notEmpty()`, a basic API call to get chat messages without these query will fail
startDate, endDate ) return res.json(chatmessages) }) // Get internal chatmessages from chatflowid this.app.get('/api/v1/internal-chatmessage/:id', async (req: Request, res: Response) => { const chatmessages = await this.getCha...
@@ -402,58 +466,84 @@ export class App { // ---------------------------------------- // Get all chatmessages from chatflowid - this.app.get('/api/v1/chatmessage/:id', async (req: Request, res: Response) => { - const sortOrder = req.query?.order as string | undefined - co...
packages/server/src/index.ts
26
TypeScript
0.5
bug
132
51
51
false
Bugfix/xss
1,327
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
// ---------------------------------------- // Get all chatflows this.app.get('/api/v1/chatflows', async (req: Request, res: Response) => { const chatflows: IChatFlow[] = await getAllChatFlow() return res.json(chatflows) }) // Get specific chatflow via a...
Should be `Chatflow not found` right? we are getting chatflows from apikey
.getMany() if (chatflows.length >= 1) return res.status(200).send(chatflows) return res.status(404).send('Chatflow not found') } catch (err: any) { return res.status(500).send(err?.message) } }) // Get specific ...
@@ -293,14 +326,19 @@ export class App { .orderBy('cf.name', 'ASC') .getMany() if (chatflows.length >= 1) return res.status(200).send(chatflows) - return res.status(404).send('Chatflow not found') + return res.status(404).send('API...
packages/server/src/index.ts
26
TypeScript
0.429
suggestion
75
51
51
false
Bugfix/xss
1,327
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
const packagejsonPath = getPackageJsonPath() if (!packagejsonPath) return res.status(404).send('Version not found') try { const content = await fs.promises.readFile(packagejsonPath, 'utf8') const parsedContent = JSON.parse(content) ret...
The API above this `'/api/v1/vector/upsert/:id` also need to be updated
const templates: any[] = [] jsonsInDir.forEach((file, index) => { const filePath = path.join(__dirname, '..', 'marketplaces', 'tools', file) const fileData = fs.readFileSync(filePath) const fileDataObj = JSON.parse(fileData.toString()) ...
@@ -1032,7 +1181,11 @@ export class App { } ) - this.app.post('/api/v1/vector/internal-upsert/:id', async (req: Request, res: Response) => { + this.app.post('/api/v1/vector/internal-upsert/:id', param('id').notEmpty().escape(), async (req: Request, res: Response) => {
packages/server/src/index.ts
26
TypeScript
0.357
suggestion
71
51
51
false
Bugfix/xss
1,327
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
name: 'topP', type: 'number', step: 0.1, optional: true, additionalParams: true } ] } async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> { const credentialData = await getCr...
think we can standardize and use `parseFloat`
name: 'topP', type: 'number', step: 0.1, optional: true, additionalParams: true } ] } async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> { const credentialData = await getCr...
@@ -0,0 +1,108 @@ +import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' +import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' +import { BaseCache } from 'langchain/schema' +import { ChatGoogleGenerativeAI } from '@langchain/google-genai' + +class Go...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.286
suggestion
45
37
37
false
FEATURE/Google Gemini - Support for Chat Model, Credential & Embeddings
1,396
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
import { Moderation } from '../Moderation' import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' private readonly model: BaseChatModel cons...
denyString can be empty string, if there are trailing \n
import { Moderation } from '../Moderation' import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' private readonly model: BaseChatModel cons...
@@ -1,23 +1,38 @@ import { Moderation } from '../Moderation' +import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' + private readonly model...
packages/components/nodes/moderation/SimplePromptModeration/SimplePromptModerationRunner.ts
23
TypeScript
0.214
suggestion
56
39
40
false
Feature/LLM Moderation
1,439
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
HenryHengZJ
import { Moderation } from '../Moderation' import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' private readonly model: BaseChatModel cons...
can we not send the entire denyList and make one LLM call with an adjusted prompt?
import { Moderation } from '../Moderation' import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' private readonly model: BaseChatModel cons...
@@ -1,23 +1,38 @@ import { Moderation } from '../Moderation' +import { BaseChatModel } from 'langchain/chat_models/base' export class SimplePromptModerationRunner implements Moderation { private readonly denyList: string = '' private readonly moderationErrorMessage: string = '' + private readonly model...
packages/components/nodes/moderation/SimplePromptModeration/SimplePromptModerationRunner.ts
24
TypeScript
0.214
question
82
39
40
false
Feature/LLM Moderation
1,439
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
HenryHengZJ
async init(): Promise<any> { return null } async run(nodeData: INodeData, input: string): Promise<object> { const vectorStore = nodeData.inputs?.vectaraStore as VectaraStore const responseLang = (nodeData.inputs?.responseLang as string) ?? 'eng' const summarizerPromptName = ...
can we add a comment above to the docs link - https://docs.vectara.com/docs/api-reference/search-apis/reranking, as in why the hardcoded value
async init(): Promise<any> { return null } async run(nodeData: INodeData, input: string): Promise<object> { const vectorStore = nodeData.inputs?.vectaraStore as VectaraStore const responseLang = (nodeData.inputs?.responseLang as string) ?? 'eng' const summarizerPromptName = ...
@@ -247,17 +248,30 @@ class VectaraChain_Chains implements INode { lexicalInterpolationConfig: { lambda: vectaraFilter?.lambda ?? 0.025 } })) + const mmrRerankerId = 272725718 // Vectara reranker ID for MMR
packages/components/nodes/chains/VectaraChain/VectaraChain.ts
26
TypeScript
0.357
suggestion
142
51
51
false
added support for MMR
1,462
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ofermend
type: 'number', additionalParams: true, optional: true }, { label: 'Top K', name: 'topK', description: 'Number of top results to fetch. Defaults to 5', placeholder: '5', ...
maybe we can add more details like: ``` The diversity bias to use for MMR, ranging between 0.0 and 1.0. Values closer to 1.0 optimize for the most diverse results. Defaults to 0 (MMR disabled) ``` and specify `step: 0.1`
type: 'number', additionalParams: true, optional: true }, { label: 'Top K', name: 'topK', description: 'Number of top results to fetch. Defaults to 5', placeholder: '5', ...
@@ -82,16 +82,36 @@ class Vectara_VectorStores implements INode { label: 'Lambda', name: 'lambda', description: - 'Improves retrieval accuracy by adjusting the balance (from 0 to 1) between neural search and keyword-based search factors.', + ...
packages/components/nodes/vectorstores/Vectara/Vectara.ts
26
TypeScript
0.857
performance
224
51
51
false
added support for MMR
1,462
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
ofermend
label: 'Connect Credential', name: 'credential', type: 'credential', credentialNames: ['LocalAIApi'], optional: true } const modelOptions = JSON.parse(process.env.LOCALAI_CHAT_MODELS || '[]'); this.inputs = [ { ...
Thanks for the suggestion! We didn't use `options` because we didn't want to limit the selections, hence added as `string` so that user can just specify the model they have in LocalAI. Other users might face confusion as in why there is no selection available unless they read the repo carefully and realize they have...
label: 'Connect Credential', name: 'credential', type: 'credential', credentialNames: ['localAIApi'], optional: true } this.inputs = [ { label: 'Cache', name: 'cache', type: 'BaseCache...
@@ -41,8 +52,10 @@ class ChatLocalAI_ChatModels implements INode { { label: 'Model Name', name: 'modelName', - type: 'string', - placeholder: 'gpt4all-lora-quantized.bin' + type: 'options',
packages/components/nodes/chatmodels/ChatLocalAI/ChatLocalAI.ts
26
TypeScript
0.643
suggestion
546
51
51
false
FEATURE: LocalAI Credential, Optional LocalAI Auth, Model list env var
1,495
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
kkacsh321
{ label: 'Temperature', name: 'temperature', type: 'number', step: 0.1, default: 0.9, optional: true }, { label: 'Max Output Tokens', name: 'maxOutputTokens...
Can we change the label to be more intuitive ? and add a description as well : _'Decode using top-k sampling: consider the set of top_k most probable tokens. Must be positive'_ Also see:: https://github.com/FlowiseAI/Flowise/pull/1523#discussion_r1452944718
{ label: 'Temperature', name: 'temperature', type: 'number', step: 0.1, default: 0.9, optional: true }, { label: 'Max Output Tokens', name: 'maxOutputTokens...
@@ -74,6 +76,72 @@ class GoogleGenerativeAI_ChatModels implements INode { step: 0.1, optional: true, additionalParams: true + }, + { + label: 'topK',
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.5
question
260
51
51
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
step: 1, optional: true, additionalParams: true }, { label: 'Top Probability', name: 'topP', type: 'number', step: 0.1, optional: true, additionalParams...
https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/configure-safety-attributes#safety_attribute_definitions
step: 1, optional: true, additionalParams: true }, { label: 'Top Probability', name: 'topP', type: 'number', step: 0.1, optional: true, additionalParams...
@@ -74,6 +76,72 @@ class GoogleGenerativeAI_ChatModels implements INode { step: 0.1, optional: true, additionalParams: true + }, + { + label: 'topK', + name: 'topK', + type: 'number', + s...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.357
suggestion
121
51
51
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
{ label: 'Dangerous', name: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT }, { label: 'Harassment', name: HarmCategory.HARM_CATEGORY_HARASSMENT }...
https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/configure-safety-attributes#safety_setting_thresholds
options: [ { label: 'Dangerous', name: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT }, { label: 'Harassment', name: HarmCategory.HARM_CATEGORY_HARAS...
@@ -74,6 +76,72 @@ class GoogleGenerativeAI_ChatModels implements INode { step: 0.1, optional: true, additionalParams: true + }, + { + label: 'topK', + name: 'topK', + type: 'number', + s...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.357
suggestion
118
51
51
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
'Refer to <a target="_blank" href="https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/configure-safety-attributes#gemini-TASK-samples-go">official guide</a> on how to use Harm Block Threshold', options: [ { label: 'Low and Abo...
default: BLOCK_MEDIUM_AND_ABOVE
description: 'Refer to <a target="_blank" href="https://cloud.google.com/vertex-ai/docs/generative-ai/multimodal/configure-safety-attributes#safety_setting_thresholds">official guide</a> on how to use Harm Block Threshold', options: [ { ...
@@ -74,6 +76,72 @@ class GoogleGenerativeAI_ChatModels implements INode { step: 0.1, optional: true, additionalParams: true + }, + { + label: 'topK', + name: 'topK', + type: 'number', + s...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.071
suggestion
31
51
51
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
if (safetySettings.length > 0) model.safetySettings = safetySettings return model } } const categoryInput = (categoryInput: string): HarmCategory => { let categoryOutput: HarmCategory switch (categoryInput) { case HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: categoryOu...
switch statement that is somewhat redundant because each case simply assigns the same value that was input to categoryOutput. ```typescript const categoryInput = (input: string): HarmCategory => { return Object.values(HarmCategory).includes(input as any) ? input as HarmCategory : HarmCategory.HARM_CATEGORY_UNS...
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { convertMultiOptionsToStringArray, getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' import { BaseCache } from 'langchain/schema' import { ChatGoogleGenerativeAI, GoogleGenerativeAIChatInput } f...
@@ -98,10 +169,67 @@ class GoogleGenerativeAI_ChatModels implements INode { const model = new ChatGoogleGenerativeAI(obj) if (topP) model.topP = parseFloat(topP) + if (topK) model.topP = parseFloat(topK) if (cache) model.cache = cache if (temperature) model.temperature = par...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
1
suggestion
337
50
195
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
categoryOutput = HarmCategory.HARM_CATEGORY_UNSPECIFIED } return categoryOutput } const thresholdInput = (thresholdInput: string): HarmBlockThreshold => { let thresholdOutput: HarmBlockThreshold switch (thresholdInput) { case HarmBlockThreshold.BLOCK_LOW_AND_ABOVE: thres...
same comment as categoryOutput
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { convertMultiOptionsToStringArray, getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' import { BaseCache } from 'langchain/schema' import { ChatGoogleGenerativeAI, GoogleGenerativeAIChatInput } f...
@@ -98,10 +169,67 @@ class GoogleGenerativeAI_ChatModels implements INode { const model = new ChatGoogleGenerativeAI(obj) if (topP) model.topP = parseFloat(topP) + if (topK) model.topP = parseFloat(topK) if (cache) model.cache = cache if (temperature) model.temperature = par...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.071
suggestion
30
28
195
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
message: m.content as string, type: 'userMessage' }) } else if (m._getType() === 'ai') { formatmessages.push({ message: m.content as string, type: 'apiMessage' }) } else if (m._getType() === 'system') { ...
`if` might be redundant due to the try / catch inside
message: m.content as string, type: 'userMessage' }) } else if (m._getType() === 'ai') { formatmessages.push({ message: m.content as string, type: 'apiMessage' }) } else if (m._getType() === 'system') { ...
@@ -673,3 +673,20 @@ export const convertBaseMessagetoIMessage = (messages: BaseMessage[]): IMessage[ } return formatmessages } + +/** + * Convert MultiOptions String to String Array + * @param {string} inputString + * @returns {string[]} + */ +export const convertMultiOptionsToStringArray = (inputString: st...
packages/components/src/utils.ts
26
TypeScript
0.357
suggestion
53
35
33
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
type: 'number', step: 0.1, default: 0.9, optional: true }, { label: 'Max Output Tokens', name: 'maxOutputTokens', type: 'number', step: 1, optional: tru...
step should be 1. **from the documentation** _Top-K changes how the model selects tokens for output. A top-K of 1 means the next selected token is the most probable among all tokens in the model's vocabulary (also called greedy decoding), while a top-K of 3 means that the next token is selected from among the thre...
type: 'number', step: 0.1, default: 0.9, optional: true }, { label: 'Max Output Tokens', name: 'maxOutputTokens', type: 'number', step: 1, optional: tru...
@@ -74,6 +76,72 @@ class GoogleGenerativeAI_ChatModels implements INode { step: 0.1, optional: true, additionalParams: true + }, + { + label: 'topK', + name: 'topK', + type: 'number', + s...
packages/components/nodes/chatmodels/ChatGoogleGenerativeAI/ChatGoogleGenerativeAI.ts
26
TypeScript
0.5
suggestion
747
51
51
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
message: m.content as string, type: 'userMessage' }) } else if (m._getType() === 'ai') { formatmessages.push({ message: m.content as string, type: 'apiMessage' }) } else if (m._getType() === 'system') { ...
oops, I meant the other way around. this would enable us to catch all misinformed JSON as well, in addition to null/undefined/empty... try { ArrayString = JSON.parse(....) }catch(Error e) { ArrayString = [] }
message: m.content as string, type: 'userMessage' }) } else if (m._getType() === 'ai') { formatmessages.push({ message: m.content as string, type: 'apiMessage' }) } else if (m._getType() === 'system') { ...
@@ -673,3 +673,15 @@ export const convertBaseMessagetoIMessage = (messages: BaseMessage[]): IMessage[ } return formatmessages } + +/** + * Convert MultiOptions String to String Array + * @param {string} inputString + * @returns {string[]} + */ +export const convertMultiOptionsToStringArray = (inputString: st...
packages/components/src/utils.ts
26
TypeScript
0.571
suggestion
215
30
33
false
add TopK and safetySettings into Google Gemini
1,523
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
chungyau97
import { INodeParams, INodeCredential } from '../src/Interface' class PineconeApi implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'Pinecone API' this.name = 'pineconeApi' this...
I dont think we want to remove this `environment`. As some are still using it. A better way is to create a separate credential file specifically for the serverless
import { INodeParams, INodeCredential } from '../src/Interface' class PineconeApi implements INodeCredential { label: string name: string version: number description: string inputs: INodeParams[] constructor() { this.label = 'Pinecone API' this.name = 'pineconeApi' this...
@@ -16,11 +16,6 @@ class PineconeApi implements INodeCredential { label: 'Pinecone Api Key', name: 'pineconeApiKey', type: 'password'
packages/components/credentials/PineconeApi.credential.ts
18
TypeScript
0.571
security
163
30
25
false
support pinecone serverless indexes
1,561
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
niztal
try { let docs = [] const loader = new CheerioWebBaseLoader(url, params) if (textSplitter) { docs = await loader.loadAndSplit(textSplitter) } else { docs = await loader.load() } ...
Can we use the logger instead of console for DEBUG ?
async function cheerioLoader(url: string): Promise<any> { try { let docs = [] const loader = new CheerioWebBaseLoader(url, params) if (textSplitter) { docs = await loader.loadAndSplit(textSplitter) } else { ...
@@ -127,13 +128,22 @@ class Cheerio_DocumentLoaders implements INode { if (!limit) limit = '10' else if (parseInt(limit) < 0) throw new Error('Limit cannot be less than 0') const pages: string[] = - relativeLinksMethod === 'webCrawl' ? await webCrawl(url, parseInt(l...
packages/components/nodes/documentloaders/Cheerio/Cheerio.ts
26
TypeScript
0.429
bug
52
51
51
false
FEATURE: Select which links should be used in web scraper nodes (cheerio, puppeteer, and playwright)
1,566
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
0xi4o
let params: WebBaseLoaderParams = {} if (selector) { parse(selector) // comes with cheerio - will throw error if invalid params['selector'] = selector } async function cheerioLoader(url: string): Promise<any> { try { let docs = [] ...
Minor Readability:: avoid multiple calls to parseInt
let params: WebBaseLoaderParams = {} if (selector) { parse(selector) // comes with cheerio - will throw error if invalid params['selector'] = selector } async function cheerioLoader(url: string): Promise<any> { try { let docs = [] ...
@@ -127,13 +128,22 @@ class Cheerio_DocumentLoaders implements INode { if (!limit) limit = '10' else if (parseInt(limit) < 0) throw new Error('Limit cannot be less than 0')
packages/components/nodes/documentloaders/Cheerio/Cheerio.ts
26
TypeScript
0.286
nitpick
52
51
51
false
FEATURE: Select which links should be used in web scraper nodes (cheerio, puppeteer, and playwright)
1,566
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
0xi4o
</Box> <Box sx={{ width: 'auto', flexGrow: 1 }}> <IconButton sx={{ height: 30, width: 30 }} size='small' ...
dialogProps.cancelButtonName ?
name={`link_${index}`} /> </Box> <Box sx={{ width: 'auto', flexGrow: 1 }}> <IconButton ...
@@ -0,0 +1,184 @@ +import PropTypes from 'prop-types' +import { createPortal } from 'react-dom' +import { useDispatch } from 'react-redux' +import { useState, useEffect } from 'react' + +import { + Box, + Button, + Dialog, + DialogActions, + DialogContent, + DialogTitle, + FormControl, + IconBut...
packages/ui/src/ui-component/dialog/ManageScrapedLinksDialog.js
26
JavaScript
0.071
question
30
45
45
false
FEATURE: Select which links should be used in web scraper nodes (cheerio, puppeteer, and playwright)
1,566
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
0xi4o
warning: `Retrieving all links might take long time, and all links will be upserted again if the flow's state changed (eg: different URL, chunk size, etc)` }, { label: 'Selector (CSS)', name: 'selector', type: 'string', ...
can we set the default value in the inputs to 10 ?
'Only used when "Get Relative Links Method" is selected. Set 0 to retrieve all relative links, default limit is 10.', warning: `Retrieving all links might take long time, and all links will be upserted again if the flow's state changed (eg: different URL, chunk size, etc)` ...
@@ -90,6 +90,7 @@ class Cheerio_DocumentLoaders implements INode { const textSplitter = nodeData.inputs?.textSplitter as TextSplitter const metadata = nodeData.inputs?.metadata const relativeLinksMethod = nodeData.inputs?.relativeLinksMethod as string + const selectedLinks = nodeData.i...
packages/components/nodes/documentloaders/Cheerio/Cheerio.ts
26
TypeScript
0.214
question
50
51
51
false
FEATURE: Select which links should be used in web scraper nodes (cheerio, puppeteer, and playwright)
1,566
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
0xi4o
try { const nodeInstanceFilePath = componentNodes[reactFlowNode.data.name].filePath as string const nodeModule = await import(nodeInstanceFilePath) const newNodeInstance = new nodeModule.nodeClass() let flowNodeData = cloneDeep(reactFlowNode.data) if ...
@0xi4o actually ignore me, my bad i was testing on diff branch. The addition of this make it not working. I think its fine as it is. If you can just remove this
try { const nodeInstanceFilePath = componentNodes[reactFlowNode.data.name].filePath as string const nodeModule = await import(nodeInstanceFilePath) const newNodeInstance = new nodeModule.nodeClass() let flowNodeData = cloneDeep(reactFlowNode.data) if...
@@ -328,6 +328,14 @@ export const buildLangchain = async ( logger.debug(`[server]: Finished upserting ${reactFlowNode.data.label} (${reactFlowNode.data.id})`) break } else { + // skip initializing web scraper nodes during prediction since they would have alr...
packages/server/src/utils/index.ts
26
TypeScript
0.429
refactor
161
51
51
false
FEATURE: Select which links should be used in web scraper nodes (cheerio, puppeteer, and playwright)
1,566
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
0xi4o
this.chatflowPool.activeChatflows[chatflowid].overrideConfig, incomingInput.overrideConfig ) && !isStartNodeDependOnInput(this.chatflowPool.activeChatflows[chatflowid].startingNodes, nodes) ) } ...
To solve the double run issue, we can move the isEndingNode logic to the top of the init function and then reuse the variable down here: ``` const isEndingNode = nodeData?.outputs?.output === 'EndingNode' if (isEndingNode && !options.isRun) return ```
* - Node Data already exists in pool * - Still in sync (i.e the flow has not been modified since) * - Existing overrideConfig and new overrideConfig are the same * - Flow doesn't start with/contain nodes that depend on incomingInput.question * TODO: conve...
@@ -1652,20 +1656,20 @@ export class App { const endingNodeData = endingNode.data if (!endingNodeData) return res.status(500).send(`Ending node ${endingNode.id} data not found`) - if (endingNodeData && endingNodeData.category !== 'Chains' && endingNodeData....
packages/server/src/index.ts
26
TypeScript
0.857
nitpick
261
51
51
false
Allows CustomFunction to be set as an Ending Node.
1,591
FlowiseAI/Flowise
45,241
TypeScript
Jaredude
mokeyish
if (typeof value === 'string') { value = handleEscapeCharacters(value, true) } sandbox[`$${item}`] = value } } const builtinDeps = process.env.TOOL_FUNCTION_BUILTIN_DEP ? defaultAllowBuiltInDep.concat(process.en...
To solve the double run issue, we can move the isEndingNode logic to the top of the init function and then reuse the variable down here: ``` const isEndingNode = nodeData?.outputs?.output === 'EndingNode' if (isEndingNode && !options.isRun) return ```
if (Object.keys(inputVars).length) { for (const item in inputVars) { let value = inputVars[item] if (typeof value === 'string') { value = handleEscapeCharacters(value, true) } sandbox[`$${item}`] = value ...
@@ -123,14 +128,20 @@ class CustomFunction_Utilities implements INode { const vm = new NodeVM(nodeVMOptions) try { const response = await vm.run(`module.exports = async function() {${javascriptFunction}}()`, __dirname) - if (typeof response === 'string') { + const is...
packages/components/nodes/utilities/CustomFunction/CustomFunction.ts
26
TypeScript
0.857
nitpick
261
43
45
false
Allows CustomFunction to be set as an Ending Node.
1,591
FlowiseAI/Flowise
45,241
TypeScript
Jaredude
mokeyish
name: 'curie' }, { label: 'text-curie-001', name: 'text-curie-001' }, { label: 'davinci', name: 'davinci' ...
these are already available on `Azure ChatOpenAI` no?
name: 'curie' }, { label: 'text-curie-001', name: 'text-curie-001' }, { label: 'davinci', name: 'davinci' ...
@@ -89,6 +89,14 @@ class AzureOpenAI_LLMs implements INode { { label: 'gpt-35-turbo', name: 'gpt-35-turbo' + },
packages/components/nodes/llms/Azure OpenAI/AzureOpenAI.ts
26
TypeScript
0.357
question
53
51
51
false
Added support for gpt-4 and gpt-4-32k models
1,599
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
dkindlund
async stopApp() { try { const removePromises: any[] = [] removePromises.push(this.telemetry.flush()) await Promise.all(removePromises) } catch (e) { logger.error(`❌[server]: Flowise Server shut down error: ${e}`) } } } let serverApp: App |...
the function looks the same as the one above, is it possible to refractor into a single function?
let serverApp: App | undefined export async function getAllChatFlow(): Promise<IChatFlow[]> { return await getDataSource().getRepository(ChatFlow).find() } export async function start(): Promise<void> { serverApp = new App() const port = parseInt(process.env.PORT || '', 10) || 3000 const server = ht...
@@ -1863,7 +1885,14 @@ export async function start(): Promise<void> { const io = new Server(server, { cors: { - origin: '*' + origin: function (origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) {
packages/server/src/index.ts
26
TypeScript
0.214
question
97
48
29
false
Implementing CORS and CSP headers from config
1,608
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
automaton82
}) break default: homePath = process.env.DATABASE_PATH ?? flowisePath appDataSource = new DataSource({ type: 'sqlite', database: path.resolve(homePath, 'database.sqlite'), synchronize: false, migratio...
See comment above. getDatabaseSSLFromEnv should return ``` { ssl: { self signed ssl attributes } } ``` and below should return { ssl: true } the final return of {} will return an empty object that will spread to nothing and allow pg node to continue to use PGSQLMODE as the lib is designed. ...
}) break default: homePath = process.env.DATABASE_PATH ?? flowisePath appDataSource = new DataSource({ type: 'sqlite', database: path.resolve(homePath, 'database.sqlite'), synchronize: false, migratio...
@@ -89,3 +79,15 @@ export function getDataSource(): DataSource { } return appDataSource } + +const getDatabaseSSLFromEnv = () => { + if (process.env.DATABASE_SSL_KEY_BASE64) { + return {
packages/server/src/DataSource.ts
26
TypeScript
0.857
suggestion
489
35
35
false
mysql-ssl
1,634
FlowiseAI/Flowise
45,241
TypeScript
Jaredude
niztal
default: homePath = process.env.DATABASE_PATH ?? flowisePath appDataSource = new DataSource({ type: 'sqlite', database: path.resolve(homePath, 'database.sqlite'), synchronize: false, migrationsRun: false, ent...
@Jaredude have you tested it? I think it should be like this: `Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base64').toString('utf-8')`
default: homePath = process.env.DATABASE_PATH ?? flowisePath appDataSource = new DataSource({ type: 'sqlite', database: path.resolve(homePath, 'database.sqlite'), synchronize: false, migrationsRun: false, ent...
@@ -89,3 +79,15 @@ export function getDataSource(): DataSource { } return appDataSource } + +const getDatabaseSSLFromEnv = () => { + if (process.env.DATABASE_SSL_KEY_BASE64) { + return { + rejectUnauthorized: false, + ca: Buffer.from(process.env.DATABASE_SSL_KEY_BASE64, 'base6...
packages/server/src/DataSource.ts
26
TypeScript
0.571
suggestion
151
33
33
false
mysql-ssl
1,634
FlowiseAI/Flowise
45,241
TypeScript
niztal
niztal
} const similaritySearchVectorWithScore = async ( query: number[], k: number, tableName: string, postgresConnectionOptions: ICommonObject, filter?: any ) => { const embeddingString = `[${query.join(',')}]` const _filter = filter ?? '{}' const queryString = ` SELECT *, embedding...
Can we use the ... additionalConfig? Instead of just ssl
) => { const embeddingString = `[${query.join(',')}]` const _filter = filter ?? '{}' const queryString = ` SELECT *, embedding <=> $1 as "_distance" FROM ${tableName} WHERE metadata @> $2 ORDER BY "_distance" ASC LIMIT $3;` const pool = new Pool(postgresConnecti...
@@ -253,7 +253,8 @@ const similaritySearchVectorWithScore = async ( port: postgresConnectionOptions.port, user: postgresConnectionOptions.username, password: postgresConnectionOptions.password, - database: postgresConnectionOptions.database + database: postgresConnectionOptions....
packages/components/nodes/vectorstores/Postgres/Postgres.ts
26
TypeScript
0.286
question
56
48
32
false
Fixing Postgres so that similaritySearchVectorWithScore actually connects via TLS/SSL when specified
1,677
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
dkindlund
for (const checkPath of checkPaths) { if (fs.existsSync(checkPath)) { return checkPath } } return '' } const packagejsonPath = getPackageJsonPath() if (!packagejsonPath) r...
Check if `relativeLinksMethod` is empty; if so, return an error prompting the user to select a method. If not in line 1153: will keep call `xmlScrape`
for (const checkPath of checkPaths) { if (fs.existsSync(checkPath)) { return checkPath } } return '' } const packagejsonPath = getPackageJsonPath() if (!packagejsonPath) r...
@@ -1148,8 +1148,9 @@ export class App { this.app.get('/api/v1/fetch-links', async (req: Request, res: Response) => { const url = decodeURIComponent(req.query.url as string) const relativeLinksMethod = req.query.relativeLinksMethod as string
packages/server/src/index.ts
26
TypeScript
0.714
suggestion
154
51
51
false
Fix: relative links method and limit not applying to manage links
1,687
FlowiseAI/Flowise
45,241
TypeScript
chungyau97
0xi4o
if (!packagejsonPath) return res.status(404).send('Version not found') try { const content = await fs.promises.readFile(packagejsonPath, 'utf8') const parsedContent = JSON.parse(content) return res.json({ version: parsedContent.version }) ...
Add console `Finish ${relativeLinksMethod}`
if (!packagejsonPath) return res.status(404).send('Version not found') try { const content = await fs.promises.readFile(packagejsonPath, 'utf8') const parsedContent = JSON.parse(content) return res.json({ version: parsedContent.version }) ...
@@ -1148,8 +1148,9 @@ export class App { this.app.get('/api/v1/fetch-links', async (req: Request, res: Response) => { const url = decodeURIComponent(req.query.url as string) const relativeLinksMethod = req.query.relativeLinksMethod as string + const limit = parseInt(req.que...
packages/server/src/index.ts
26
TypeScript
0.214
suggestion
43
51
51
false
Fix: relative links method and limit not applying to manage links
1,687
FlowiseAI/Flowise
45,241
TypeScript
chungyau97
0xi4o
type: { S: string } text: { S: string } role?: { S: string } } } class BufferMemoryExtended extends FlowiseMemory implements MemoryMethods { tableName = '' sessionId = '' dynamodbClient: DynamoDBClient dynamoKey = '...
I'm not sure why its coming from `chatHistory`, I think a better way is to pass through the initilization of `BufferMemoryExtended` at line 121?
partitionKey: string dynamoKey: Record<string, AttributeValue> } interface DynamoDBSerializedChatMessage { M: { type: { S: string } text: { S: string } role?: { S: string } } } class BufferMemoryExtended extends Flowis...
@@ -142,18 +142,26 @@ interface DynamoDBSerializedChatMessage { } class BufferMemoryExtended extends FlowiseMemory implements MemoryMethods { + tableName = '' sessionId = '' dynamodbClient: DynamoDBClient + dynamoKey = '' + partitionKey = '' constructor(fields: BufferMemoryInput & BufferMe...
packages/components/nodes/memory/DynamoDb/DynamoDb.ts
26
TypeScript
0.714
question
144
51
51
false
DynamoDB Chat Memory fix
1,697
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Jaredude
endDate?: string ): Promise<ChatMessage[]> { let fromDate if (startDate) fromDate = new Date(startDate) let toDate if (endDate) toDate = new Date(endDate) return await this.AppDataSource.getRepository(ChatMessage).find({ where: { chatflow...
couldn't remember why we have the `isNull()` in the first place, but would you be able to check from the View Message dialog on UI, that it still works as expected
sessionId?: string, startDate?: string, endDate?: string, messageId?: string ): Promise<ChatMessage[]> { const setDateToStartOrEndOfDay = (dateTimeStr: string, setHours: 'start' | 'end') => { const date = new Date(dateTimeStr) if (isNaN(date.getTime())...
@@ -1453,7 +1453,7 @@ export class App { chatflowid, chatType, chatId, - memoryType: memoryType ?? (chatId ? IsNull() : undefined), + memoryType: memoryType ?? undefined,
packages/server/src/index.ts
26
TypeScript
0.714
suggestion
163
51
51
false
fixes bug where querying by chatId results in no records
1,716
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
Jaredude
import { IMessage, INode, INodeData, INodeParams, MemoryMethods, MessageType } from '../../../src/Interface' import { convertBaseMessagetoIMessage, getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' import { ZepMemory, ZepMemoryInput } from '@getzep/zep-cloud/langchain' import { ICommonO...
instead of creating a new node, what do u think if we just add a new `options` field to the `ZepMemory` that allow users to select OpenSource or Cloud, then according to selection, use the respective library for init
import { IMessage, INode, INodeData, INodeParams, MemoryMethods, MessageType } from '../../../src/Interface' import { convertBaseMessagetoIMessage, getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' import { ZepMemory, ZepMemoryInput } from '@getzep/zep-cloud/langchain' import { ICommonO...
@@ -0,0 +1,181 @@ +import { IMessage, INode, INodeData, INodeParams, MemoryMethods, MessageType } from '../../../src/Interface'
packages/components/nodes/memory/ZepMemoryCloud/ZepMemoryCloud.ts
1
TypeScript
0.786
suggestion
216
26
26
false
Zep cloud setup
1,760
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
paul-paliychuk
import { flatten } from 'lodash' import { IDocument, ZepClient } from '@getzep/zep-cloud' import { IZepConfig, ZepVectorStore } from '@getzep/zep-cloud/langchain' import { Embeddings } from 'langchain/embeddings/base' import { Document } from 'langchain/document' import { ICommonObject, INode, INodeData, INodeOutputsVa...
the `name` must be in camelcase `zepCloud`, otherwise the upsert button will not be shown: <img width="919" alt="image" src="https://github.com/FlowiseAI/Flowise/assets/26460777/302532c6-679d-4e5b-9be7-cbab66cc055a">
import { flatten } from 'lodash' import { IDocument, ZepClient } from '@getzep/zep-cloud' import { IZepConfig, ZepVectorStore } from '@getzep/zep-cloud/langchain' import { Embeddings } from 'langchain/embeddings/base' import { Document } from 'langchain/document' import { ICommonObject, INode, INodeData, INodeOutputsVa...
@@ -0,0 +1,231 @@ +import { flatten } from 'lodash' +import { IDocument, ZepClient } from '@getzep/zep-cloud' +import { IZepConfig, ZepVectorStore } from '@getzep/zep-cloud/langchain' +import { Embeddings } from 'langchain/embeddings/base' +import { Document } from 'langchain/document' +import { ICommonObject, INode, I...
packages/components/nodes/vectorstores/ZepCloud/ZepCloud.ts
26
TypeScript
0.571
style
220
51
51
false
Zep cloud setup
1,760
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
paul-paliychuk
import { flatten } from 'lodash' import { ZepVectorStore, IZepConfig } from '@langchain/community/vectorstores/zep' import { Embeddings } from '@langchain/core/embeddings' import { Document } from '@langchain/core/documents' import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' impo...
prefer to revert all the `name` back to the initial ones, because changing exsiting will likely cause the existing flow not working, and also they need to be `camelCase`
import { flatten } from 'lodash' import { ZepVectorStore, IZepConfig } from '@langchain/community/vectorstores/zep' import { Embeddings } from '@langchain/core/embeddings' import { Document } from '@langchain/core/documents' import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils' impo...
@@ -20,8 +20,8 @@ class Zep_Upsert_VectorStores implements INode { outputs: INodeOutputsValue[] constructor() { - this.label = 'Zep Upsert Document' - this.name = 'zepUpsert' + this.label = 'Zep Upsert Document - Open Source' + this.name = 'Zep Upsert - Open Source'
packages/components/nodes/vectorstores/Zep/Zep_Upsert.ts
24
TypeScript
0.571
suggestion
169
49
49
false
Zep cloud setup
1,760
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
paul-paliychuk
}) } catch (e: any) { return res.json({ status: 'ERROR', repos: [] }) } }) // ---------------------------------------- // Prediction // ---------------------------------------- // Send input message and get prediction resu...
what if `parsedConfig` doesn't have the property `allowedOrigins`, will it fails? shouldn't we do something like `parsedConfig.allowedOrigins?.length && parsedConfig.allowedOrigins[0] !== ''` ?
}) } catch (e: any) { return res.json({ status: 'ERROR', repos: [] }) } }) // ---------------------------------------- // Prediction // ---------------------------------------- // Send input message and get prediction resu...
@@ -1319,7 +1319,32 @@ export class App { upload.array('files'), (req: Request, res: Response, next: NextFunction) => getRateLimiter(req, res, next), async (req: Request, res: Response) => { - await this.buildChatflow(req, res, socketIO) + const chatf...
packages/server/src/index.ts
26
TypeScript
0.571
bug
194
51
51
false
Feature: Allowed domains for chatflows
1,765
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
0xi4o
// ---------------------------------------- // Prediction // ---------------------------------------- // Send input message and get prediction result (External) this.app.post( '/api/v1/prediction/:id', upload.array('files'), (req: Request, res...
if `domain` is invalid, you will get error `Invalid URL` and the apps shut down due to unhandled rejection
// ---------------------------------------- // Prediction // ---------------------------------------- // Send input message and get prediction result (External) this.app.post( '/api/v1/prediction/:id', upload.array('files'), (req: Request, res...
@@ -1319,7 +1319,32 @@ export class App { upload.array('files'), (req: Request, res: Response, next: NextFunction) => getRateLimiter(req, res, next), async (req: Request, res: Response) => { - await this.buildChatflow(req, res, socketIO) + const chatf...
packages/server/src/index.ts
26
TypeScript
0.643
suggestion
106
51
51
false
Feature: Allowed domains for chatflows
1,765
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
0xi4o
const variableFullPath = returnVal.substring(variableStartIdx, variableEndIdx) /** * Apply string transformation to convert special chars: * FROM: hello i am ben\n\n\thow are you? * TO: hello i am benFLOWISE_NEWLINEFLOWISE_NEWLINEFLOWISE_TABhow are you? ...
should we check if the previous `data.instance` are present in the `variableFullPathParts` ?
const variableFullPath = returnVal.substring(variableStartIdx, variableEndIdx) /** * Apply string transformation to convert special chars: * FROM: hello i am ben\n\n\thow are you? * TO: hello i am benFLOWISE_NEWLINEFLOWISE_NEWLINEFLOWISE_TABhow are you? ...
@@ -528,11 +528,45 @@ export const getVariableValue = ( variableDict[`{{${variableFullPath}}}`] = handleEscapeCharacters(convertChatHistoryToText(chatHistory), false) } - // Split by first occurrence of '.' to get just nodeId - const [variableNodeId, _] = variableFu...
packages/server/src/utils/index.ts
26
TypeScript
0.429
question
92
51
51
false
Feature: Add support for accessing NodeData via json path
1,820
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
mokeyish
import { AzureOpenAIInput, ChatOpenAI as LangchainChatOpenAI, OpenAIChatInput } from '@langchain/openai' import { BaseCache } from '@langchain/core/caches' import { BaseLLMParams } from '@langchain/core/language_models/llms' import { ICommonObject, IMultiModalOption, INode, INodeData, INodeParams } from '../../../src/I...
I'm getting access to Azure Vision model, in the meantime we can get rid of this first, and create another PR once we have access
import { AzureOpenAIInput, ChatOpenAI, OpenAIChatInput } from '@langchain/openai' import { BaseCache } from '@langchain/core/caches' import { BaseLLMParams } from '@langchain/core/language_models/llms' import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface' import { getBaseClasses, getCred...
@@ -1,8 +1,9 @@ -import { AzureOpenAIInput, ChatOpenAI, OpenAIChatInput } from '@langchain/openai' +import { AzureOpenAIInput, ChatOpenAI as LangchainChatOpenAI, OpenAIChatInput } from '@langchain/openai'
packages/components/nodes/chatmodels/AzureChatOpenAI/AzureChatOpenAI.ts
1
TypeScript
0.357
suggestion
129
26
26
false
Claude 3 - Adding Support for Image Uploads / Multimodal Inputs
1,898
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
this.type = 'ChatAnthropic' this.icon = 'Anthropic.svg' this.category = 'Chat Models' this.description = 'Wrapper around ChatAnthropic LLM specific for LlamaIndex' this.baseClasses = [this.type, 'BaseChatModel_LlamaIndex', ...getBaseClasses(Anthropic)] this.tags = ['Llama...
The model names are different in the LLamaIndex and Langchain Nodes.
this.type = 'ChatAnthropic' this.icon = 'Anthropic.svg' this.category = 'Chat Models' this.description = 'Wrapper around ChatAnthropic LLM specific for LlamaIndex' this.baseClasses = [this.type, 'BaseChatModel_LlamaIndex', ...getBaseClasses(Anthropic)] this.tags = ['Llama...
@@ -39,22 +39,22 @@ class ChatAnthropic_LlamaIndex_ChatModels implements INode { options: [ { label: 'claude-3-opus', - name: 'claude-3-opus-20240229', + name: 'claude-3-opus', descripti...
packages/components/nodes/chatmodels/ChatAnthropic/ChatAnthropic_LlamaIndex.ts
26
TypeScript
0.214
suggestion
69
51
51
false
Chore/Upgrade llamaindex
2,017
FlowiseAI/Flowise
45,241
TypeScript
vinodkiran
HenryHengZJ
description: 'Embedding Dimensions: 384' }, { label: 'embed-english-v2.0', name: 'embed-english-v2.0', description: 'Embedding Dimensions: 4096' }, ...
can we add the docs link in the description?
description: 'Embedding Dimensions: 384' }, { label: 'embed-english-v2.0', name: 'embed-english-v2.0', description: 'Embedding Dimensions: 4096' }, ...
@@ -35,27 +35,81 @@ class CohereEmbedding_Embeddings implements INode { name: 'modelName', type: 'options', options: [ + { + label: 'embed-english-v3.0', + name: 'embed-english-v3.0', + ...
packages/components/nodes/embeddings/CohereEmbedding/CohereEmbedding.ts
26
TypeScript
0.071
question
44
51
51
false
Chore/cohere embed models
2,035
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
vinodkiran
appServer.chatflowPool.activeChatflows[chatflowid].inSync && appServer.chatflowPool.activeChatflows[chatflowid].endingNodeData && isSameOverrideConfig( isInternal, appServer.chatflowPool.activeChatflows[chatflowid].overrideConfig, ...
@HenryHengZJ I'm not sure if this needs to be moved to "getEndingNodes" as well
} if (isFlowReusable()) { nodeToExecuteData = appServer.chatflowPool.activeChatflows[chatflowid].endingNodeData as INodeData isStreamValid = isFlowValidForStream(nodes, nodeToExecuteData) logger.debug( `[server]: Reuse existing chatflow ${chatflowid} ...
@@ -187,45 +187,21 @@ export const utilBuildChatflow = async (req: Request, socketIO?: Server, isInter /*** Get Ending Node with Directed Graph ***/ const { graph, nodeDependencies } = constructGraphs(nodes, edges) const directedGraph = graph - const endingNodeIds = ge...
packages/server/src/utils/buildChatflow.ts
26
TypeScript
0.286
suggestion
79
51
51
false
Optimize `getEndingNodes`
2,133
FlowiseAI/Flowise
45,241
TypeScript
mokeyish
mokeyish
import { containsBase64File, updateFlowDataWithFilePaths } from '../../utils/fileRepository' import { getErrorMessage } from '../../errors/utils' // Check if chatflow valid for streaming const checkIfChatflowIsValidForStreaming = async (chatflowId: string): Promise<any> => { try { const appServer = getRunn...
Can we change the naming from `isEndingNodeExists` to `isCustomFunctionEndingNode`? this can better reflects the purpose of this check. I think once `isEndingNodeExists`, we dont have to run the `for` loop below right? we can directly return `{ isStreaming : false }`
import { containsBase64File, updateFlowDataWithFilePaths } from '../../utils/fileRepository' import { getErrorMessage } from '../../errors/utils' // Check if chatflow valid for streaming const checkIfChatflowIsValidForStreaming = async (chatflowId: string): Promise<any> => { try { const appServer = getRunn...
@@ -41,35 +41,14 @@ const checkIfChatflowIsValidForStreaming = async (chatflowId: string): Promise<a const edges = parsedFlowData.edges const { graph, nodeDependencies } = constructGraphs(nodes, edges) - const endingNodeIds = getEndingNodes(nodeDependencies, graph) - if (!endingNodeIds...
packages/server/src/services/chatflows/index.ts
26
TypeScript
0.643
question
270
51
51
false
Optimize `getEndingNodes`
2,133
FlowiseAI/Flowise
45,241
TypeScript
HenryHengZJ
mokeyish