Showing posts with label nifi. Show all posts
Showing posts with label nifi. Show all posts

AIM Weekly for 10 June 2024

 

10-June-2024

Tim Spann @PaaSDev

Milvus - Towhee - Attu - Feder - GPTCache - VectorDB Bench

Important Poll:

https://www.linkedin.com/posts/timothyspann_now-that-i-am-doing-a-lot-of-cool-ai-and-activity-7201995051491635200-olsD?utm_source=share&utm_medium=member_desktop

AIM Weekly

Towhee - Attu - Milvus (Tim-Tam)

FLaNK - FLiPN

https://github.com/milvus-io/milvus

https://pebble.is/PaaSDev

https://vimeo.com/flankstack

https://www.youtube.com/@FLaNK-Stack

https://www.threads.net/@tspannhw

https://medium.com/@tspann/subscribe

https://ossinsight.io/analyze/tspannhw

CODE + COMMUNITY

Please join my meetup group NJ/NYC/Philly/Virtual.

https://www.meetup.com/unstructured-data-meetup-new-york/

This is Issue #141

New Releases

Milvus Lite 2.4.3 - Local Python

Upcoming

There's time to join today's meetup in San Francisco June 10 https://lu.ma/0yw4coyr

These last couple were amazing.

YouTube videos of all 3 most recent events. June 3rd hosted by Chris https://www.youtube.com/watch?v=UobR3czXqSo&list=PLPg7_faNDlT7SC3HxWShxKT-t-u7uKr--

May 22nd hosted by Chris https://www.youtube.com/watch?v=6pjObdJdyFs&list=PLPg7_faNDlT7SC3HxWShxKT-t-u7uKr--&index=2

May 21st hosted by Christy https://www.youtube.com/watch?v=VEK3_e-DbWI&list=PLPg7_faNDlT7SC3HxWShxKT-t-u7uKr--&index=3

Summary of the Last Awesome Meetup https://www.linkedin.com/feed/update/urn:li:activity:7202803256891248640/

Articles

There's a lot of cool stuff with Milvus and new models, techniques, libraries and use cases.

https://medium.com/@tspann/unstructured-street-data-in-new-york-8d3cde0a1e5b

https://medium.com/@tspann/tech-week-soft-meetup-debut-june-2024-fc4cdf79342d

https://medium.com/@tspann/shining-some-light-on-the-new-milvus-lite-5a0565eb5dd9

https://zilliz.com/blog/why-i-joined-zilliz-tim-spann

https://www.tiktok.com/@tim_the_nifi_guy/video/7374753137074212142

https://milvus.io/docs/multi_tenancy.md#Partition-oriented-multi-tenancy

https://zilliz.com/blog/improve-behavior-science-experiments-with-llm-and-milvus

https://platform.openai.com/docs/guides/embeddings/what-are-embeddings

https://llava-vl.github.io/

https://huggingface.co/google/efficientnet-b4

https://towardsdatascience.com/understanding-masked-language-models-mlm-and-causal-language-models-clm-in-nlp-194c15f56a5

https://jina.ai/news/implementing-a-chat-history-rag-with-jina-ai-and-milvus-lite/

https://zilliz.com/blog/elevating-user-experience-with-image-based-fashion-recommendations

https://medium.com/aiguys/yolov10-object-detection-king-is-back-739eaaab134d

https://medium.com/follower-booster-hub/sqlcoder-70b-becomes-the-leading-ai-sql-model-b2911920f594

https://medium.com/@learn-simplified/why-entire-ai-field-is-headed-towards-ai-agents-a268ac9661ed

https://medium.com/@zilliz_learn/advanced-retrieval-augmented-generation-rag-apps-with-llamaindex-ffc966390332

https://pub.towardsai.net/llama-3-llama-cpp-is-the-local-ai-heaven-4f8fe7f119be

https://medium.com/@basics.machinelearning/discover-docllm-the-new-llm-from-jpmorgan-for-working-with-complex-documents-5f54ea287d52

https://medium.com/@igorvgorbenko/harmony-in-data-the-music-recommendation-system-with-milvus-c9711609ed36

https://www.pythonmorsels.com/cli-tools/

https://medium.com/vector-database/introducing-pymilvus-integration-with-embedding-models-a82f10d516ea

https://zilliz.com/blog/praticial-tips-and-tricks-for-developers-building-rag-applications

https://genai-handbook.github.io/?utm_source=substack&utm_medium=email

https://zilliz.com/learn/everything-you-should-know-about-vector-embeddings

https://medium.com/@zilliz_learn/milvus-reference-architectures-e30a27c9f3c2

https://medium.com/@batuhansenerr/yolov10-custom-object-detection-bd7298ddbfd3

https://medium.com/enterprise-rag/kickstart-your-genai-applications-with-milvus-lite-and-whyhow-ais-open-source-rule-based-retrieval-70873c7576f1

https://www.phoronix.com/news/AMD-Peano-LLVM-Ryzen-AI

