Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse filesFiles changed (5)
34 unmodified lines3536373834 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textJM_QualitativeEvaluationOutput.pdf filter=lfs diff=lfs merge=lfs -textJMartinez_OuraAppAssistantReport.pdf filter=lfs diff=lfs merge=lfs -textchroma_db/chroma.sqlite3 filter=lfs diff=lfs merge=lfs -text34 unmodified lines353637383934 unmodified lines*tfevents* filter=lfs diff=lfs merge=lfs -textJM_QualitativeEvaluationOutput.pdf filter=lfs diff=lfs merge=lfs -textJMartinez_OuraAppAssistantReport.pdf filter=lfs diff=lfs merge=lfs -textReadMe.pdf filter=lfs diff=lfs merge=lfs -textchroma_db/chroma.sqlite3 filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:ad4a8d27f639046318b7260e26af6e5ff9760cc68ebebcf33cc575285b95d839size 102095123version https://git-lfs.github.com/spec/v1oid sha256:f94980299df9e4f73bac7976db80a590372a463d1c7ba1c639f53435c75d0a23size 102476
11 unmodified lines12131415161711 unmodified linesCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-referenceReports:- JMartinez_OuraAppAssistantReport.pdf- JM_QualitativeEvaluationOutput.pdf11 unmodified lines121314151617181920212223242511 unmodified linesCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-referenceOura Ring App AssistantJonathan A Martinezjmartinez.egr@gmail.com210-833-5425Public Access Link: https://huggingface.co/spaces/devTamale2912/JMOuraAppAssistantNote: Public UI leverages OpenAI GPT-4Reports:- JMartinez_OuraAppAssistantReport.pdf- JM_QualitativeEvaluationOutput.pdf
123version https://git-lfs.github.com/spec/v1oid sha256:17775b108015a96b3bde05ab0531aaa106593f3be8f1d8818d4c13489dda5295size 12428045 unmodified lines464748495051529 unmodified lines62636465666783 unmodified lines15115215315415515615749 unmodified lines20720820921021121221345 unmodified lines" metadata={\"hnsw:space\": \"cosine\"} \n",")\n","\n","# Initialize LLM (Ollama Mistral model)\n","def query_ollama(query, context):\n"," # Construct prompt with instructions, context, and query\n"," prompt = (\n",9 unmodified lines" response = ollama.chat(model=\"mistral\", messages=[{\"role\": \"user\", \"content\": prompt}])\n"," return response[\"message\"][\"content\"]\n","\n","def query_openai(query, context):\n"," client = OpenAI(api_key=os.getenv(\"OPENAI_API_KEY\"))\n","\n",83 unmodified lines"source": ["\n","providers = {\"Ollama (Mistral) Evaluation\": \"ollama\", \n"," \"Open AI (gpt-4) Evaluation\": \"openai\"}\n","query_types = {\"Relevant Queries\": [\n","\"How can I set the language for the Oura App?\",\n","\"Does the Oura App provide information about sleep quality?\"],\n",49 unmodified lines" fn=ask_oura_assistant, \n"," inputs=[\n"," gr.Textbox(label=\"Ask a question...\"), \n"," gr.Dropdown([\"OpenAI (gpt-4)\", \"Ollama (Mistral)\"], label=\"Select Provider\") \n"," ],\n"," outputs=\"text\", \n"," title=\"Oura Ring App Assistant\",\n",45 unmodified lines464748495051529 unmodified lines6263646566676883 unmodified lines15215315415515615715849 unmodified lines20820921021121221321445 unmodified lines" metadata={\"hnsw:space\": \"cosine\"} \n",")\n","\n","# Query LLM (Ollama Mistral model)\n","def query_ollama(query, context):\n"," # Construct prompt with instructions, context, and query\n"," prompt = (\n",9 unmodified lines" response = ollama.chat(model=\"mistral\", messages=[{\"role\": \"user\", \"content\": prompt}])\n"," return response[\"message\"][\"content\"]\n","\n","# Query LLM (OpenAI GPT-4 model)\n","def query_openai(query, context):\n"," client = OpenAI(api_key=os.getenv(\"OPENAI_API_KEY\"))\n","\n",83 unmodified lines"source": ["\n","providers = {\"Ollama (Mistral) Evaluation\": \"ollama\", \n"," \"Open AI (GPT-4) Evaluation\": \"openai\"}\n","query_types = {\"Relevant Queries\": [\n","\"How can I set the language for the Oura App?\",\n","\"Does the Oura App provide information about sleep quality?\"],\n",49 unmodified lines" fn=ask_oura_assistant, \n"," inputs=[\n"," gr.Textbox(label=\"Ask a question...\"), \n"," gr.Dropdown([\"OpenAI (GPT-4)\", \"Ollama (Mistral)\"], label=\"Select Provider\") \n"," ],\n"," outputs=\"text\", \n"," title=\"Oura Ring App Assistant\",\n",
.gitattributes+1
JM_QualitativeEvaluationOutput.pdf+2-2
README.md+8
ReadMe.pdfAdded+3
runOuraAppAssistant.ipynb+4-3