Skip to content

Commit 26a847c

Browse files
committed
feat(neo4j): add installation instructions for neo4j
1 parent 3a4e5a0 commit 26a847c

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
black
22
python-dotenv
3+
tiktoken
34
langchain
45
langchain_community
56
langchain-ollama

src/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
vector_store = Neo4jVector.from_documents(
2626
documents=doc_splits,
2727
embedding=OllamaEmbeddings(
28-
base_url="http://localhost:11434", model="llama3.2:latest"
28+
base_url="http://localhost:11434", model="gemma2:latest"
2929
),
3030
url=os.getenv("NEO4J_URL"),
3131
username=os.getenv("NEO4J_USER"),
@@ -46,7 +46,7 @@
4646
)
4747

4848
llm = ChatOllama(
49-
base_url="http://localhost:11434", model="llama3.2:latest", temperature=0
49+
base_url="http://localhost:11434", model="gemma2:latest", temperature=0
5050
)
5151

5252
rag_chain = prompt | llm | StrOutputParser()

tools/neo4j/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# https://debian.neo4j.com/
4+
sudo apt update
5+
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
6+
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
7+
sudo apt update
8+
9+
sudo apt install neo4j -y
10+
sudo systemctl enable neo4j.service
11+
sudo systemctl start neo4j.service
12+
sudo systemctl status neo4j.service
13+
14+
neo4j --version

0 commit comments

Comments
 (0)