https://stackoverflow.blog/2024/06/06/breaking-up-is-hard-to-do-chunking-in-rag-applications/

https://zilliz.com/event/knowledge-graphs-in-rag-with-whyhow-ai/success?utm_campaign=2024-06-06_webinar_whyhow-ai_zilliz&utm_medium=email&_hsenc=p2ANqtz-96dlzr_6fS86ImdAwqhcJ2xxKs_qMoRGbBajbhRxZImTPovcR_9BulWcj7EJ-sJMGJ68UUkR9Sbe1VZs8TZ7z5u-hbuQ&_hsmi=310626886&utm_source=singleoffer

https://medium.com/aiguys/prompt-engineering-is-dead-dspy-is-new-paradigm-for-prompting-c80ba3fc4896

https://medium.com/sourcescribes/trending-open-source-ai-research-projects-171fef330219

https://medium.com/@zilliz_learn/are-cpus-enough-a-review-of-vector-search-running-on-novel-hardware-2c5eb16d25dd

Videos

Street Cams + Milvus https://medium.com/@tspann/unstructured-street-data-in-new-york-8d3cde0a1e5b

Conf42: ML: Emerging GenAI https://youtu.be/ktVVdJB306U?feature=shared

Generative AI with Milvus https://www.youtube.com/watch?v=IfWIzKsoHnA

SF Unstructured Meetup - 03 June 2024 https://www.youtube.com/watch?v=UobR3czXqSo&ab_channel=Zilliz

Slides

https://www.slideshare.net/slideshow/generative-ai-on-enterprise-cloud-with-nifi-and-milvus/267678399

https://www.slideshare.net/slideshow/06-04-2024-nyc-tech-week-discussion-on-vector-databases-unstructured-data-and-ai/269523214

Events

June 12, 2024: Budapest Data + ML Forum. Virtual. image https://budapestml.hu/2024/en/speakers/

June 13-14, 2024: Data Science Summit ML Edition 2024 | 13.06.2024 - 14.06.2024 https://ml.dssconf.pl/#agenda

June 18, 2024: Princeton Meetup https://www.meetup.com/applied-generative-artificial-intelligence-applications/events/301336510/ https://www.startupgrind.com/events/details/startup-grind-princeton-presents-genai-gathering/

June 20, 2024: AI Camp Meetup. NYC. https://www.meetup.com/unstructured-data-meetup-new-york/events/301383476/

Sept 24, 2024: JConf.Dev. Dallas. https://2024.jconf.dev/session/598816

Nov 5-7, 10-12, 2024: CloudX. Online/Santa Clara. https://www.developerweek.com/cloudx/

Nov 19, 2024: XtremePython. Online. https://xtremepython.dev/2024/

Code

Models

Tools

Cool

This is a cool Raspberry Pi Pico + ESP copter https://www.kickstarter.com/projects/sb-gajendra/piwings-soar-into-stem-with-the-ultimate-pi-powered-drone?ref=checkout_rewards_page

ASCII Movies https://ascii.theater/

More ASCII Fun https://meatfighter.com/ascii-silhouettify/

© 2020-2024 Tim Spann https://www.youtube.com/@FLaNK-Stack FLaNK-AIM with LLAMA 3


