Nguyen Quang Truong commited on
Commit
7a15a4d
·
1 Parent(s): 5c054cc
Files changed (2) hide show
  1. .github/workflows/CICD_Huggingface.yml +10 -0
  2. utils.py +2 -2
.github/workflows/CICD_Huggingface.yml CHANGED
@@ -14,6 +14,16 @@ jobs:
14
  with:
15
  fetch-depth: 0
16
  lfs: true
 
 
 
 
 
 
 
 
 
 
17
  - name: Push to hub
18
  env:
19
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
14
  with:
15
  fetch-depth: 0
16
  lfs: true
17
+
18
+ - name: Create .env file to store API key
19
+ run: |
20
+ echo "GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}" >> ./.env
21
+ echo "NEO4J_URI=${{ secrets.NEO4J_URI }}" >> ./.env
22
+ echo "NEO4J_USERNAME=${{ secrets.NEO4J_USERNAME }}" >> ./.env
23
+ echo "NEO4J_PASSWORD=${{ secrets.NEO4J_PASSWORD }}" >> ./.env
24
+ echo "TAVILY_API_KEY=${{ secrets.TAVILY_API_KEY }}" >> ./.env
25
+
26
+
27
  - name: Push to hub
28
  env:
29
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
utils.py CHANGED
@@ -35,8 +35,8 @@ def init_():
35
  def get_llm_response(query):
36
  # Connect to Neo4J Knowledge Graph
37
  knowledge_graph, llm_chat = init_()
38
- cypher_prompt = load_prompt("prompts/cypher_prompt.yaml")
39
- qa_prompt = load_prompt("prompts/qa_prompt.yaml")
40
 
41
  CYPHER_GENERATION_PROMPT = PromptTemplate(**cypher_prompt)
42
  QA_GENERATION_PROMPT = PromptTemplate(**qa_prompt)
 
35
  def get_llm_response(query):
36
  # Connect to Neo4J Knowledge Graph
37
  knowledge_graph, llm_chat = init_()
38
+ cypher_prompt = load_prompt("Agent/prompts/cypher_prompt.yaml")
39
+ qa_prompt = load_prompt("Agent/prompts/qa_prompt.yaml")
40
 
41
  CYPHER_GENERATION_PROMPT = PromptTemplate(**cypher_prompt)
42
  QA_GENERATION_PROMPT = PromptTemplate(**qa_prompt)