AI - Prayers Connect https://prayersconnect.org From 2016 Wed, 09 Aug 2023 03:23:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://prayersconnect.org/wp-content/uploads/2023/03/cropped-main-logo-png-1-32x32.png AI - Prayers Connect https://prayersconnect.org 32 32 Removing Language Barrier with AI – A Practical Example https://prayersconnect.org/1003-removing-language-barrier-with-ai-a-practical-example/ https://prayersconnect.org/1003-removing-language-barrier-with-ai-a-practical-example/#respond Tue, 08 Aug 2023 21:20:32 +0000 https://prayersconnect.org/?p=1003 We used OpenAI's ChatGPT API to fix a problem our data mining team had been struggling with for a long time. Keep reading to learn more...

The post Removing Language Barrier with AI – A Practical Example first appeared on Prayers Connect.

]]>
On prayersconnect.com, we provide different types of information about a mosque including a general description or overview. Originally, this overview section was meant to be meticulously crafted by our editorial team. However, since English is not the first language for many of our data mining team members, they often felt uncertain about writing the descriptions themselves. When they did write them, the results were frequently unsatisfactory due to poor composition and grammatical mistakes.

This issue remained unresolved for quite a long time, largely due to our non-profit budget constraints. But recently, a spark of innovation led us to a solution: leveraging AI to overcome this challenge.

In our backend API, we designed a prompt containing the information we believed would be valuable. We then made an API call to the gpt-3.5-turbo model, which in turn generated a description based on the provided details. Here’s an example:

<<OPENAI
Generate a human-friendly brief description for the mosque based on the provided data within Beginning & end of Data Section. Adhere to the following guidelines:

<A number of rules; redacted for brevity>


Beginning of Data Section
<Provided data about mosques; redacted for brevity>
End of Data Section

OPENAI

We have noticed that the generated content occasionally deviates from our instructions. However, with the availability of gpt-4, we anticipate a significant improvement that will bring us closer to our goal of providing accurate and engaging descriptions for our users.

The post Removing Language Barrier with AI – A Practical Example first appeared on Prayers Connect.

]]>
https://prayersconnect.org/1003-removing-language-barrier-with-ai-a-practical-example/feed/ 0
How AI Transformed Our Workflows for the Good! https://prayersconnect.org/945-learn-how-ai-transformed-prayers-connect-workflows-for-better/ https://prayersconnect.org/945-learn-how-ai-transformed-prayers-connect-workflows-for-better/#comments Mon, 17 Jul 2023 04:16:19 +0000 https://prayersconnect.org/?p=945 Get more insight on how Prayers Connect adopted and use different AI solutions including ChatGPT, Bard, Github CoPilot etc.

The post How AI Transformed Our Workflows for the Good! first appeared on Prayers Connect.

]]>
Prayers Connect is a non-profit with a limited capacity of hiring experienced engineers. So the potential and capabilities of AI have opened up new paths for us to explore and fill some gaps that we had with our capacity.

We are a very early adopter of AI technologies. Even before ChatGPT took the world by storm, we were using Github Copilot since the preview. While GitHub CoPilot improved our coding speed, with the arrival of ChatGPT the landscape of our work transformed significantly.

Pre-ChatGPT

As mentioned in the intro, we’ve been using GitHub CoPilot from the very beginning, well before GA. Our speed to code improved significantly as it reduced the amount of time we would need to consult the documentation, and saved a lot of keystrokes by suggesting context-aware codes. Here are two examples that excited us at the very beginning.

  • One of the first signs of CoPilot’s capability was when we were writing a pretty big form in React. As we use typescript, we defined the interface first which it helped with auto-completing codes. However, when we completed writing our first input field html it started suggesting the rest of the markup based on the schema. Accuracy and speed blew us out. Hours of boring typing were completed in a couple of minutes.
  • We were writing a method to geocode IP addresses. CoPilot auto-completed the line with a service (API call) we were not familiar with. Then we reviewed the site’s offering and found out it is much better than the solution we were planning to use.

There are many other examples where we fall in love with CoPilot almost every day. However, after some time hitting the Tab + Return combination became a little boring as it was suggested only little snippets. Lately, it is suggesting longer snippets but the accuracy of that isn’t as good as it is for smaller snippets.

Arrival of ChatGPT!

Several challenges that we were facing were solved when ChatGPT arrived and took the world by storm. Its wide capability as well as its free tier allowed us to adopt it extensively. Now ChatGPT is a part of our SDLC.

How do we use it?
In the beginning, we use ChatGPT to explore different alternative solutions to a problem. Once we decide on an implementation route, we use it to break down the implementation. We carefully create a prompt and review the proposed solution. If we do not like it or do not consider it accurate, we either regenerate or re-prompt it.

We use code generation by ChatGPT for different languages like Typescript, Ruby, Terraform, and different contexts like Node.js, React-Native, and Ruby on Rails. In addition to solving a particular problem, we use it to write automated tests which is very helpful. ChatGPT (also CodiumAI) quickly writes tests for various edge cases that are likely to be skipped by developers given the time it requires to set up the test. However, one frequent challenge we face is that it forgets the context of our project and writes tests in different tools than what we use. So every now and then, we need to provide it context of our projects.

In addition to programming, we use ChatGPT for content writing by checking grammar, improving writing, etc. Given ChatGPT does not have the latest data, we use Bard for various research especially where we need recent data.

Also, we’ve tried to use tools like AutoGPT but were not very successful in achieving some of our objectives.

AI Image Generation

In the beginning, we were using DALL-E to generate images. However, the speed and quality threw us away. While looking for an alternative, the speed, quality, and price of Fotor. attracted us. However, since we were introduced to MidJourney this is our go-to solution for generating AI images. We use AI-generated images for our articles. Even the cover image of this article is generated by Midjourney.

One thing we regret is that Midjourney can’t be used by other people on the Discord Channel. We would love to use our quota to be able to share with all team members.

If you look at our new landing page, the images of each continent, and country are generated by AI which would, otherwise, take a very long time. Alternatively, it would be cost-ineffective for us to buy so many images. Now our limitation is our imagination prompt’s capability.

Using AI for Videos

We haven’t used AI for video extensively yet. The only experimentation we’ve done so far is using Fliki to create a short video that we’ve published on YouTube.

If you’re not familiar with AI tools like ChatGPT, you can consider watching the following video (not made by us).

The post How AI Transformed Our Workflows for the Good! first appeared on Prayers Connect.

]]>
https://prayersconnect.org/945-learn-how-ai-transformed-prayers-connect-workflows-for-better/feed/ 3