🎥 Playlist:  Unstructured Data Meetup  [https://www.meetup.com/unstructured-data-bay-area/events/](https://www.meetup.com/unstructured-data-bay-area/events/)
🖥️ Website:  [https://www.youtube.com/@MilvusVectorDatabase/videos](https://www.youtube.com/@MilvusVectorDatabase/videos)
X Twitter -   / milvusio  [https://x.com/milvusio](https://x.com/milvusio)
🔗 Linkedin:  / zilliz  [https://www.linkedin.com/company/zilliz/](https://www.linkedin.com/company/zilliz/)
😺 GitHub: [https://github.com/milvus-io/milvus](https://github.com/milvus-io/milvus)
🦾 Invitation to join discord:   / discord  [https://discord.com/invite/FjCMmaJng6](https://discord.com/invite/FjCMmaJng6)

Streaming Data with Cloudera Data Flow (CDF) Into Public Cloud (CDP)

Streaming Data with Cloudera Data Flow (CDF) Into Public Cloud (CDP)






At Cloudera Now NYC, I showed a demo on streaming data from MQTT Sensors and Twitter that was running in AWS.   Today I am going to walk you through some of the details and give you the tools to build your own streaming demos in CDP Public Cloud.   If you missed that event, you can watch a recording here.



Let's get streaming!



Let's login, I use Okta for Single-Sign On (SSO) which makes this so easy.  Cloudera Flow Management (CFM) Apache NiFi is officially available in the CDP Public Cloud.   So get started here.   We will be following the guide (https://docs.cloudera.com/cdf-datahub/7.1.0/howto-data-ingest.html).   We are running CDF DataHub on CDP 7.1.0.

There's a lot of data engineering and streaming tasks I can accomplish with few clicks.   I can bring up a virtual datawarehouse and use tools like Apache Hue and Data Analytics Studio to examine database and tables and run queries.



We go to Data Hub Clusters and can see the latest Apache NiFi in there.   You can see we have Data Engineering, Kafka and NiFi clusters already built and ready to go.   It only takes a click, a few drop down settings and a name to build and deploy in minutes.   This saves me and my team so much time.   Thanks Cloud Team!



Kafka and NiFi Data Hub Clusters


Provision a New Data Hub - Op Db


Provision a New Data Hub - NiFi



Once build, the Kafka Data Hub is our launching place for Cloudera Manager, Schema Registry and SMM.



Provision a New Data Hub - Real-Time Data Mart



Data Engineering on AWS Details


Display Environments For Your Clouds



From the DataHub cluster that we built for CFM - Apache NiFi or for Apache Kafka I can access Cloudera Manager to do monitoring, management and other tasks that Cloudera administrators are use to like searching logs.


Let's jump into the Apache NiFi UI from CDP Data Hub.


Once I've logged into Flow Management, I can as an administrator see some of the server monitoring, metrics and administrative features and areas.





Our module for Twitter ingest on CDP Data Hub.





We can download our flow immediately and quickly sent our code to version control.




We consume MQTT messages sent from my IoT gateway that is pushing messages from multiple devices via MQTT.



Using parameters that can be set via DevOps or via Apache NiFi, we setup a reusable component to read from any MQTT broker.   Username, password, broker uri and topic are parameters that we set and can change based on any use needed.





Ingesting from Twitter is just as easy as reading from MQTT.


We can also parameterize our Twitter ingest for easy reuse.  For this twitter ingest, we have some sensitive values that are protected as well as some query terms for twitter to limit our data to airline data.




Editing parameters from the NiFi UI is super easy.





All the data passing through the nodes of my cluster.



Apache NiFi has a ton of tabs for visualizing any of the metrics of interest.

















We are setting a JSON reader for inferring any JSON data.



To write to Kafka, we have some parameters for brokers and a reader/writer for records.  We use the prebuilt "Default NiFi SSL Context Service" for SSL security.   We also need to specify:  SASL_SSL, PLAIN, your username for CDP, your password for CDP.




On a local edge server, We are publishing sensor data to MQTT.




PutHDFS Configuration (Store GZIPPED JSON Files)


Put To Hive Streaming Table


PutORC Files to CNOW3, autoconverted JSON to ORC






When we push to PutORC it will build us the DDL for an external table automatically, just grab it from data provenance.




For storing to Apache Hive 3 tables, we have to set some parameters for Hive Configuration and the metastore from our data store.





In Apache NiFi, Ranger controls policies for permissions to NiFi.  CDP creates one for NiFi Administrators which I am am member.

Version Control is preconfigured for CDP Data Hub NiFi users with the same single sign on.   Apache NiFi Registry will have all our modules and their versions.


Before we push NiFi changes to version control, you get a list of changes you made.



We can see data as it travels through Apache NiFi in it's built-in data provenance (lineage).


Let's check out our new data in Amazon S3.



We want to look at our data in Kafka, so the we can use Cloudera Streams Messaging Manager (SMM) to view, edit, monitor and manage everything Kafka.



We can build alerts for any piece of the Kafka infrastructure (broker, topics, etc...)


I want to look at the lineage, provenance and metadata for my flow from data birth to storage.   Atlas is easy to use and integrated with CDP.   Thanks to the automagic configuration done in Cloudera Enterprise Data Cloud - NiFi, Kafka, HDFS, S3, Hive, HBase and more are providing data that comes together in one easy to follow diagram powered by Graphs.



The connection to Atlas is prebuilt for you in Apache NiFi, you can take a look and see.









Using Apache Hue, I can search our tables and produce simple charts.



We push our merged ORC files to /tmp/cnow3 directory in S3 controlled by HDFS and full security for an external Hive table.




It becomes trivial to push data to S3, whether it's compressed JSON files or internal ORC files used in Hive 3 tables.




As part of our output we push sensor readings to Slack for a sampling of current device status.




We can quickly access Cloudera SMM from CDP Data Hub with a single click thanks to Single Sign On.   Once in SMM, we can build alerts based on conditions within clusters, brokers, topics, consumers, producers, replication and more.


We can look at topics and see alerts in one UI.




We can view our alert messages from our history display.


After alerts are triggered, we can see a history of them in the UI for a single pane of glass view of the system.


The Brokers screen shows me totals for all the brokers and individual broker data.


I can browse inside a topic like this one for our sensors data.   I can view the key, offset, timestamp and data.   I can view text, byte, json and AVRO formatted data.   There is also a connection to the schema it used from the Cloudera Schema Registry.



Below is an example email sent via Cloudera SMM for an alert condition on Kafka.


Before we can query the ORC files that we have stored in HDFS, we'll need to create an external Hive table.


We can use Apache Hue or Data Analytics Studio to query our new table.



If you need to connect to a machine, you can SSH into an instance.  


If you need more information, join us in the Cloud, in the Community or up close in virtual Meetups.

Additional Resources