Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #156

Open
wants to merge 146 commits into
base: bot
Choose a base branch
from
Open

Main #156

Changes from 1 commit
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
4d59347
Merge pull request #4 from neo4j-contrib/bot
tomasonjo Sep 19, 2023
69cce44
Fix ollama vector dims
oskarhane Sep 19, 2023
bba7966
Don't depend on llm container
oskarhane Sep 19, 2023
a210c95
Add docker watch mode to loader
oskarhane Sep 19, 2023
d8ab4b0
Add title and info to loader page
oskarhane Sep 19, 2023
049b420
UI changes to loader
oskarhane Sep 19, 2023
14991fc
Update bot ui (drop tabs, add radios)
oskarhane Sep 19, 2023
cac0142
Add support for ollama embeddings in bot (commented out for now)
oskarhane Sep 20, 2023
20f1595
Add pages + start page to loader
oskarhane Sep 20, 2023
a65c1e9
Move vector index dimension config close to embeddings init
oskarhane Sep 20, 2023
fc55124
Add Ollama chat support (not used by default atm)
oskarhane Sep 20, 2023
4b73f6f
Update README
oskarhane Sep 20, 2023
b2a8e2a
update loader & bot
tomasonjo Sep 20, 2023
9475b96
Merge pull request #5 from neo4j-contrib/retrieval
tomasonjo Sep 21, 2023
c9784b3
fix llm only
tomasonjo Sep 21, 2023
32410e2
Fix Vector + RAG
jexp Sep 21, 2023
dc0018b
Switch to CE
jexp Sep 21, 2023
3559621
Remove unused image
oskarhane Sep 22, 2023
ca86a7f
Add sentence transformer for embeddings + config for what models to use
oskarhane Sep 22, 2023
a7d25be
streaming
tomasonjo Sep 22, 2023
c3232bd
Merge pull request #6 from neo4j-contrib/streaming
tomasonjo Sep 22, 2023
14d8c75
add prompt template
tomasonjo Sep 22, 2023
2a3a0bb
Removed the NEO4J_ACCEPT_LICENSE_AGREEMENT variable because we now us…
Sep 23, 2023
46e0ab0
Expanded the template for LLM-only mode to reduce hallucination. Repl…
Sep 24, 2023
76729aa
fix vector retrieval query
tomasonjo Sep 25, 2023
0c8ebcf
Various changes (#7)
jexp Sep 25, 2023
b10f42e
Git ignore neo4j data volume
oskarhane Sep 25, 2023
0d8f779
Rename mode selection label
oskarhane Sep 25, 2023
7727112
Cached embeddings model to improve DX
oskarhane Sep 25, 2023
e16e7c4
Drop cached embedding model from git tracking
oskarhane Sep 25, 2023
aeecd68
Git ignore local changes to embedding_model dir
oskarhane Sep 25, 2023
cae2e02
Save score on questions in db
oskarhane Sep 25, 2023
57a22b8
add favorite count
tomasonjo Sep 26, 2023
870cc36
prompt engineering sources
tomasonjo Sep 26, 2023
cdaa78c
switch to QAsources chain
tomasonjo Sep 26, 2023
9e0d126
Merge pull request #8 from neo4j-contrib/sourceprompt
tomasonjo Sep 26, 2023
8b7b48a
Feature: Generate internal ticket from question
oskarhane Sep 25, 2023
b9d4a0d
Merge pull request #9 from neo4j-contrib/generate-new-question
oskarhane Sep 26, 2023
29260e3
Add import button to load highly ranked questions from the past year
oskarhane Sep 26, 2023
57fce1a
Add .dockerignore
slimslenderslacks Sep 26, 2023
b9a51a1
Change words with RAG mode on chat messages
oskarhane Sep 26, 2023
26234f0
Merge pull request #10 from docker/slim/dockerignore
slimslenderslacks Sep 26, 2023
3b0dac2
Support any Ollama provided LLM via .env file
oskarhane Sep 28, 2023
009edf3
Add example values for LLM in .env.example
oskarhane Sep 28, 2023
250575d
Fix syntax error
oskarhane Sep 28, 2023
bf4d611
Made RAG Cypher Retrieval statement more human readable
jexp Sep 28, 2023
4572231
Fix UI glitch for growing textbox in chat
oskarhane Sep 28, 2023
c2cf59e
Refactor embedding instantiation
oskarhane Sep 28, 2023
075680b
Add data model image to loader page
oskarhane Sep 28, 2023
751f4fe
set reduce_k_below_max_tokens to false, otherwise no response is retu…
jexp Sep 28, 2023
2f0fb38
Tweak generation feature prompt to work better with Llama2
oskarhane Sep 29, 2023
9908aff
Fix some comments
oskarhane Sep 29, 2023
0ed3941
Change default LLM to llama2
oskarhane Sep 29, 2023
795de59
Update README
oskarhane Sep 30, 2023
325a026
Add LLM pre-req to README
oskarhane Oct 1, 2023
48be0ca
Refactor logic into separate files for easier reading
oskarhane Oct 2, 2023
ba8c7a4
Switch to langchain docker image
tomasonjo Oct 2, 2023
e1784b9
Merge pull request #13 from docker/langchaindocker
oskarhane Oct 2, 2023
5847faa
Automatically pull the model in the LLM env variable (#12)
slimslenderslacks Oct 2, 2023
f057411
use creative commons license (#11)
slimslenderslacks Oct 2, 2023
75bfb89
Add pdf bot
tomasonjo Oct 3, 2023
acf5c2b
Add index_name and node_label to PDF bot index
oskarhane Oct 3, 2023
6e9d813
Merge pull request #14 from docker/pdf_bot
oskarhane Oct 3, 2023
cc9f75c
Fix embeddings config errors
oskarhane Oct 4, 2023
8440f39
Add App3 to README
oskarhane Oct 4, 2023
54aa80e
pinning torch to 2.0.1 and sentence transformers to 2.2.2
jexp Oct 4, 2023
361a002
Warn about performance issue impacting python (#16)
slimslenderslacks Oct 5, 2023
c255377
add syntax directive (#15)
slimslenderslacks Oct 5, 2023
cc78f30
Update env example
tomasonjo Oct 6, 2023
febd377
Fix readme.md to start docker-compose with profile
Desnoo Oct 6, 2023
5168133
Merge pull request #21 from Desnoo/patch-1
oskarhane Oct 7, 2023
1581609
Fix typo in readme.md
eltociear Oct 8, 2023
71b8c10
Merge pull request #27 from eltociear/patch-1
oskarhane Oct 9, 2023
ec67a34
Update readme.md
shelar1423 Oct 9, 2023
cf647fb
Update readme.md
zooninja Oct 9, 2023
8741bbd
Merge pull request #31 from shelar1423/main
oskarhane Oct 9, 2023
bdaf16e
Merge branch 'main' into main
zooninja Oct 9, 2023
474de12
Pre-demo changes
slimslenderslacks Oct 9, 2023
8c2debd
fix readme typo
RafeAthar Oct 10, 2023
0a89d3d
Merge pull request #32 from zooninja/main
oskarhane Oct 10, 2023
99d87d0
Merge pull request #35 from RafeAthar/fix_readme-typo
oskarhane Oct 10, 2023
d0eb8a2
Merge pull request #19 from docker/env
oskarhane Oct 10, 2023
69117c9
Update pdf_bot.py
jexp Oct 10, 2023
0f181de
Update chains.py
jexp Oct 10, 2023
2b1bfae
Add API container + static client
oskarhane Oct 2, 2023
0b99705
Update README
oskarhane Oct 11, 2023
ce390cf
README updates
oskarhane Oct 12, 2023
255c246
Update links in response
oskarhane Oct 12, 2023
8fbc658
Adjust input width stepped with window size
oskarhane Oct 12, 2023
3384582
Merge pull request #40 from oskarhane/api
oskarhane Oct 12, 2023
d4a3e2a
Add link to post and linux LLM env
tomasonjo Oct 12, 2023
37a5ebb
Merge pull request #44 from docker/tomasonjo-patch-1
tomasonjo Oct 12, 2023
29ed2f1
fixed typos
rahul0x00 Oct 12, 2023
2c100b0
Updated README & docker-compose
matthieuml Oct 12, 2023
55cfed6
Update array syntax
matthieuml Oct 12, 2023
5344262
Merged to latest changes
matthieuml Oct 12, 2023
98c5c3d
Merge pull request #47 from matthieuml/main
oskarhane Oct 13, 2023
ca8427a
Update readme.md
rahul0x00 Oct 13, 2023
230213f
Merge pull request #45 from rahul0x00/patch-1
oskarhane Oct 13, 2023
5557a28
Fix missing default for LLM env var
robsdedude Oct 13, 2023
91410af
Merge pull request #34 from docker/slim/pre-demo
oskarhane Oct 13, 2023
d304130
Add aws embedding & LLM
tomasonjo Oct 15, 2023
4319ffd
Added api dependency on pull-model
matthieuml Oct 16, 2023
8bc1000
Merge pull request #54 from matthieuml/main
oskarhane Oct 16, 2023
9ef6de8
Merge pull request #49 from robsdedude/patch-1
oskarhane Oct 16, 2023
5883958
Merge pull request #50 from docker/aws
tomasonjo Oct 16, 2023
aec7cf1
Add healthcheck to api service
TheCulliganMan Oct 18, 2023
df19126
Updating Comments in env.example for Clarity
zach-blumenfeld Oct 20, 2023
ad386ea
ReOrg env.template File for Clarity
zach-blumenfeld Oct 20, 2023
8c4e67a
Update chains.py
tomasonjo Oct 23, 2023
6022155
Merge pull request #66 from docker/tomasonjo-patch-1
tomasonjo Oct 23, 2023
f8cf77d
Merge pull request #61 from zach-blumenfeld/update-env-example
zach-blumenfeld Oct 23, 2023
af43324
Add generation feature to Svelte front-end
oskarhane Oct 20, 2023
47f4a5a
Merge pull request #67 from oskarhane/refactor-generate-ticket
oskarhane Oct 24, 2023
2d5b16e
Small updates to Svelte UI
oskarhane Oct 26, 2023
ed5d1a0
Add contributing guidelines (#68)
slimslenderslacks Oct 26, 2023
4112db5
Make generation prompt more robust
oskarhane Oct 26, 2023
0d9ddd3
Recommend docker compose watch + remove 4.23 recommendation from README
oskarhane Oct 31, 2023
c328334
Keep x-develop for better compat with older compose versions
oskarhane Nov 1, 2023
a0366c0
removed start.sh
jexp Nov 3, 2023
76f0318
Linux nvidia GPU option
jexp Nov 3, 2023
4071ae1
Revert "Linux nvidia GPU option"
jexp Nov 3, 2023
611bf84
Add linux-gpu profile to enable GPU (#64)
matthieuml Nov 3, 2023
73a42da
Fix openai version due to breaking API change
oskarhane Nov 7, 2023
93ffce8
Remove unused varaibles
oskarhane Nov 8, 2023
d91cfa3
Fix openai on 0.28.1 until upstream libraries have adapted to new API
oskarhane Nov 8, 2023
147bd24
Change app title
oskarhane Nov 8, 2023
b3be4b5
Update stack name in README
oskarhane Nov 8, 2023
e8cc3b3
Merge pull request #57 from TheCulliganMan/main
oskarhane Nov 9, 2023
88c10d8
Fix typo in PDF bot (#90)
johnsonr Nov 13, 2023
f779482
Fix spelling mistake (#102)
borisromanov Dec 22, 2023
1a30710
fixed a spacing issues in readme file (#87)
Illapavan Dec 22, 2023
137b31f
Update docker-compose.yml (#81)
chenblueridge Dec 22, 2023
a61f493
Allow the display pull progress with docker compose up (#55)
matthieuml Dec 22, 2023
f8cde89
Fix KeyError: 'ollama_base_url' (#97)
denverdino Dec 22, 2023
c2894a8
Fixed Typo and Grammar (#59)
Sanyam-2026 Dec 22, 2023
b70412d
running on WSL (#38)
ssime-git Jan 8, 2024
6e5930b
Use 8502 port for the healthcheck (#110)
ilopezluna Jan 8, 2024
0724f1f
Bump vite from 4.4.10 to 4.4.12 in /front-end (#107)
Tachii Jan 24, 2024
a1ab733
Langchain 0.1.0 update (#121)
jexp Jan 31, 2024
3b4bdf0
Pull model if not present locally (#119)
denverdino Jan 31, 2024
9782135
adds user directive to database service (#104)
withtwoemms Jan 31, 2024
966563c
Update readme.md (#128)
sidagarwal04 Feb 21, 2024
c44aa64
Update docker-compose.yml (#127)
sidagarwal04 Feb 21, 2024
9191739
Add Google Generative AI Embeddings as an option (#129)
Lapeyus Feb 21, 2024
2fd4593
[ImgBot] Optimize images
ImgBotApp May 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename mode selection label
  • Loading branch information
oskarhane committed Sep 25, 2023
commit 0d8f779d7d043fdaa245110714da11733b3d7989
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
@@ -173,7 +173,7 @@ def generate_llm_output(user_input: str, callbacks: List[Any]) -> str:
styl = f"""
<style>
/* not great support for :has yet (hello FireFox), but using it for now */
.element-container:has([aria-label="Select sophistication mode"]) {{
.element-container:has([aria-label="Select RAG mode"]) {{
position: fixed;
bottom: 115px;
background: white;
@@ -228,7 +228,7 @@ def display_chat():

def mode_select() -> str:
options = ["LLM only", "Vector", "Vector + Graph"]
return st.radio("Select sophistication mode", options, horizontal=True)
return st.radio("Select RAG mode", options, horizontal=True)


name = mode_select()