<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ike Stevens on Medium]]></title>
        <description><![CDATA[Stories by Ike Stevens on Medium]]></description>
        <link>https://medium.com/@ikestevens27?source=rss-813812c97428------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*w6BsPUpgBFLGkWEdU7doVg.jpeg</url>
            <title>Stories by Ike Stevens on Medium</title>
            <link>https://medium.com/@ikestevens27?source=rss-813812c97428------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:03:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ikestevens27/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Entries to Insights: Building an AI-Powered Journal Assistant with RAG]]></title>
            <link>https://ikestevens27.medium.com/from-entries-to-insights-building-an-ai-powered-journal-assistant-with-rag-0b61292f8914?source=rss-813812c97428------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b61292f8914</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[journal]]></category>
            <dc:creator><![CDATA[Ike Stevens]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 13:28:05 GMT</pubDate>
            <atom:updated>2024-03-26T14:20:47.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCDw01w_3z4EtI1tul7r2g.png" /></figure><p>I’m an avid journaler. For nearly 10 years, I’ve written at least a page in my journal every day. Even on late nights, or while camping, I brought my journal with me, and I made sure to jot down some quick thoughts. Each page is a reflection of the day’s events or the emotions and thoughts I experienced. After digitizing every entry, I’ve compiled a fairly detailed archive of my life over the last decade, capturing both my triumphs and also my challenges and fears.</p><h3><strong>Analyzing My Journal</strong></h3><p>As a Data Scientist, analyzing my journal has become an incredibly rewarding project. I’ve used sentiment analysis to explore the emotional tones of my entries. Notably, the year after graduating from university and moving to a new city for work featured the highest number of negative entries than any other period (it was a hard year!). This transitional phase is often challenging for many, so it’s neat to see my journal quantitatively reflect that experience.</p><p>Besides that, I’ve tracked word frequencies to spot recurring themes and trends — I’ve been playing less basketball as the years go by unfortunately. I’ve experimented with clustering, NER (Named Entity Recognition), topic modeling, word embeddings, and other NLP (Natural Language Processing) techniques. I even tried linking each entry to biometric data from my Apple Watch, thinking maybe my sleep or exercise habits influenced my journal’s mood. I found no correlation in that model — there are a lot more variables I’d need to collect. I’m constantly thinking of other ways I could extract more insights from my journal.</p><p>In an effort to streamline manually reviewing past journal entries, I developed an automated Python script I called my ‘Journal Digest,’ which emails me past journal entries from the same date across all previous years (like Google Photos ‘3 Years Ago’ photo memories feature). This has provided a fairly succinct snapshot into how my attitudes and fears have evolved over the years. While this tool has yielded valuable insights, sifting through these entries daily is still time-consuming. An AI assistant capable of processing multiple entries simultaneously to identify patterns would greatly improve the efficiency and depth of my analysis.</p><h3><strong>Enter RAG</strong></h3><p>With the development of Retrieval Augmented Generation (RAG) tools, which use documented knowledge to inform and customize responses from Large Language Models (LLMs), I realized my journal was an ideal candidate for creating this type of AI-Powered Journal Assistant. RAG is essentially just using an LLM like ChatGPT, but before you ask it a question, you augment the prompt to have all the relevant information that it needs, and then the LLM just has to read the context to answer the question.</p><p>An AI that is capable of reading through many entries added to a prompt could quickly synthesize information conveniently for me. Queries like</p><blockquote>‘What were some of my proudest accomplishments from the summer of 2022?”</blockquote><p>could easily be answered without requiring me to read months of entries. Through filtering the available documents (the retrieval step of RAG) and passing them through to an LLM — iteratively in rounds if there are a lot of filtered documents — I could achieve this affect.</p><h3>OpenAI’s Custom GPTs</h3><p>In November 2023, OpenAI released their commercial RAG feature called Custom GPTs. I eagerly built a private Custom GPT on OpenAI’s platform to read through my journal (maybe I’m too trusting of personal data on OpenAI, but that’s for another discussion). It was fascinating to see the LLM respond to my queries with information gathered from my journal. It can’t read all my journal entries at once, so it finds a way to filter to a select number, and send those through in the prompt. It’s able to synthesize information and spot some trends and patterns.</p><p>But the performance can be haphazard. Sometimes it completely hallucinates a response; I usually need to directly instruct it to reference my uploaded journal. In analyzing it’s retrieval process, I see that it uses simple keyword search or date filtering to sift through the journal to relevant entries. The app works well with simple queries with a short, definitive time frame. For instance, when I ask the following prompt I get a very coherent and useful response shown below (with personal events and persons removed):</p><h4>Journal GPT Prompt:</h4><h4>What were some of my biggest fears in March 2020? Please include specific quotes from meaningful and significant entries. You need to reference the journal file. Read all the entries from March 2020 and then answer.</h4><h4>Journal GPT Response:</h4><blockquote>Reflecting deeply on your journal entries from March 2020, here are specific quotes and the context of your biggest fears and concerns during that pivotal month:</blockquote><blockquote><strong>1. Realization of the Global Crisis:</strong><br> — On <strong>March 11th</strong>, you noted: “Wow. Okay, the coronavirus is for real. Tom Hanks and Rita Wilson got it…” This entry captures the moment the pandemic’s reality hit home for you, marked by the news of celebrities contracting the virus, symbolizing the widespread and indiscriminate nature of the threat.</blockquote><blockquote><strong>2. Transition to Remote Work:</strong><br> — By <strong>March 16th</strong>, the shift to working from home is mentioned: “Working from home! I got back into doing analytics…” This transition signifies the beginning of adapting to a new normal, underscoring concerns about productivity and the blurring lines between personal and professional life in isolation.</blockquote><blockquote><strong>3. Concerns About Social Isolation:</strong><br> — Your entry on <strong>March 15th</strong> speaks to isolation: “Today I was an introvert. Did some introverted things…” This reflects the onset of social distancing measures and their immediate impact on your social interactions and mental well-being.</blockquote><blockquote><strong>4. Adapting to Changes and Uncertainty:</strong><br> — On <strong>March 23rd</strong>, you described the overarching situation: “Another day under quarantine. COVID-19. It’s a bit surreal how the world has changed so fast.” This quote encapsulates the rapid changes in daily life and the uncertainty about the future, highlighting concerns about how long the pandemic would last and its long-term impacts.</blockquote><blockquote><strong>5. Seeking Normalcy Amidst Crisis:</strong><br> — By <strong>March 31st</strong>, reflecting on the continuous adaptation, you said: “Another day under Corona. Today I made a little bit of progress on my personal projects…” This illustrates an attempt to find a sense of normalcy and productivity amidst ongoing crisis and uncertainty, indicating your resilience in facing prolonged challenges.</blockquote><blockquote>These quotes and contexts from your journal entries show a journey through initial shock, adjustment to a new way of living and working, dealing with isolation, and striving for personal growth despite the circumstances. The entries reflect a period of significant change and adaptation, with a focus on maintaining mental health and seeking stability in the face of a global crisis.</blockquote><p>Though a little verbose and generalized, this response and others have been interesting to read! However, after building custom RAG applications at work, I wanted to take a stab at building my own retrieval mechanism for a personally built AI Journal Assistant. If anything, it would help me explore the possibilities for retrieval and prompt augmentation.</p><h3><strong>Building My Own RAG Application</strong></h3><p>I decided to build my own RAG application to have greater control and transparency into the retrieval aspect of RAG. Filtering down a decade of potential journal entries is a unique challenge. As a Machine Learning Engineer at DHI Group (Dice.com) I’ve built custom RAG tools that use vector databases to store and enrich augmented prompts. Vector databases are optimized to store and retrieve documents very efficiently. Most RAG applications utilize vector databases for document retrieval. So I originally experimented with storing my journal in a locally hosted Qdrant database. Each entry was vectorized and stored for quick retrieval based on vector similarity. However, common queries for my journal assistant would be short questions like what I mentioned above:</p><blockquote>“What were my biggest challenges in March 2020?”</blockquote><p>These questions, once vectorized, don’t compare well to my entries. These queries yielded poor results when extracting the most ‘similar’ journal entries, which contain much more complicated ideas than a single question. I thought about storing each sentence in my journal as it’s own vector, so that the vector comparison might improve, but that sounded too complicated for right now, so I decided to store my journal as text based entries (similar to Custom GPT).</p><h3><strong>Two Types of Queries</strong></h3><p>I noticed that many of my queries fall into these two categories: date based queries, and non-date based. Questions like</p><blockquote>“What were my biggest accomplishments of June 2022?”</blockquote><p>present a clean date time frame to extract entries (like OpenAI’s Custom GPT did for March 2020). But questions like,</p><blockquote>“When did I travel to Jordan with my friends Matt and AJJ?”</blockquote><p>need to filter entries based on keywords because the date isn’t presented in the query. The commercial Custom GPT above performs really poorly at these keyword based queries. This was the area I wanted to focus on the most with my personalized RAG app.</p><h3>First Step — Date or Keyword Search?</h3><p>To separate these queries into the two categories, the first step in my personal RAG app workflow sends the query through a function to identify if the question is date based, or non-date based:</p><pre>import re<br><br>def contains_date(text):<br>    # Regular expression to match a four-digit year (e.g., 2020)<br>    year_pattern = r&#39;\b(19|20)\d{2}\b&#39;<br>    # Regular expression to match month names (full names)<br>    month_pattern = (<br>        r&#39;\b(January|February|March|April|May|June|&#39;<br>        r&#39;July|August|September|October|November|December)\b&#39;<br>    )<br>    # Check if the text contains a year or a month name<br>    if re.search(year_pattern, text) or re.search(month_pattern, text):<br>        return True<br>    else:<br>        return False</pre><h3><strong>Date Queries</strong></h3><p>If the query contains a date, then I simply filter my journal to the specified time frame. I use a call to an LLM to give me the time frame as a parsable JSON, since some of my queries might be more complicated to understand:</p><pre>def extract_date_range(openai_client, query):<br>    extract_prompt = &quot;&quot;&quot;<br>    From the following query, identify and extract <br>    the date range mentioned in the query and <br>    format it as a json. Ensure to cover various <br>    time frames such as specific days, months, <br>    years, or combinations thereof. Output the <br>    extracted date range in a json structured <br>    format that includes the start and end dates. Ex.<br><br>    {<br>    &quot;start_date&quot;: {&quot;year&quot;: 2022, &quot;month&quot;: &quot;July&quot;, &quot;day&quot;: 1},<br>    &quot;end_date&quot;: {&quot;year&quot;: 2022, &quot;month&quot;: &quot;July&quot;, &quot;day&quot;: 31}<br>    }<br>    &quot;&quot;&quot;<br><br>    meta_query = extract_prompt + \<br>    &quot;Query:&quot; + query + \<br>    &quot;Date Range as json:&quot;<br><br>    final_answer = openai_client.chat.completions.create(<br>        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: meta_query}],<br>        model=&quot;gpt-3.5-turbo&quot;,<br>        )<br>    return final_answer.choices[0].message.content</pre><p>This is the first in a chain of LLM calls, similar to a LangChain or Agent approach. Once the time frame is extracted and filters down my entries. I prepare my entries into batches to send to OpenAI.</p><p>OpenAI’s GPT-3.5-turbo model has a token limit of 4096 tokens, so I can only send about 12–15 journal entries at a time. If my filtered list contains 100 entries, then I need to chunk them into several batches and iteratively send them to OpenAI and get summaries for each section. Finally, I make a final LLM call to summarize the summarizations to answer the original query.</p><p>For example, when I ask:</p><blockquote>What were my biggest accomplishments in May 2022?</blockquote><p>There are two batches of entries that each get a summary (again, with some sections removed for privacy and brevity):</p><blockquote><strong>May 1st — 17th, 2022: </strong>Your biggest accomplishments in May 2022 were graduating from your Master’s program and purchasing a Subaru Crosstrek. You successfully presented your final paper on the artwork GAN and completed the final exam for your deep learning presentation. Furthermore, you played a significant role in the data deployment at work.</blockquote><blockquote><strong>May 18th — 31st, 2022: </strong>Some of your biggest accomplishments in May 2022 include graduating with a Master’s degree, being valued and recognized as a value member on your team at work, and celebrating your birthday with Liz and friends. Work-related accomplishments include conducting interviews for your team, addressing bugs and finishing projects successfully.</blockquote><p>Followed by the final summarization:</p><blockquote>Your biggest accomplishments in May 2022 were graduating from your Master’s program and purchasing a Subaru Crosstrek, as well as successfully presenting your final paper on the artwork GAN and completing the final exam for your deep learning presentation. Additionally, you played a significant role in the data deployment at work.</blockquote><p>This example only has two batches to summarize at the end because I wanted to show a short example. I’ve done examples with 6–8 months that have 13–15 batches. The performance can be inconsistent with large date internals, but it performs better than the Custom GPT from OpenAI which doesn’t have this chaining multi-call agent behavior implemented yet.</p><p>Also, in the interface for this AI Journal Assistant app, I display the batch summaries at the bottom of the page. If I have time or interest, I can read each summary. Or I can simply read the final summary. This personal approach gives me more transparency into the date-based queries.</p><h3>Keyword Filtering</h3><p>For questions without a time frame (the harder challenge), I need to rely on keyword based search. Before performing pure keyword search like the Custom GPT from OpenAI, I perform a call to an LLM to expand my keyword search to more potentially relevant terms.</p><pre>def extract_keywords(openai_client, query):<br>    extract_prompt = &quot;&quot;&quot;<br>    From the following query, identify the keywords <br>    that would be useful to filter the journal<br>    entries to, and only return those keywords as <br>    a python list of strings. Identify useful<br>    word derivatives and abbreviations.<br><br>    Question: When did I read the book Invisible Women?<br><br>    Keyword(s): [&quot;Invisible Women&quot;]<br><br>    Ex. When was my graduation from UVA?<br><br>    Keyword(s): [&quot;graduation&quot;, &quot;graduate&quot;, &quot;grad&quot;, &quot;UVA&quot;, &quot;University of Virginia&quot;]<br>    &quot;&quot;&quot;<br><br>    meta_query = extract_prompt + \<br>    &quot;Question:&quot; + query + \<br>    &quot;Answer:&quot;<br><br>    final_answer = openai_client.chat.completions.create(<br>        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: meta_query}],<br>        model=&quot;gpt-3.5-turbo&quot;,<br>        )<br>    return final_answer.choices[0].message.content</pre><p>Once I’ve collected word derivatives and abbreviations, I filter my journal to entries that contain at least two of the keywords — this is also an adjustable variable. I could set the keyword threshold to 3 or 4. If the 2 required keywords yields few entries, then the app reverts to just 1 keyword. These queries are normally looking for one specific journal entry, so we don’t need a large net of all entries, we just need the ones that could contain our answer.</p><p>To use the original non-date based query as an example:</p><blockquote>When did I travel to Jordan with my friends Matt and AJJ?</blockquote><p>The keyword expansion LLM call retrieves these keywords:</p><pre>[&quot;travel&quot;, &quot;traveled&quot;, &quot;Jordan&quot;, &quot;friends&quot;, &quot;Matt&quot;, &quot;AJJ&quot;]</pre><p>These keywords then filter my journal of over 3,500 entries down to 134 entries. Those 134 entries form 11 batches, from which the Journal Assistant correctly finds the date that I traveled with my friends: March 10th, 2019. Below is a screenshot from the Streamlit app of my Journal Assistant, which also shows the processing time, and how many total LLM calls it took in the chain to generate the final response (13 in this case, 1 call to expand the keywords, 11 calls to summarize each batch, and 1 to summarize the batches):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vjozSINaGcDZHkYWJCkENA.png" /></figure><p>Though my personalized Journal Assistant app performs better than the Custom GPT at these keyword based searches, it still isn’t perfect. Depending on the query and the keywords obtained, the resulting answer doesn’t always make sense. But here I have control into how the keywords are generated and I could even tailor them to specific queries if I wanted.</p><p>As a future improvement, I could create a custom dictionary of alternative names to expand my keyword search. For example, if I have a friend that I sometimes call ‘James’’, sometimes ‘Jimmy’, sometimes a nickname ‘Jay’ in my journal then I could create an alternative names dictionary to expand my keywords to all of those names if I’m asking a query about him.</p><p>Here is the process flow for the full workflow of my AI Journal Assistant App:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tOVFxX9p2NDJIovQK8U1g.png" /></figure><h3>Innovation Ahead</h3><p>It’s been really enriching to experiment with the retrieval aspect of RAG in this project. I might revisit to further improve the performance and usability. The commercial RAG tools like Custom GPT and Amazon Q will also improve over time and become more accurate — with larger context windows, and agent behaviors — which will be exciting to follow.</p><p>I’m also passionate about one day integrating my journal data with a therapist minded AI (with privacy ensured) that could offer insights and ask probing questions to help me explore my past thoughts and feelings. Or even a program that can synthesize my journal info for a human therapist to reference. Still, manually reviewing my journal and processing the information myself offers a lot of benefit.</p><h3><strong>Experiment Yourself</strong></h3><p>If you’d like to use this RAG Journal Assistant with your own journal, feel free to check out this <a href="https://github.com/ikestevens/rag_journal_assistant">github repository</a> with directions on how to kick off the Streamlit app with your own data. You could pull your journal data from apps like One Day or elsewhere and plug them into this app. Or feel free to experiment with the dummy data that’s in the repo. No need to upgrade to ChatGPT Plus to use the Custom GPT feature!</p><p>Thanks for reading and happy journaling!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b61292f8914" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualized Best Picture Nominations: Exploring Data-Driven Art]]></title>
            <link>https://ikestevens27.medium.com/visualized-best-picture-nominations-exploring-data-driven-art-64471dc7b9d0?source=rss-813812c97428------2</link>
            <guid isPermaLink="false">https://medium.com/p/64471dc7b9d0</guid>
            <category><![CDATA[data-driven-art]]></category>
            <category><![CDATA[generative-art]]></category>
            <category><![CDATA[data-scraping]]></category>
            <category><![CDATA[art]]></category>
            <dc:creator><![CDATA[Ike Stevens]]></dc:creator>
            <pubDate>Tue, 14 Mar 2023 03:10:50 GMT</pubDate>
            <atom:updated>2023-03-14T14:38:43.329Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzTVsPOZ-VfLYIM6MBsp_Q.png" /><figcaption>Artwork created using data from the 591 films nominated for Best Picture at the Academy Awards.</figcaption></figure><p><strong>What is Generative Art?</strong></p><p>Generative art is a fascinating genre of art that incorporates external factors, such as chance, data, or other autonomous elements, to influence the characteristics of an artwork. Although the term has become fairly synonymous with computer art, generative art can be created in countless ways. For instance, as far back as 1757, Johann Kirnberger used dice to determine the order of various sections of music he had written, creating one of the earliest examples of generative music. Essentially, any time an element of the artwork is determined outside of the artist, it is considered generative art.</p><p>Of course, using computer code presents the easiest way to incorporate external actors into art. Many coding languages feature frameworks for generating art. One of the most popular libraries is the p5 javascript library (p5js), available with a browser interpreter <a href="https://editor.p5js.org/">here</a>. Through random variables, artists can create an infinite number of iterations to their artwork. Each run of the program can produce a new artwork that even surprises the artist. I love this aspect of the art; it’s as if the program can collaborate with the artist in a sense.</p><p>Through my own explorations, I’ve created a couple generative art projects that produce thousands of iterations. Below is a project entitled ‘reef’ that uses a flow fields algorithm to mimic the sea-like, lulling movement of coral, with randomized color, panel number, sway cycle length, coral length, and density of the coral. Click through the hundreds of variations yourself <a href="https://www.fxhash.xyz/generative/9642">here</a> to experiment with other versions of this artwork. Source code is in this <a href="https://github.com/ikestevens/reef">repo</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F90HktmTdbsc5dw53xN%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExNDM5NTBlMzI3MzI4ZTlmMzBlNzQ3MjgyZTU3Y2ZkNTdhMjY5Nzk5OCZjdD1n%2F90HktmTdbsc5dw53xN%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F90HktmTdbsc5dw53xN%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/76e923b17508b6d796c299a656ecc9b1/href">https://medium.com/media/76e923b17508b6d796c299a656ecc9b1/href</a></iframe><p><strong>Data-Driven Generative Art</strong></p><p>Apart from using chance and rarity to determine artwork features, an exciting genre of generative art uses data to determine characteristics of the art. One multi-media artist named Nathalie Miabach incorporates weather data she’s recorded herself to create beautiful baskets and even musical scores. These creations draw upon the data to tell their story. Visit Miabach’s <a href="https://www.nathaliemiebach.com/">website</a> to further explore her artwork.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ewi8a6bfEFIXa0Hy" /><figcaption>Titled ‘Jordan Basin Buoy’, this 2008 sculpture by Nathalie Miabach translates buoy data of a specific location to understand why Right Whales began gathering at the Bay of Fundy.</figcaption></figure><p>One of my favorite data-influenced works was shown at the Renwick Smithsonian in D.C. The large, <a href="https://americanart.si.edu/exhibitions/echelman">colorful fiber and lighting installation</a> by Janet Echelman uses data collected on March 11th, 2011 following the Tohoku earthquake and tsunami to explore themes regarding the passage of time and our changing planet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Hez7XLggXOkkvvJl.jpg" /><figcaption>Janet Echelman’s 1.8 Renwick artwork uses data collected on March 11th, 2011 following Tohoku earthquake and tsunami.</figcaption></figure><p><strong>How Do Artists Use the Data?</strong></p><p>Artists have complete freedom to use the data as they’d like, whether it be to establish direct correlations to certain features or simply use it as a source of inspiration. Even data visualizations, such as graphs and plots, can also be considered a type of data-driven art. These visualizations effectively communicate a story, much like art. With the ubiquity of data in today’s societies, who knows how artists will use data to raise awareness and captivate audiences in their pieces, much like effective data visualizations display business objectives.</p><p><strong>Oscar’s Best Picture Artwork</strong></p><p>As a data scientist already interested in generative art, I decided to begin dabbling in the world of data-driven art. With the Oscar’s season upon us, I chose to depict movie data. Dating back to the first ever Academy Awards in 1928, there have been 591 movies nominated for Best Picture. Of these 591 movies, only 19 were directed by females. I wanted to make an artwork that showed the slow increase in woman-directed films in the past several years, and hope for more nominated in the future!</p><p>To begin, I chose to display each movie as a thin block shown in a stacked column with the other movies that were nominated each year. There used to be just 5 movies nominated each year, but way back in the 30’s and 40’s, there were as many as 10 movies nominated for Best Picture like there is today. After gathering this data, I presented it like this, with the x-axis being the year:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4V0iGfSGkv4yrDFyibB6Q.png" /><figcaption>First draft of my piece, with the number of blocks for best picture nominees each year.</figcaption></figure><p>Below shows how each of the 95 years of Academy Awards represent the 95 columns in this chart. The movies in each column are ordered alphabetically. There are 10 movies nominated for best picture in 2022, which are the 10 movies blown-up on the right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uBI91naQGzill7AFeTtkqQ.jpeg" /></figure><p>Once I had this first draft, I saw that the middle of the piece looked very repetitive as there were 5 nominations every year for many decades. To add some variation, I decided to incorporate the runtime of each movie so that each block length could represent the runtime relative to the other movies in the year. Once I scraped this data, I used it to decide the length of the block normalized for the number of movies in that given year. Below is the piece with runtime included:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0hUnqYn2X8vUWT4Jp6IzA.png" /><figcaption>Second draft of my data-driven art, adjusting the length of each movie block according to the runtime.</figcaption></figure><p>Already, I loved the look of this artwork. There’s variation and it brings the eyes toward the center of the image. Next I wanted to add color. I decided I’d use the Rotten Tomatoes score (critic’s rating) to determine the color of each block. After scraping the movie scores from Rotten Tomatoes, I saw that the mean score was very high (87), which makes sense because these are the ‘best’ movies of the year. I divided the range into 6 quantiles to somewhat divide the 591 movies into equal groupings of colors. The woman-directed films I also used as its own color, to highlight these films. Here is a key to show which color corresponds to which rating:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*7JtxLluBjgpJkgicT1gjSw.jpeg" /></figure><p>Finally, I scraped the data for best picture winners each year. I experimented with different ways to showcase the winner of each column — using little dots on the block to indicate it won, or lines through the block. I ended up using a thick horizontal line through the middle of the block if it won best picture. Because there are already lines separating the blocks themselves, adding another line is not the most visually clear method for showing the best picture. If this were a data visualization with the purpose of clearly conveying the movie rating and the best picture win status, I definitely wouldn’t organize it this way. But this is where the art aspect overtakes the data presentation. My preference for aesthetics trumps any requirement for a decipherable plot. If the viewer really wants to learn about the nominated movies, they can find another clearer visual, but the piece is meant to be aesthetically pleasing, and show the pattern of female-directed films. Below is the artwork with the added colors (first draft of the colors) and line through the best picture winner (see Everything, Everywhere All at Once, which just won Best Picture for 2022).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frlEhMm7PyewJQwwFYTQPw.jpeg" /></figure><p>Finally, I added a <a href="https://en.wikipedia.org/wiki/Dither">dithering</a> algorithm to give some texture to the artwork. Of course, there is other data I could add to the piece, but it had so much variation at this point, and effectively showed the female-directed films, so I figured it was a good place to stop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*stHHm7t8GB9sYGvi0KtPjg.jpeg" /><figcaption>Small section of the image without dithering.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*DPsPKJtkfTO82nwEGlVQRQ.jpeg" /><figcaption>Small section of image with dithering for texture.</figcaption></figure><p>Here’s the final image, with the final color scheme and at full scale:</p><p><a href="https://www.dropbox.com/s/u6gqoxr1ge4r7he/final_image_colors.png?dl=0">final_image_colors.png</a></p><p>It’s fun to find which block correlates to which movie, but it’s also somewhat appealing to just look at without connecting to movies.</p><p><strong>Happy Art Adventures!!</strong></p><p>I hope this walk through inspired you to create your own data-driven art. Check out the source code <a href="https://github.com/ikestevens/oscar_generative_art">here</a> on Github. There are many resources that teach how to scrape data, and many tools to learn how to generate art using that data. Hope this sparked some ideas on some possible pieces. I wish you all the best in your data art creations!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64471dc7b9d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Prompting: Why “Prompt Engineering” Is a Skill of the Future]]></title>
            <link>https://ikestevens27.medium.com/the-art-of-prompting-why-prompt-engineering-is-a-skill-of-the-future-bbe404c86e64?source=rss-813812c97428------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbe404c86e64</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-art]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[midjourney]]></category>
            <dc:creator><![CDATA[Ike Stevens]]></dc:creator>
            <pubDate>Sun, 18 Sep 2022 03:13:14 GMT</pubDate>
            <atom:updated>2022-09-18T03:13:14.601Z</atom:updated>
            <content:encoded><![CDATA[<p>While it might not seem like typing words into an A.I. bot is a skill, the history of photography suggests that it is — and that it’ll be around for decades to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubk7I46i9gAylsROsick7w.png" /><figcaption>An image created using the A.I. Midjourney with a prompt of <strong>“poncho person in rainy tokyo alleyway many neon lights vaporwave — ar 16:9”</strong></figcaption></figure><h3>Should A.I. Art Win Awards?</h3><p>A recent New York Times <a href="https://www.nytimes.com/2022/09/02/technology/ai-artificial-intelligence-artists.html">article</a> once again brought A.I. art, and all the controversy behind it, into the limelight. The article describes how Jason Allen, a Colorado-based game designer, won first place at an art fair by submitting an A.I.-generated image. Allen made the image using an A.I. tool called Midjourney. The extent of his contribution was essentially typing a collection of words into the program. According to Allen, he carefully crafted the prompt (text) used to produce the final art image. Submitted under the digital art/digitally manipulated photography category, some judges weren’t aware that the image was created using A.I. until after the awards were given. However, after they learned of its true origins, they still felt like it should win first place for the category.</p><p>The story sparked a heated debate on Twitter as to whether the art should have won. Does prompting an A.I. to create art take skill? Should Allen receive any credit? One user on Twitter laughed at the claim that typing words could even be regarded as a skill, saying “I love how they speak of ‘refining their prompt’ as if it was some sort of skill.”</p><h3>Lofren (3D WAIT LIST OPEN!) on Twitter: &quot;I love how they speak of &quot;refining their prompt&quot; as if it was some sort of skill / Twitter&quot;</h3><p>I love how they speak of &quot;refining their prompt&quot; as if it was some sort of skill</p><p>Others claimed that Allen was by no means an artist, but rather a collaborator taking credit for the A.I.’s work.</p><h3>🏳️‍🌈Chris Shehan🔪 on Twitter: &quot;The AI is not a person, but the person who generated it by typing words into the AI is not an artist. They created nothing. At best, they collaborated. A collaboration they can take credit for because there&#39;s no human on the other end. This should not be allowed. It&#39;s terrible. / Twitter&quot;</h3><p>The AI is not a person, but the person who generated it by typing words into the AI is not an artist. They created nothing. At best, they collaborated. A collaboration they can take credit for because there&#39;s no human on the other end. This should not be allowed. It&#39;s terrible.</p><p>These criticisms sound completely valid based on our current cultural understanding of A.I. art. However, they also resemble the early criticisms of photography.</p><h3>Similarities to Photography</h3><p>As the New York Times article aptly points out, the introduction of A.I.-generated images resembles the invention of photography. When photography became a widespread tool to capture images, many voices also criticized the tool, seeing it as a threat to painting. Charles Baudelaire, a French poet and art critic, claimed that photography was by no means an art. He’s quoted as saying photography was a “refuge of failed painters with too little talent.” Though some may still argue that photography takes little talent or it is not a true art, it’s now widely regarded as an artful skill. Learning to capture lighting, using a camera’s lens, etc. — these are all new skills that are now part of a photographer’s repertoire. Photography can also be considered a collaboration with the camera. The creator isn’t making the scene, they are capturing it using the device.</p><p>Just like photography, A.I.-generated images are capturing a moment — they are capturing a scene in a trained machine learning model. Francois Chollet, a renowned machine learning programmer and the author of several books on A.I. and machine learning, also compared A.I. art to photography. He tweeted “Image generation is a form of photography. Photography in a latent space that interpolates between hundreds of millions of images. When you take a photo, you don’t ‘create’ the picture, you take it. You find the scene you want, and you capture it the way you want. It’s curation.”</p><h3>François Chollet on Twitter: &quot;Image generation is a form of photography. Photography in a latent space that interpolates between hundreds of millions of images.When you take a photo, you don&#39;t &quot;create&quot; the picture, you take it. You find the scene you want, and you capture it the way you want. It&#39;s curation. / Twitter&quot;</h3><p>Image generation is a form of photography. Photography in a latent space that interpolates between hundreds of millions of images.When you take a photo, you don&#39;t &quot;create&quot; the picture, you take it. You find the scene you want, and you capture it the way you want. It&#39;s curation.</p><p>Chollet goes on to say that “Instead of walking around in the real world and taking pictures of it, you can now walk around in a latent space that interpolates past human creations, and take pictures of it. Latent space photography. And just like photography, it’s art. It requires the eye of the artist.”</p><p>In the case of photography, those that quickly adapted to the new technology often profited. The artists that shifted from painting to photography saw success in a burgeoning field, while those particularly skilled in painting continued to thrive in their domain. The introduction of photography made portraits accessible to all, not just the elite that could pay for fine artists. Similarly, perhaps A.I.-generated art is making fine, one-of-a-kind art accessible to all.</p><p>Returning to the art fair competition, Allen essentially entered a photography image into a painting competition. He used a cutting-edge tool that requires a different set of skills. When photography was first invented, it wasn’t used to compare to paintings, it was another art entirely. That is why I think that there should be a separate ‘A.I.-generated’ category at the competition, that way the tool is the same for all contestants, and it’s comparing similar skill sets.</p><h3>Honing the Skill of Prompt Engineering</h3><p>As a machine learning artist myself, I also believe that prompt engineering (typing text into an A.I. to create an image) is a skill. Perhaps it’s less of a physical skill than photography, but it’s essentially capturing an image from the A.I. Since reading the New York Times article, I too have started using Midjourney to create A.I.-generated images. Sometimes the images created are incredible works that totally inspire me, but other times they look a bit underwhelming. I see others on the Midjourney Discord with incredibly long prompts that are finely detailing exactly what they want in the image. We’re all new photographers learning how to use a camera, but in this case our tool is the A.I. program. It’s inspiring to me. I feel like I’m new on the scene of the latest skill. I already see a few artists on Fiverr offering their “prompt engineering” skills to curate images.</p><p>In the weeks that I’ve spent playing with the A.I. Midjourney, I’ve seen my ability to engineer prompts slightly improve. There’s even a channel on the Midjourney discord for community members to swap knowledge about prompt engineering. It was from this chat that I learned that you can specifically tell Midjourney to remove certain things from the image. For one image I experimented with the prompt “<strong>forest in the mountains — ar 16:9</strong>”. The ‘ar’ parameter specifies that the aspect ratio is 16 by 9. The output is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z3oKNP4ii9bkwP_osKaM_A.png" /><figcaption>Midjourney image using the prompt <strong>“forest in the mountains — ar 16:9”</strong></figcaption></figure><p>Using the negation parameter I was able to remove pine trees from the generated image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWEB3A9Mp5M4siW5kXV3ZQ.png" /><figcaption>Midjourney image using the prompt “<strong>forest in the mountains — ar 16:9 — no pines”</strong></figcaption></figure><p>This is one small example of how prompt engineers are using the features available in Midjourney as well as honing their ‘artistic eye’ to create new artworks.</p><h3>What Will Prompt Engineering Look Like in the Future?</h3><p>As A.I. advances, I anticipate that “prompt engineering” will continue to evolve. Currently, there are many parameters that one can use to tune an image on Midjourney — just take a look at the <a href="https://midjourney.gitbook.io/docs/user-manual">documentation</a> that the creators have provided. Through ending parameters, you are able to specify aspect ratio, which machine learning model version to use, style of the photo, any weightings to other images, etc. Future machine learning models may have many of these parameters, which one could compare to features on a camera. The artist needs to master these features to know how to perfect the output.</p><p>Perhaps the method of “prompt engineering” will shift to talking to an A.I. assistant. I could easily see Alexa or Google Assistant having an art engine — just speak the words you want to your Google Assistant, and it’ll create the image. Then, you can adjust the image with subsequent voice commands. Perhaps Google Assistant will even ask you if you like the image. These features may diminish the ‘skill’ that it takes to prompt engineer, but it remains a skill nonetheless. Similarly, taking a picture on an iPhone is somewhat of a skill (I don’t just ask anyone to take a picture of me and my friends when we need help). There are many features to help you when taking an iPhone photo (autofocus, portrait mode, etc.), but still only those that have an ‘artistic eye’ take good photos. Similarly, only those with a level of artistic sense will be able to succeed in the world of prompt engineering.</p><p>It will also be interesting to see how the term changes over time. Prompt Engineering someday will not just refer to creating images, but also prompting A.I. to write papers, send emails, or even write screenplays (i.e. “Hey Google, could you write a screenplay that mixes the movies ‘Fox and the Hound’ and ‘Mad Max: Fury Road’ with a soundtrack featuring new songs that sound like David Bowie). We may use personalized A.I. engines. “Hey Google, send an email to my boss using my style of writing that says I can’t make it to work today.” “Hey Google, use my previous artworks to create a new art of a sunset that looks like I painted it.”</p><p>If A.I. programs continue to see enough innovation, perhaps someday we will see prompt engineers using A.I. assistants to create new shows, new movies, new music, new books, new car designs, or new city planning designs. Maybe that idea terrifies you, or maybe it inspires you. In the end, these A.I. tools are meant to inspire and uplift artists if they choose to embrace it.</p><p>As Chollet puts it, “Reports of art’s death are greatly exaggerated. New tools don’t kill art, they expand it.” Photography showed us that artists will continue to adapt to new tools. Prompt Engineering is the newest tool; artists will thrive despite — and maybe more so because of — its appearance on the scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*9XjVX7JK3J9fxb5rhw8YVg.png" /><figcaption>Midjourney image using the prompt <strong>”flowers and human forms in the style of matisse — ar 16:9 — test — creative”</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbe404c86e64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inspecting the Car Game ‘Contact’: Word Analysis Using Python]]></title>
            <link>https://ikestevens27.medium.com/inspecting-the-car-game-contact-word-analysis-using-python-10754da4bd56?source=rss-813812c97428------2</link>
            <guid isPermaLink="false">https://medium.com/p/10754da4bd56</guid>
            <category><![CDATA[car-games]]></category>
            <category><![CDATA[contact]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Ike Stevens]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 01:23:06 GMT</pubDate>
            <atom:updated>2021-03-17T14:39:20.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inspecting the Game ‘Contact’: Word Analysis Using Python</h3><p>If you’ve ever traveled more than an hour in a car, you’ve likely played a game or two to chip away at the time. ‘I Spy’ ring any bells? You know what I’m talking about. Car games! There’s one game in particular that’s been my personal go-to for many long road trips: a word game called ‘Contact’. After playing countless hours, and in true ‘nerd’ fashion, I took to Python and used simple NLP techniques to possibly optimize the game play of ‘Contact’.</p><p>So first, how is Contact played? Contact requires three or more players. One person thinks of a word and all other players are then teamed together to try to guess the player’s word. The person who came up with the word is called the Defender. They are defending against all the other players learning more letters of their word. The Defender begins by telling the guessers the first letter of their word. Let’s use the word ‘Tractor’ as an example. The Defender who thought of ‘Tractor’ would tell the players their word starts with a ‘T’. The other players are now trying to get more letters so they come closer to guessing the word.</p><p>To get another letter, the guessers must think of a word that starts with the given root (‘T’), and get the other guessers to say that word BEFORE the Defender says it. If the guessers think of the word before the Defender, they must say, ‘Contact!’ (to signal that they’ve thought of their teammate’s word) then the two team members say, ‘3…2…1…’ followed by the word they’re thinking in unison. They count down from 3 to give the Defender a buffer to guess the word first. If the word the guessers called out is the same, then the Defender must give another letter of their word.</p><p>Back to the example — since our root letter is ‘T’. The guessers would need to come up with any word that starts with ‘T’, let’s say ‘Toll’. The guesser that thought of ‘Toll’ would describe the word in a question saying, “Is your word a fee collected on the highway?” If the Defender thinks of the word, they don’t need to say ‘Contact’, they can directly call out ‘Nope, my word isn’t Toll’ (or just say ‘Toll’). Then the word is dead. The guessers don’t get another letter. BUT if the Defender can’t think of Toll (maybe they’re unfamiliar with the term because they’ve somehow managed to avoid all toll roads in their divinely blessed lifetime), then a guesser would say ‘Contact!’ when they think of the word. And then the two guessers (the one that gave the clue for ‘Toll’, and the person that said Contact) would count down and say, “3…2…1…Toll” in unison. Then the Defender would need to give them another letter (‘r’). If they say different words (let’s say ‘Toll’, and someone mistakingly said ‘Tip’) then the Defender doesn’t have to give another letter.</p><p>Once the guessers get the next letter, now they need to think of a word with that new root (‘Tr’ in our example). They continue this way until they finally guess the word. Then another person becomes the Defender and you keep word guessing until you reach your destination (or until someone’s thoroughly annoyed)!</p><p><strong>‘Contact’ Analysis — the Search for the Perfect Word!</strong></p><p>In playing this game, I noticed that the words with commonly used roots were the most fun to play for everyone (even for the Defender). You might think a rare word like ‘Ozotype’ would be a good word, but once the guessers get the ‘Oz’ root, your selection for words to give as clues to your teammates is severely limited (Oz from the Wizard of Oz, Ozone, Ozark, Ozzy Osborne are all I can think of). So the round would either be done very quickly (when we think of Ozotype), or the round would become a ‘guess the exact word I’m thinking’ game (if we couldn’t think of Ozotype), which honestly isn’t that fun. The fun comes from giving creative clues to your teammates, and the Defender has fun blocking the letter accrual by correctly guessing the words first. An abundance of possible words is the goal. It keeps the game moving. Thus, common roots lead to the best words.</p><p>With this thought process, I wanted to find the best roots, and possibly the best words to choose in Contact. So I wrote a Python script to find these roots.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2482883bde5c691716ec3f0672d2a317/href">https://medium.com/media/2482883bde5c691716ec3f0672d2a317/href</a></iframe><p>This function identifies the roots that have the most off-shoot words, and returns the number of words for each root. Here’s a table of the findings for each letter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*B-375_RtI1r557pu.jpeg" /></figure><p>I figured once you find a good root, then you want to pick a semi-rare word with that root. For instance, ‘under’ is an extremely good root. But I might want to chose ‘underworld’ instead of ‘underwear’ because it will be slightly harder to guess than ‘underwear’. With this logic, a next step for this analysis could be to identify rare-ish words to find using these common roots.</p><p>Finally, I wanted to find the words that have the most possible off-shoot words. This is one word for each letter that adds up all the possible words for each letter. So ‘apple’ is calculated as ‘a’ (14,537 words that start with ‘a’), ‘ap’ (899 words), ‘app’ (296 words), ‘appl’ (54 words) and one word for ‘apple’. So that adds up to 15,787. Below are the 26 words that added up to the most possible words for game-play:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*bcbuzuKKXxoITMIn.jpeg" /></figure><p>From this word breakdown analysis, you can see that ‘understandableness’ has the most off-shoot words when added together. I’m not saying this is the perfect word, you’d probably stop the round at ‘understand’ (we normally just play until the full root of a word), but it’s just fun to find the words that would lead to the most off-shoot words! If you’d like to run this code with any word you’re thinking of, visit my script for this project at the link below:</p><p><a href="https://github.com/ikestevens/nlp/blob/master/Contact%20Optimization.ipynb">ikestevens/nlp</a></p><p>Please view my script for more insight into how I ran this analysis and please leave suggestions! Thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10754da4bd56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[China vs. the Rest of the World: the Widening Chasm Between the Two Internet Markets]]></title>
            <link>https://ikestevens27.medium.com/china-vs-the-rest-of-the-world-the-widening-chasm-between-the-two-internet-markets-9f206f934f39?source=rss-813812c97428------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f206f934f39</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[china]]></category>
            <category><![CDATA[alibaba]]></category>
            <category><![CDATA[baidu]]></category>
            <dc:creator><![CDATA[Ike Stevens]]></dc:creator>
            <pubDate>Thu, 06 Oct 2016 03:58:57 GMT</pubDate>
            <atom:updated>2016-10-06T15:49:47.609Z</atom:updated>
            <content:encoded><![CDATA[<p>Isaac Stevens</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*qbQNJyg4ivuGIfzOSEbcEg.jpeg" /></figure><p>Every new Chinese tech company faces a business decision no other tech companies face: they must choose to enter the domestic (Chinese) Internet market, or the international Internet market. Do they target Western users? Or should they target Chinese citizens within China? In the Internet climate of 2016, it is harder and harder to target both.</p><p><strong>The Two Markets</strong></p><p>Due to online restrictions and sanctions from the Chinese government, two similar but fundamentally different Internet markets have formed. The first market holds the international tech giants we are familiar with: Google, Facebook, Twitter, Amazon, etc. Whereas, the second market boasts mammoth Chinese equivalents: Baidu, Tencent, Weibo, and Alibaba. These Chinese giants, bolstered by a cyber barricade via Chinese Communist Party sanctions, hold a monopoly on the largest Internet market in the world: China. Although some of these websites are also available to the rest of the world, various barriers such as geography (shipping), language, and international competition prevent Chinese companies from expanding outside of China. However, inside China, these companies have a significant advantage. Companies such as Facebook, Twitter, and Snapchat are completely banned in the country, preventing Chinese citizens from ever visiting the websites. By eliminating foreign competitors, China strengthens local tech companies and impedes foreign competitors growth within the country. Government sanctions have allowed China to create a dual Internet market separate from the rest of the world.</p><p><strong>China’s Sanctions</strong></p><p>Ever since 1997, the Chinese Communist Party has implemented various forms of Internet censorship. Today, the censorship, known as the Great Firewall, is mandated by the Chinese Communist Party to regulate Chinese Internet users. The Communist Party claims that Facebook and similar platforms facilitate in disseminating false information, organizing illegal activities, and propagating anti-Party sentiment. Chinese websites are subject to strict monitoring from government authorities. The government only permits websites that allow for direct regulations in order to comply with communist governing policies. That is why Western websites that allow users to post any and all content are strictly prohibited in China. China’s popular social platform, WeChat (owned by China’s Tencent), allows users to message friends, post updates, and follow interesting accounts, but stories are regularly monitored by “internet police” who can delete stories, redact content, and ban users. China’s communist system operates by controlling local companies that will comply with their mandates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7BtwnVGEB1tGdlo7vb-1g.jpeg" /></figure><p><strong>China’s Search Engine</strong></p><p>Chinese government also heavily censors Chinese news and media, including magazines, newspapers, and search engines. Through regulating the Chinese search engine, Baidu, Chinese officials can effectively limit search results to users. In 2002, Google complied with some Chinese government restrictions in order to prevent Google from being blocked completely. However, in 2010, Chinese demands became too invasive, as they required Google to provide user information for those who searched sensitive content. Google refused, resulting in a removal from the country. Today, Baidu reigns as the primary search engine used in China. Searching Tiananmen Square Massacre (天安门广场大屠杀) or June Fourth Incident (六四事件) yield no results related to those events in June 1989. Events sensitive to the government are completely withdrawn from websites, blogs, search engines, everything.</p><p><strong>Sensitive Words</strong></p><p>In order to better filter content, the Chinese also maintain a list of “sensitive words” that can flag user activity. These sensitive words are updated regularly. Government officials add words and phrases to the list and can enact repercussions to those that use too many sensitive words. The Chinese Internet environment, riddled with communist intervention, warns off even the largest tech companies we know today.</p><p><strong>E-commerce</strong></p><p>Companies such as Amazon and Ebay have weathered the storm better than other industries. E-commerce proves to be a smaller threat to Chinese communism than social media platforms, resulting in less regulation. Although these companies face less regulation, China’s local company, Alibaba, still dominates Internet commerce in the country. Boasting the largest IPO even to this day, Alibaba is the pride of China. Amazon, Ebay, and other foreign commerce websites face the hostility of Chinese nationalism, which alone can lead to bureaucratic hurdles in the form of government sanctions.</p><p><strong>Uber vs. Didi</strong></p><p>The latest tech giant to fall in the Chinese market was taxi-hailing company Uber. Entering China in 2014, Uber sought to capitalize on the extreme potential in the most populated country in the world, despite several local competitors having already acquired a large market share in the industry. Uber quickly gained traction by offering absurdly low prices and generous incentives to riders and drivers. Their business plan however, was not sustainable. In 2015, Uber lost one billion dollars in their Chinese market. Without a viable route to make their China market profitable, Uber sold their China operations to the leading competitor, Didi Chuxing, in August of 2016. Yet again, the local Chinese company ousted the foreign competitor. Although this example may be a result of business strategy, rather than government intervention, the result fits the pattern discussed.</p><p><strong>Musical.ly</strong></p><p>If we again analyze the business decisions of Chinese tech companies, we can further observe the division of these two markets. One Chinese tech company, Musical.ly, has chosen to focus on international users. Based in Shanghai, Musical.ly allows users to record themselves lip-syncing various songs, and share the videos with friends. Seeing greater opportunities with Western audiences, Musical.ly has opted to target the international Internet market. They are the first company from China to achieve great success in the U.S. market. Musical.ly’s success could lead other Chinese companies to follow their business tactic and enter the U.S. market. The fact that Musical.ly is the first company from China with such success shows that a clear division exists between China and the rest of the world.</p><p><strong>Looking Ahead</strong></p><p>The future of these two Internet markets remains unknown. However, the trends show U.S. companies failing to obtain a large market share of Chinese users, and Chinese companies rarely penetrating the U.S. market. As long as China maintains its strict Internet censorship and restrictive regulations, the divide between these two markets will exist. But as Chinese companies grow and develop in their own market, it would not be surprising to see more Chinese companies expanding to the global stage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f206f934f39" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>