forked from FlowiseAI/Flowise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Airtable text field content answerai brand added contentful removed publisher from this branch removed textField from the node to fix errors Update docker-compose to build the repo Update image added youtube document loader added updated contentful loader Add chatflow API key and sync with Sidekick on create/update Update .gitignore and constant.js Update API key functionality and add chatflow domain and API key to request payload added hidden nav and manu when in iframe Remove command from compose optimize dockkerfile Make dark theme the default Add DOMAIN env Add API_KEY env Add DOMAIN env Add auth0 integration Update dockerfile Add env passthrough for auth Add env passthrough for auth Add environment variables for authentication in production Add production environment variables Update compose env Update authentication logging and chatflow domain Update Dockerfile and env.sh, fix sed command in env.sh, and modify index.js to handle undefined organization ID Refactor Dockerfile and env.sh scripts, and update App.js and index.js files Add embed & embed-react, enable credentials for API comms Improvements Add SST Fix authorization issue in API endpoints Update .gitignore file to ignore .pem files and .env.* files added option for string or document fo routput and adjusted config Add lock files to git Update Docker files Add CDN and remove quotes from chat prompt so JSON is not malformed updated to account for queryoveride
- Loading branch information
1 parent
f116dba
commit 5cf42cd
Showing
127 changed files
with
35,596 additions
and
30,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
const path = require("path"); | ||
|
||
/** @typedef {DaisyConfig} Config */ | ||
const config = (CODE_BASE_PATH) => { | ||
const PINECONE_INDEX_NAME = process.env.DAISY_PINECONE_INDEX_NAME || "daisy"; | ||
const PINECONE_NAMESPACE = process.env.DAISY_PINECONE_NAMESPACE || "default"; | ||
const DAISY_DIRECTORY_NAME = process.env.DAISY_DIRECTORY_NAME || "daisy"; | ||
const DAISY_DIRECTORY = path.join(CODE_BASE_PATH, DAISY_DIRECTORY_NAME); | ||
const MARKDOWN_DIRECTORY = | ||
process.env.MARKDOWN_DIRECTORY || path.join(DAISY_DIRECTORY, "markdown"); | ||
const PROMPTS_FILE_PATH = | ||
process.env.PROMPTS_FILE_PATH || path.join(DAISY_DIRECTORY, "prompts"); | ||
|
||
const TEMPLATE_FILE_PATH = | ||
process.env.TEMPLATE_FILE_PATH || path.join(DAISY_DIRECTORY, "templates"); | ||
const ANSWERAI_API_KEY = process.env.ANSWERAI_API_KEY; | ||
const ANSWERAI_EMBEDDINGS_URL = | ||
process.env.DAISY_ANSWERAI_EMBEDDINGS_URL || | ||
"https://app.theanswer.ai/api/codebase/embeddings"; | ||
const ANSWERAI_CHAT_COMPLETION_URL = | ||
process.env.DAISY_ANSWERAI_CHAT_COMPLETION_URL || | ||
"https://app.theanswer.ai/api/ai/chat-completion"; | ||
const OPENAI_API_KEY = process.env.OPENAI_API_KEY; | ||
const PINECONE_API_KEY = process.env.PINECONE_API_KEY; | ||
const PINECONE_ENVIRONMENT = process.env.PINECONE_ENVIRONMENT; | ||
return { | ||
codeBasePath: CODE_BASE_PATH, | ||
pineconeIndexName: PINECONE_INDEX_NAME, | ||
pineconeNamespace: PINECONE_NAMESPACE, | ||
daisyDirectoryName: DAISY_DIRECTORY_NAME, | ||
markdownDirectory: MARKDOWN_DIRECTORY, | ||
promptsFilePath: PROMPTS_FILE_PATH, | ||
templateFilePath: TEMPLATE_FILE_PATH, | ||
openAiApiKey: OPENAI_API_KEY, | ||
pineconeApiKey: PINECONE_API_KEY, | ||
pineconeEnvironment: PINECONE_ENVIRONMENT, | ||
answerAI: { | ||
apiKey: ANSWERAI_API_KEY, | ||
embeddingsUrl: ANSWERAI_EMBEDDINGS_URL, | ||
chatCompletionUrl: ANSWERAI_CHAT_COMPLETION_URL, | ||
}, | ||
invalidPaths: [ | ||
"node_modules", | ||
"dist", | ||
"build", | ||
"coverage", | ||
"public", | ||
"static", | ||
"assets", | ||
"images", | ||
"img", | ||
".nextjs", | ||
".next", | ||
".git", | ||
"generated", | ||
".yarn", | ||
"patches", | ||
DAISY_DIRECTORY, | ||
], | ||
invalidFileTypes: [ | ||
".prompt", | ||
".csv", | ||
".tsv", | ||
".log", | ||
".docx", | ||
".xls", | ||
".xlsx", | ||
".ppt", | ||
".pptx", | ||
".svg", | ||
".png", | ||
".jpg", | ||
".jpeg", | ||
".gif", | ||
".bmp", | ||
".tiff", | ||
".tif", | ||
".ico", | ||
".mp3", | ||
".mp4", | ||
".wav", | ||
".wma", | ||
".avi", | ||
".mov", | ||
".mpg", | ||
".mpeg", | ||
".zip", | ||
".rar", | ||
".7z", | ||
".tar", | ||
".gz", | ||
".dmg", | ||
".iso", | ||
".exe", | ||
".bin", | ||
".pkg", | ||
".deb", | ||
".rpm", | ||
".lock", | ||
], | ||
invalidFileNames: [ | ||
"pnpm-lock.yaml", | ||
"package-lock.json", | ||
"app_pairs.yml", | ||
".env", | ||
".DS_Store", | ||
".gitignore", | ||
], | ||
fileTypes: { | ||
docs: { | ||
fileTypes: [".md", ".mdx", ".txt", "LICENSE.md", "LICENSE"], | ||
skipCompletion: true, | ||
}, | ||
react: { | ||
fileTypes: [".jsx", ".tsx"], | ||
prompt: "react.prompt", | ||
template: "react.md", | ||
}, | ||
api: { | ||
pathIncludes: ["/api/", "/routes/", "/controllers/", "/services/"], | ||
prompt: "api.prompt", | ||
template: "api.md", | ||
}, | ||
config: { | ||
fileTypes: [ | ||
".json", | ||
".yaml", | ||
".yml", | ||
".toml", | ||
".ini", | ||
".env", | ||
".env.example", | ||
".daisyrc", | ||
], | ||
prompt: "config.prompt", | ||
template: "config.md", | ||
}, | ||
script: { | ||
fileTypes: [".js", ".ts"], | ||
prompt: "script.prompt", | ||
template: "script.md", | ||
}, | ||
contentModel: { | ||
pathIncludes: ["content_types"], | ||
prompt: "contentModel.prompt", | ||
template: "contentModel.md", | ||
}, | ||
default: { | ||
prompt: "default.prompt", | ||
template: "default.md", | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,38 @@ | ||
node_modules | ||
dist | ||
build | ||
# Include any files or directories that you don't want to be copied to your | ||
# container here (e.g., local build artifacts, temporary files, etc.). | ||
# | ||
# For more help, visit the .dockerignore file reference guide at | ||
# https://docs.docker.com/go/build-context-dockerignore/ | ||
|
||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/.next | ||
**/.turbo | ||
**/.cache | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
**/build | ||
**/dist | ||
**/.sst | ||
docker | ||
|
||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Debug Entire App with Yarn Dev", | ||
"type": "node", | ||
"request": "launch", | ||
"runtimeExecutable": "yarn", | ||
"runtimeArgs": ["dev"], | ||
"timeout": 30000, | ||
"stopOnEntry": false, | ||
"sourceMaps": true, | ||
"restart": true, | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"skipFiles": ["<node_internals>/**"], | ||
"smartStep": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
docker build -t answers-flowise . && | ||
docker tag answers-flowise:latest theanswerai/flowise:latest && | ||
docker push theanswerai/flowise:latest |
Oops, something went wrong.