Investigations - ollama
-
Ad-hoc tool calling prompting
-
ollama tool calling support
-
CORS and ollama
-
https://medium.com/dcoderai/how-to-handle-cors-settings-in-ollama-a-comprehensive-guide-ee2a5a1beef0
-
OLLAMA_ORIGINS=*
-
For Mac
-
launchctl setenv OLLAMA_ORIGINS "*"
-
-
-
Default keep alive
Log
[/usr/share/ollama/.ollama/models/blobs] $ sudo cp /home/haruki-sato/.ollama/models/blobs/sha256-* ./ $ ls sha256-34bb5ab01051a11372a91f95f3fbbc51173eed8e7f13ec395b9ae9b8bd0e242b sha256-a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd sha256-56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb sha256-dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff sha256-966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396 sha256-fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d $ sudo chown ollama:ollama * $ ls -lha total 1.9G drwxr-xr-x 2 ollama ollama 4.0K Oct 8 11:44 . drwxr-xr-x 3 ollama ollama 4.0K Oct 8 11:43 .. -rw-r--r-- 1 ollama ollama 561 Oct 8 11:44 sha256-34bb5ab01051a11372a91f95f3fbbc51173eed8e7f13ec395b9ae9b8bd0e242b -rw-r--r-- 1 ollama ollama 96 Oct 8 11:44 sha256-56bb8bd477a519ffa694fc449c2413c6f0e1d3b1c88fa7e3c9d88d3ae49d4dcb -rw-r--r-- 1 ollama ollama 1.4K Oct 8 11:44 sha256-966de95ca8a62200913e3f8bfbf84c8494536f1b94b49166851e76644e966396 -rw-r--r-- 1 ollama ollama 5.9K Oct 8 11:44 sha256-a70ff7e570d97baaf4e62ac6e6ad9975e04caa6d900d3742d37698494479e0cd -rw-r--r-- 1 ollama ollama 1.9G Oct 8 11:44 sha256-dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff -rw-r--r-- 1 ollama ollama 7.6K Oct 8 11:44 sha256-fcc5a6bec9daf9b561a68827b67ab6088e1dba9d1fa2a50d7bbcc8384e0a265d $ sudo cp -a /home/haruki-sato/.ollama/models/manifests ./manifests $ sudo chown ollama:ollama -r manifests/ $ ls -lha `find manifests/` -rw-r--r-- 1 ollama ollama 1005 Oct 7 18:21 manifests/registry.ollama.ai/library/llama3.2/latest manifests/: total 12K drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 . drwxr-xr-x 4 ollama ollama 4.0K Oct 8 11:51 .. drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 registry.ollama.ai manifests/registry.ollama.ai: total 12K drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 . drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 .. drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 library manifests/registry.ollama.ai/library: total 12K drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 . drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 .. drwxr-xr-x 2 ollama ollama 4.0K Oct 7 18:21 llama3.2 manifests/registry.ollama.ai/library/llama3.2: total 12K drwxr-xr-x 2 ollama ollama 4.0K Oct 7 18:21 . drwxr-xr-x 3 ollama ollama 4.0K Oct 7 18:21 .. -rw-r--r-- 1 ollama ollama 1005 Oct 7 18:21 latest
Log of Generating a templated link
With NO knowledge
You Could you help me schedule a meeting for tomorrow 12:00-? gemma2:27b Please give me more information so I can help you schedule your meeting! Who needs to be at the meeting? What is the purpose of the meeting? How long do you think the meeting will last? (e.g., 30 minutes, 1 hour) Do you have a preferred platform for the meeting (e.g., Zoom, Google Meet)? Once I have this information, I can help you find a suitable time and send out invitations. You attendees: Haruki & Master Yoda. topic: how to make green force out of red one duration: 99min tool: zoom gemma2:27b This sounds like an intriguing meeting! Let me see...finding a 99-minute slot tomorrow at 12:00pm for Haruki, Master Yoda and on Zoom might be tricky. Yoda has notoriously unpredictable scheduling, and a 99-minute session is quite long! To make sure this goes smoothly: Confirm with Haruki: Double-check that they're available tomorrow at 12:00pm for a meeting of this length. Yoda's Wisdom: Perhaps Yoda could provide a more specific timeframe he'd be available? A shorter initial session might be easier to schedule. Once I have confirmation from both attendees, I can help generate a Zoom invitation. May the Force be with you in your scheduling endeavors! 😜 You Can you make a Google Calendar Link to add an entry? gemma2:27b You got it! Since I can't directly access and create calendar entries for you, I can give you the building blocks to create the Google Calendar link yourself. Here's how you would structure a Google Calendar event link: https://calendar.google.com/event?action=TEMPLATE&text=[EVENT_TITLE]&details=[EVENT_DESCRIPTION]&location=[LOCATION]&dates=[START_DATE]/[END_DATE] Let's fill it in with your meeting details. Remember, you'll need to adjust the timezones accordingly: EVENT_TITLE: "Green Force Transformation with Haruki & Master Yoda" EVENT_DESCRIPTION: "Discussion on techniques for converting red force energy into green force energy." LOCATION: "Zoom Meeting" (you can include a Zoom link here once you've created the meeting) DATES: Use the format YYYYMMDDTHHMMSSZ. For example: Tomorrow at 12:00 pm: 20231027T120000Z Example Link: (Remember to replace the bracketed information with your specific details) https://calendar.google.com/event?action=TEMPLATE&text=Green Force Transformation with Haruki & Master Yoda&details=Discussion on techniques for converting red force energy into green force energy.&location=Zoom Meeting&dates=20231027T120000Z/20231027T1339▋ Once you create the Zoom meeting, replace "Zoom Meeting" with the actual link. Then, share this Google Calendar link with Haruki and Master Yoda so they can easily add it to their calendars!
With a piece of knowledge in a system prompt
You Could you help me schedule a meeting for tomorrow 12:00-? gemma2:27b Okay, I can help with that! To get started, please tell me what date and timezone you'd like to manage tasks for. 😊 For example, you could say "Tomorrow, October 27th, in the Pacific Standard Time (PST) zone". You Today is 2024-10-09. Tomorrow is 2024-10-10. All in JST. gemma2:27b Great! So we're working with tasks for October 10th, 2024, in JST. Let me know when you have a list of tasks ready. I'll help you prioritize them and even generate Google Calendar links for easy scheduling. 🗓️ For now, your task list is empty: Task ID Name Status URL Note You A meeting with attendees: Haruki & Master Yoda. topic: how to make green force out of red one duration: 99min tool: zoom gemma2:27b Sounds like a fascinating topic! 🤔 Let's get that meeting scheduled. Here's what I've added to your task list: Task ID Name Status URL Note 1 Meeting with Haruki & Master Yoda 📝 Planned [Link will be generated upon confirmation] Discuss transforming red Force into green. Duration: 99 minutes. Tool: Zoom. To finalize the Google Calendar event, I just need a start time for the meeting. What time would work best for you and your attendees? Remember, Yoda might have some... unique scheduling preferences. 👽 Let's make sure this aligns with the Force! ✨ You start time is 12:00- gemma2:27b Excellent! Let's get that meeting scheduled with the power of Google Calendar. Here's your event link: [https://www.google.com/calendar/render?action=TEMPLATE&text=Meeting%20with%20Haruki%20%26%20Master%20Yoda&dates=20241010T120000Z/20241010T133900Z&location=Zoom&details=Discuss%20transforming%20red%20Force%20into%20green.%20Duration:%2099%20minutes.] Remember to replace "Zoom" with the actual meeting link when you set up the Zoom session. I've updated your task list: Task ID Name Status URL Note 1 Meeting with Haruki & Master Yoda ✅ Scheduled [Link above] Discuss transforming red Force into green. Duration: 99 minutes. Tool: Zoom. Let me know if there are any other tasks you'd like to add for tomorrow!
With a piece of knowledge in Embeddings
You Could you help me schedule a meeting for tomorrow 12:00-? gemma2:27b I am tuned to only answer questions that are related to the context. Citations You okok, still I have more details. A meeting with attendees: Haruki & Master Yoda. topic: how to make green force out of red one duration: 99min tool: zoom gemma2:27b I can help you schedule that meeting! Here's a Google Calendar link you can use: https://www.google.com/calendar/render?action=TEMPLATE&text=Green%20Force%20Meeting&dates=20231027T120000Z/20231027T133900Z&location=Zoom&details=Meeting%20with%20Haruki%20%26%20Master%20Yoda%20to%20discuss%20how%20to%20make%20green%20force%20out%20of%20red%20one. Let me know if you need to make any changes! Citations