Skip to content

Commit 81285cf

Browse files
authored
feat(neo4j): add installation instructions for neo4j (#3)
1 parent 3a4e5a0 commit 81285cf

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

.github/workflows/validate-codeowners.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
runs-on: ubuntu-latest
2020

2121
outputs:
22-
matrix: ${{ steps.codeowners.outputs.matrix }}
22+
matrix: ${{ steps.get-codeowners.outputs.matrix }}
2323

2424
steps:
2525
- name: Checkout sources
2626
uses: actions/checkout@v4
2727

2828
- name: Get codeowners
29-
id: codeowners
29+
id: get-codeowners
3030
run: |
3131
RESULT=$(bash tools/actions/codeowners/codeowners.sh)
3232
echo "matrix=$RESULT" >> $GITHUB_OUTPUT

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/actions/codeowners/codeowners.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ done
4444
OUTPUT=${OUTPUT::-1}
4545

4646
OUTPUT+="]"
47+
48+
echo "$OUTPUT"

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)