Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

chore/merge upstream 2024071101 #46

Merged
merged 193 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
1b56c75
[minor] proper assistant line length
pablonyx Jun 19, 2024
9e30ec1
hide popup for non admin + if search is disabled
pablonyx Jun 19, 2024
694e9e8
finished first draft
hagen-danswer Jun 20, 2024
ba58208
Transform HTML links to markdown behind config option (#1671)
KevinShiCA Jun 20, 2024
287a706
combined the input fields
hagen-danswer Jun 20, 2024
b467508
Update handle_message.py
hagen-danswer Jun 21, 2024
3dfe17a
google drive ignores shortcut filetypes now
hagen-danswer Jun 20, 2024
98b2507
Improve persona access
Weves Jun 21, 2024
3e39a92
Fix image generation output
Weves Jun 21, 2024
5cafc96
Enable Internet Search for Deployment Options (#1684)
yuhongsun96 Jun 22, 2024
8178d53
Add functional thread modification endpoints (#1668)
pablonyx Jun 22, 2024
094eea2
Discourse Edge Case (#1685)
yuhongsun96 Jun 22, 2024
4ae9246
Add migration for usage reports
Weves Jun 22, 2024
7253316
Add script for forced connector deletion (#1683)
pablonyx Jun 23, 2024
123ec43
Relari (#1687)
yuhongsun96 Jun 23, 2024
6c71bc0
modify script deletion name (#1690)
pablonyx Jun 23, 2024
c1d8f6c
add basic 403 support for healthcheck (#1689)
pablonyx Jun 23, 2024
50f799e
Merge pull request #1672 from danswer-ai/add-groups-to-slack-bot-resp…
hagen-danswer Jun 24, 2024
e65d9e1
fixed confluence breaking on unknown filetypes (#1698)
hagen-danswer Jun 25, 2024
061dab7
Touchup (#1702)
yuhongsun96 Jun 25, 2024
65d5808
Confluence: add pages labels indexation (#1635)
mboret Jun 25, 2024
92de6ac
Initial EE features (#3)
yuhongsun96 Oct 3, 2023
7503f8f
Add User Groups (a.k.a. RBAC) (#4)
Weves Oct 9, 2023
50170cc
Move user group syncing to Celery Beat
Weves Oct 22, 2023
428f5ed
Update ee supervisord
Weves Oct 22, 2023
e9f273d
Admin Analytics/Query History dashboards (#6)
Weves Oct 22, 2023
0c295d1
Enable EE features for no-letsencrypt deployment (#9)
yuhongsun96 Oct 26, 2023
d016e83
Update default SAML config location (#10)
yuhongsun96 Oct 27, 2023
db8ce61
Fix group prefix (#11)
Weves Oct 27, 2023
b4683dc
Fix Rebase Issue
yuhongsun96 Oct 28, 2023
529f2c8
Danswer EE Version Text (#12)
yuhongsun96 Nov 4, 2023
f799d9a
Fix EE import
Weves Nov 13, 2023
3984350
Improvements to Query History (#17)
Weves Nov 19, 2023
56c52bd
Fix missing supervisord change from Danswer MIT (#18)
yuhongsun96 Nov 21, 2023
670de6c
Add new env variable to EE supervisord
Weves Nov 24, 2023
f82ae15
Mark indexing jobs as ee when running ee supervisord
Weves Nov 30, 2023
9599388
Fix sidebar typo
Weves Dec 3, 2023
67a4eb6
Fix frontend typing rebase issue
Weves Dec 7, 2023
a527119
Fix analytics + query history
Weves Dec 17, 2023
ce870ff
Re-style user group pages
Weves Dec 17, 2023
e11f0f6
Fix /chat-session-history/{chat_session_id} endpoint when auth is ena…
Weves Dec 17, 2023
39d6983
Make query history fetch client-side
Weves Dec 19, 2023
ce36530
Fix viewing other users' chat histories in query history
Weves Dec 23, 2023
4b44073
CVEs (#26)
yuhongsun96 Dec 30, 2023
ae02a51
Add API key generation in the UI + allow it to be used across all end…
Weves Jan 12, 2024
db338bf
Introduce EE only Backend APIs (#29)
yuhongsun96 Jan 14, 2024
8bf4839
Fix users page with API keys + add spinner on key creation
Weves Jan 17, 2024
fe975c3
Add global prefix to EE endpoints
Weves Jan 17, 2024
15934ee
Fix limit/offset for document-search endpoint
Weves Jan 23, 2024
bac34a4
Embedding Model Swap Changes (#35)
yuhongsun96 Jan 29, 2024
328b96c
Make public/not-public selector prettier
Weves Jan 30, 2024
9ae3a4a
Basic Chat API (#38)
yuhongsun96 Feb 19, 2024
6b46a71
Fix Empty Chat for API (#39)
yuhongsun96 Feb 20, 2024
c1862e9
Simple API No Longer Require Specify Prompt (#40)
yuhongsun96 Feb 24, 2024
f17dc52
One Shot API No Stream (#41)
yuhongsun96 Feb 24, 2024
a09d60d
Fix user group deletion bug
Weves Mar 3, 2024
eab5d05
Add env variable to control hash rounds
Weves Mar 6, 2024
00ade32
Fix small answer-with-quote bug
Weves Mar 8, 2024
64874d2
Change runner for backend
Weves Mar 11, 2024
680482b
Metadata filter for document search API (#53)
yuhongsun96 Mar 18, 2024
17cc262
Private personas doc sets (#52)
Weves Mar 21, 2024
ef4f06a
Fix SAML for /manage/me
Weves Mar 22, 2024
7b16cb9
Rebase search changes to EE APIs (#55)
yuhongsun96 Mar 26, 2024
d6c5c65
Fix Query History (#56)
yuhongsun96 Mar 27, 2024
40369e0
Formatter (#57)
yuhongsun96 Mar 27, 2024
e3ef620
Query History Now Handles Old Messages (#58)
yuhongsun96 Mar 28, 2024
2c3ba5f
Include User in Query Export (#59)
yuhongsun96 Mar 30, 2024
fa8cc10
Allow Optional Rerank in APIs (#60)
yuhongsun96 Apr 4, 2024
153007c
Whitelableing for Logo / Name via Admin panel
Weves Apr 7, 2024
ee2a5bb
Add custom-styling ability via themes
Weves Apr 8, 2024
91cf451
Small fixes + adding 'Powered by Danswer'
Weves Apr 8, 2024
3466f6d
Custom banner
Weves Apr 10, 2024
81e9880
Add names to API Keys (#63)
avhagedorn Apr 13, 2024
c055dc1
Add custom analytics script
Weves Apr 13, 2024
22a2f86
FE build fix
Weves Apr 13, 2024
680aca6
Make EE containers public changes (#67)
yuhongsun96 Apr 13, 2024
c00bd44
Add Chunk Context options for EE APIs (#68)
yuhongsun96 Apr 15, 2024
50f0065
Add message id to simple message endpoint (#69)
yuhongsun96 Apr 15, 2024
1984f2c
Add automated auth checks for ee
Weves Apr 19, 2024
0c827d1
Permission Sync Framework (#44)
yuhongsun96 Apr 21, 2024
65b6551
Add back ChatBanner
Weves Apr 22, 2024
89fac98
Fix ee redirect
Weves Apr 23, 2024
9a9b89f
Fix rebase issue with public assistants
Weves Apr 23, 2024
336c046
Better Naming for API Keys (#76)
yuhongsun96 Apr 23, 2024
6c6e33e
Allow Empty API Names (#77)
yuhongsun96 Apr 23, 2024
f55a4ef
Remove Nested Session (#78)
yuhongsun96 Apr 23, 2024
af94c09
Reduce sync jobs batch size (#79)
yuhongsun96 Apr 23, 2024
d9acd03
Query History Include Feedback Text (#80)
yuhongsun96 Apr 25, 2024
7a40874
Fix Web Compile Issue (#81)
yuhongsun96 Apr 25, 2024
d7a704c
Token Rate Limiting
avhagedorn Apr 15, 2024
719fc06
Fix rebase issue with UI-based LLM selection
Weves Apr 27, 2024
e33b469
Remove unused Chat.tsx file
Weves Apr 30, 2024
b19d88a
Fix rebase issue with file_store
Weves Apr 30, 2024
eadad34
Fix /send-message-simple-api endpoint
Weves May 2, 2024
10be91a
Track Slack questions Autoresolved (#86)
yuhongsun96 May 5, 2024
c631ac0
Change secret name
Weves May 7, 2024
460e61b
Fix document lock acquisition for user group sync
Weves May 8, 2024
af58846
Enable Encryption
yuhongsun96 May 11, 2024
a2597d5
Fix rebase issue with dev compose file
Weves May 13, 2024
fc3ed76
Add pagination to user group syncing
Weves May 14, 2024
9c8cfd9
Fix mypy
Weves May 14, 2024
c6e49a3
Don't get duplicate docs during user group syncing
Weves May 15, 2024
775ca57
Move web build to a matrix build
Weves May 20, 2024
44284f7
Fix Rebase Issues (#92)
yuhongsun96 May 27, 2024
6162283
Fix formatting issues (#93)
yuhongsun96 May 28, 2024
69740ba
Fix rebase issue
Weves May 30, 2024
45402d0
Add back custom logo/name to sidebar header
Weves May 30, 2024
694d20e
Fix user groups issue from rebase
Weves May 31, 2024
bdcfb39
Add whitelabeled name to login page
Weves Jun 6, 2024
1c343bb
Enable Dedup Flag for Doc Search Endpoint
yuhongsun96 Jun 6, 2024
7278d45
Fix rebase issue
Weves Jun 7, 2024
7cc5137
Allow basic seeding of Danswer via env variable
Weves Jun 10, 2024
457527a
Try different runner groups for each build
Weves Jun 11, 2024
2937fe9
Fix backend build
Weves Jun 11, 2024
733d4e6
Add support for private file connectors
Weves Jun 20, 2024
98a5833
Query history speed fix (#109)
rashad-danswer Jun 21, 2024
010ce53
Minor/ee optional branding (#105)
pablonyx Jun 21, 2024
db31916
stronger wording
pablonyx Jun 21, 2024
e34bcbb
Add persistent name and logo seeding (#107)
pablonyx Jun 21, 2024
8ba48e2
minor build fix
pablonyx Jun 21, 2024
90ec156
formatting
pablonyx Jun 21, 2024
3d434c2
Fix persona access for answer-with-quote API
Weves Jun 21, 2024
f55e541
Add empty assets folder
Weves Jun 21, 2024
3af81ca
Fix seed config when left empty
Weves Jun 21, 2024
5c12a3e
brought out the UsersResponse interface (#119)
hagen-danswer Jun 22, 2024
f0b2b57
Usage reports (#118)
Weves Jun 22, 2024
1ee8ee9
Prepare EE to merge with MIT
Weves Feb 15, 2024
5d55270
Change EE environment variable name
Weves Jun 25, 2024
8c6cd66
Ignore messages from Slack's official bot (#1703)
hagen-danswer Jun 26, 2024
7d2b0ff
Developer Env Setup (#1710)
yuhongsun96 Jun 26, 2024
0d81493
Bugfix for Selected Doc when the message it is selected from failed (…
yuhongsun96 Jun 26, 2024
20c4cdb
Catch LLM Generation Failure (#1712)
yuhongsun96 Jun 26, 2024
d6e5a98
Minor Update to UI (#1692)
pablonyx Jun 26, 2024
4ba6e45
Small template fix
Weves Jun 26, 2024
b5aa737
Make seeded model default
Weves Jun 26, 2024
43557f7
add copy-paste images (#1722)
pablonyx Jun 27, 2024
062dc98
Fix search tool
Weves Jun 27, 2024
8be42a5
Touchup for Multilingual Users (#1725)
yuhongsun96 Jun 27, 2024
5324b15
Chat overflow (#1723)
pablonyx Jun 27, 2024
8fea6d7
Fix share for insecure:
Weves Jun 27, 2024
5764cdd
Use FiEdit2 as the standard edit icon
Weves Jun 27, 2024
91c9b2e
Add more logging for num workers in simple job client
Weves Jun 27, 2024
52dab23
add workflows that automate docker builds against merge group events
rkuo-danswer Jun 27, 2024
2140f80
Tidy up Actions ported from EE (#1732)
yuhongsun96 Jun 27, 2024
9310a8e
Feature/scroll (#1694)
pablonyx Jun 27, 2024
145cdb6
Remove duplicate tool check
Weves Jun 27, 2024
f03f973
Blob Storage (#1705)
pablonyx Jun 28, 2024
369e607
Fixes DAN-189 (safari bug in admin). Removed td/absolute positioning …
rkuo-danswer Jun 28, 2024
29d57f6
remove obsolete comment
rkuo-danswer Jun 28, 2024
2c0e0c5
Merge pull request #1731 from danswer-ai/feature/merge-queue-workflows
rkuo-danswer Jun 28, 2024
e47da0d
Small readme improvement (#1735)
Weves Jun 28, 2024
38da312
Pass headers into image generation (#1739)
Weves Jun 28, 2024
de6d040
add boto3 typing to default requirements (#1740)
pablonyx Jun 28, 2024
bd09256
Added TTL to EE Celery tasks (#1713)
hagen-danswer Jun 28, 2024
3fe5313
renamed alembic table (#1741)
hagen-danswer Jun 28, 2024
60dd773
Disallowed simultaneous pruning jobs (#1704)
hagen-danswer Jun 28, 2024
ed55098
Feature/assistants (#1581)
pablonyx Jun 29, 2024
4159605
Fix fast models
Weves Jun 29, 2024
3e45a41
Bugfix/scroll (#1748)
pablonyx Jun 30, 2024
52c3a5e
Fix slackbot citation images
Weves Jun 30, 2024
2035e9f
Fix docker build
Weves Jun 30, 2024
393b3c9
Fix misc chat bugs
Weves Jun 29, 2024
581cb82
added settings and persona seeding options (#1742)
hagen-danswer Jul 1, 2024
1a3ec59
Fix build caused by bad seeding config
Weves Jul 2, 2024
3ebac62
Fix "cannot access local variable" for bot direct messages (#1737)
cpwetteronline Jul 2, 2024
2db128f
Notion date filter fix (#1755)
danielnaber Jul 2, 2024
982b1b0
Add litellm.set_verbose support
Weves Jul 3, 2024
7f1bb67
Pass through API base to ImageGenerationTool
Weves Jul 3, 2024
a7da07a
allowed arbitrary types to handle the sqlalchemy datatype (#1758)
hagen-danswer Jul 3, 2024
ae4e643
Update Assistants Creation UI (#1714)
pablonyx Jul 3, 2024
72d6a0e
minor updates to assistant UI (#1771)
pablonyx Jul 3, 2024
fa049f4
Add UI support for github configs
Weves Jul 4, 2024
0b384c5
fixed salesforce url generation (#1777)
hagen-danswer Jul 4, 2024
de4d8e9
Fix shared chats
Weves Jul 4, 2024
ac14369
Added search quality testing pipeline (#1774)
hagen-danswer Jul 6, 2024
8e8f262
Docker Compose Eval Pipeline Cleanup (#1780)
yuhongsun96 Jul 6, 2024
7919003
New Env File for Eval (#1781)
yuhongsun96 Jul 6, 2024
c5bb3fd
Ignore Eval Files (#1782)
yuhongsun96 Jul 6, 2024
d35d7ee
Evaluation Pipeline Touchup (#1783)
yuhongsun96 Jul 6, 2024
f0888f2
Eval Script Incremental Write (#1784)
yuhongsun96 Jul 6, 2024
e06f8a0
Standard Answers (#1753)
Weves Jul 6, 2024
146f859
Internet Search Tool (#1666)
rashad-danswer Jul 7, 2024
727d80f
fix gpt-4o image issue (#1786)
pablonyx Jul 8, 2024
5e0de11
fix wrapping in error hover connector (#1790)
pablonyx Jul 9, 2024
39982e5
Info propagating to allow Chunk Merging (#1794)
yuhongsun96 Jul 10, 2024
7c8f8db
Break the Danswer LLM logging from LiteLLM Verbose (#1795)
yuhongsun96 Jul 10, 2024
aa0f7ab
add basic table wrapping (#1791)
pablonyx Jul 10, 2024
09a11b5
Fix citations + unit tests (#1760)
pablonyx Jul 10, 2024
6c51f00
Confluence Connector to Sync Child pages only (#1629)
vggaur41522 Jul 10, 2024
511f619
Add content to /document-search response
Weves Jul 10, 2024
47a5502
slackbot doesnt respond without citations/quotes (#1798)
hagen-danswer Jul 11, 2024
08c6e82
Merge Sections Logic (#1801)
yuhongsun96 Jul 11, 2024
322e3e7
Resolve conflicts
onimsha Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Backend Image on Merge Group

on:
pull_request:
branches: [ "main" ]
merge_group:
types: [checks_requested]

env:
REGISTRY_IMAGE: danswer/danswer-backend

jobs:
build:
# TODO: make this a matrix build like the web containers
runs-on:
group: amd64-image-builders

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Backend Image Docker Build
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
platforms: linux/amd64,linux/arm64
push: false
tags: |
${{ env.REGISTRY_IMAGE }}:latest
build-args: |
DANSWER_VERSION=v0.0.1
13 changes: 9 additions & 4 deletions .github/workflows/docker-build-push-backend-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ on:
tags:
- '*'

env:
REGISTRY_IMAGE: danswer/danswer-backend

jobs:
build-and-push:
runs-on: ubuntu-latest
# TODO: make this a matrix build like the web containers
runs-on:
group: amd64-image-builders

steps:
- name: Checkout code
Expand All @@ -30,15 +35,15 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: |
danswer/danswer-backend:${{ github.ref_name }}
danswer/danswer-backend:latest
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.REGISTRY_IMAGE }}:latest
build-args: |
DANSWER_VERSION=${{ github.ref_name }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
# To run locally: trivy image --severity HIGH,CRITICAL danswer/danswer-backend
image-ref: docker.io/danswer/danswer-backend:${{ github.ref_name }}
image-ref: docker.io/${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
severity: 'CRITICAL,HIGH'
trivyignores: ./backend/.trivyignore
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-push-web-container-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
build:
runs-on:
runs-on:
group: ${{ matrix.platform == 'linux/amd64' && 'amd64-image-builders' || 'arm64-image-builders' }}
strategy:
fail-fast: false
Expand All @@ -34,8 +34,8 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=danswer/danswer-web-server:${{ github.ref_name }}
type=raw,value=danswer/danswer-web-server:latest
type=raw,value=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
type=raw,value=${{ env.REGISTRY_IMAGE }}:latest

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/docker-build-web-container-on-merge-group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Web Image on Merge Group

on:
pull_request:
branches: [ "main" ]
merge_group:
types: [checks_requested]

env:
REGISTRY_IMAGE: danswer/danswer-web-server

jobs:
build:
runs-on:
group: ${{ matrix.platform == 'linux/amd64' && 'amd64-image-builders' || 'arm64-image-builders' }}
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64

steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.REGISTRY_IMAGE }}:latest

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build by digest
id: build
uses: docker/build-push-action@v5
with:
context: ./web
file: ./web/Dockerfile
platforms: ${{ matrix.platform }}
push: false
build-args: |
DANSWER_VERSION=v0.0.1
# needed due to weird interactions with the builds for different platforms
no-cache: true
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.venv
.mypy_cache
.idea
.python-version
/deployment/data/nginx/app.conf
.vscode/launch.json
*.sw?
23 changes: 16 additions & 7 deletions .vscode/env_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,27 @@

# For local dev, often user Authentication is not needed
AUTH_TYPE=disabled
# This passes top N results to LLM an additional time for reranking prior to answer generation, quite token heavy so we disable it for dev generally
DISABLE_LLM_CHUNK_FILTER=True


# Always keep these on for Dev
# Logs all model prompts to stdout
LOG_ALL_MODEL_INTERACTIONS=True
LOG_DANSWER_MODEL_INTERACTIONS=True
# More verbose logging
LOG_LEVEL=debug


# This passes top N results to LLM an additional time for reranking prior to answer generation
# This step is quite heavy on token usage so we disable it for dev generally
DISABLE_LLM_CHUNK_FILTER=True


# Useful if you want to toggle auth on/off (google_oauth/OIDC specifically)
OAUTH_CLIENT_ID=<REPLACE THIS>
OAUTH_CLIENT_SECRET=<REPLACE THIS>
# Generally not useful for dev, we don't generally want to set up an SMTP server for dev
REQUIRE_EMAIL_VERIFICATION=False


# Toggles on/off the EE Features
NEXT_PUBLIC_ENABLE_PAID_EE_FEATURES=False


# Set these so if you wipe the DB, you don't end up having to go through the UI every time
GEN_AI_API_KEY=<REPLACE THIS>
# If answer quality isn't important for dev, use 3.5 turbo due to it being cheaper
Expand All @@ -41,3 +40,13 @@ FAST_GEN_AI_MODEL_VERSION=gpt-3.5-turbo
# Python stuff
PYTHONPATH=./backend
PYTHONUNBUFFERED=1


# Internet Search
BING_API_KEY=<REPLACE THIS>


# Enable the full set of Danswer Enterprise Edition features
# NOTE: DO NOT ENABLE THIS UNLESS YOU HAVE A PAID ENTERPRISE LICENSE (or if you are using this for local testing/development)
ENABLE_PAID_ENTERPRISE_EDITION_FEATURES=False

28 changes: 26 additions & 2 deletions .vscode/launch.template.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"request": "launch",
"cwd": "${workspaceRoot}/web",
"runtimeExecutable": "npm",
"envFile": "${workspaceFolder}/.env",
"runtimeArgs": [
"run", "dev"
],
Expand All @@ -28,6 +29,7 @@
"request": "launch",
"module": "uvicorn",
"cwd": "${workspaceFolder}/backend",
"envFile": "${workspaceFolder}/.env",
"env": {
"LOG_LEVEL": "DEBUG",
"PYTHONUNBUFFERED": "1"
Expand All @@ -45,8 +47,9 @@
"request": "launch",
"module": "uvicorn",
"cwd": "${workspaceFolder}/backend",
"envFile": "${workspaceFolder}/.env",
"env": {
"LOG_ALL_MODEL_INTERACTIONS": "True",
"LOG_DANSWER_MODEL_INTERACTIONS": "True",
"LOG_LEVEL": "DEBUG",
"PYTHONUNBUFFERED": "1"
},
Expand All @@ -63,6 +66,7 @@
"request": "launch",
"program": "danswer/background/update.py",
"cwd": "${workspaceFolder}/backend",
"envFile": "${workspaceFolder}/.env",
"env": {
"ENABLE_MINI_CHUNK": "false",
"LOG_LEVEL": "DEBUG",
Expand All @@ -77,7 +81,9 @@
"request": "launch",
"program": "scripts/dev_run_background_jobs.py",
"cwd": "${workspaceFolder}/backend",
"envFile": "${workspaceFolder}/.env",
"env": {
"LOG_DANSWER_MODEL_INTERACTIONS": "True",
"LOG_LEVEL": "DEBUG",
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "."
Expand All @@ -100,6 +106,24 @@
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "."
}
},
{
"name": "Pytest",
"type": "python",
"request": "launch",
"module": "pytest",
"cwd": "${workspaceFolder}/backend",
"envFile": "${workspaceFolder}/.env",
"env": {
"LOG_LEVEL": "DEBUG",
"PYTHONUNBUFFERED": "1",
"PYTHONPATH": "."
},
"args": [
"-v"
// Specify a sepcific module/test to run or provide nothing to run all tests
//"tests/unit/danswer/llm/answering/test_prune_and_merge.py"
]
}
]
}
}
8 changes: 6 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
MIT License
Copyright (c) 2023-present DanswerAI, Inc.

Copyright (c) 2023 Yuhong Sun, Chris Weaver
Portions of this software are licensed as follows:

* All content that resides under "ee" directories of this repository, if that directory exists, is licensed under the license defined in "backend/ee/LICENSE". Specifically all content under "backend/ee" and "web/src/app/ee" is licensed under the license defined in "backend/ee/LICENSE".
* All third party components incorporated into the Danswer Software are licensed under the original license provided by the owner of the applicable component.
* Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,25 @@ Efficiently pulls the latest changes from:
* Websites
* And more ...

## 📚 Editions

There are two editions of Danswer:

* Danswer Community Edition (CE) is available freely under the MIT Expat license. This version has ALL the core features discussed above. This is the version of Danswer you will get if you follow the Deployment guide above.
* Danswer Enterprise Edition (EE) includes extra features that are primarily useful for larger organizations. Specifically, this includes:
* Single Sign-On (SSO), with support for both SAML and OIDC
* Role-based access control
* Document permission inheritance from connected sources
* Usage analytics and query history accessible to admins
* Whitelabeling
* API key authentication
* Encryption of secrets
* Any many more! Checkout [our website](https://www.danswer.ai/) for the latest.

To try the Danswer Enterprise Edition:

1. Checkout our [Cloud product](https://app.danswer.ai/signup).
2. For self-hosting, contact us at [founders@danswer.ai](mailto:founders@danswer.ai) or book a call with us on our [Cal](https://cal.com/team/danswer/founders).

## 💡 Contributing
Looking to contribute? Please check out the [Contribution Guide](CONTRIBUTING.md) for more details.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ site_crawls/
.ipynb_checkpoints/
api_keys.py
*ipynb
.env
.env*
vespa-app.zip
dynamic_config_storage/
celerybeat-schedule*
Loading
Loading