teleren/devto huggingface dataset:
Getting an error while importing Langchain Packages
Tags: help, llm, nlp, rag
Published: 2024-06-12 14:41:46

I want to create a RAG model for the question answer purpose. I have written the code but Langchain packages are giving an error. The part of the code which gives the error is as below:

`from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_community.document_loaders import PyPDFLoader
from langchain_community.vectorstores import Chroma
from langchain.chains import RetrievalQA
from langchain.memory import ConversationSummaryMemory
from langchain_openai import OpenAIEmbeddings
from langchain.prompts import PromptTemplate
from langchain.llms import Ollama`

The error is as below:
`TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'`

Please help me solving this error.
Difference Between ORM and ODM
Tags: orm, odm, database, saadnaeem
Published: 2024-06-12 14:27:41

Hi, Today we will discuss shortly about ORM and ODM tools and we will clear our all confusions of ORM And ODM.

**So let's start today's short topic:**

**ORM:**

- ORM ( Object relational mapping) is a tool that is commonly used for SQL databases (MYSQL, PostgreSQL).
- These tools are used to map the relational database tables into programming language objects.
- Examples: Prisma, TypeORM, Sequelize.


**ODM:**

- ODM tool is commonly used for NoSQL Document Database ( MongoDB ).
- These tools are used to map the document (JSON Like format ) to programming languages objects.
- Examples: Mongoose (for MongoDB).
Chatbot in Python - Build AI Assistant with Gemini API
Tags: webdev, ai, python, programming
Published: 2024-06-12 14:08:30

Build Your First AI Chatbot in Python: Beginner's Guide Using Gemini API

Unlock the power of AI with this beginner-friendly tutorial on building a chatbot in Python using the Gemini API! 🚀 In this step-by-step guide, you'll learn how to create a smart AI assistant from scratch, perfect for enhancing your coding skills and impressing your peers. We'll cover everything from setting up the environment to integrating the Gemini API for powerful chatbot capabilities.

The GitHub repository for this project: [https://github.com/proflead/gemini-flask-app](https://github.com/proflead/gemini-flask-app)
Ça vous tente de finir plus tôt ?
Tags: vscode, productivity, french
Published: 2024-06-12 14:05:46

L’**efficacité** c’est la capacité de produire le **maximum** de résultats avec le **minimum** d'effort. La ressource la plus importante d’un développeur est son temps. Moins vous passez de temps à coder, plus vous passez de temps à vous former et réfléchir aux problèmes. 

L’utilisation des raccourcis clavier est un moyen d’augmenter son efficace. Si vous les intégrez **progressivement** à votre pratique, ils ne demanderont quasiment **pas d’effort** et vous permettront d’**accélérer** la façon dont vous coder.

 

Ces raccourcis clavier vous permettrons de gagner en fluidité. Si vous êtes amené à faire des sessions de live coding devant une audience, vous vous rendrez vite compte qu’il est important de **maitriser son outil pour se concentrer sur l’essentiel**, la communication.

Voici la liste des raccourcis **VSCode** que j’utilise au quotidien.

## Interface

**cmd + B** : réduire / afficher le menu latérale

**cmd + J**: réduire / afficher le terminale

**cmd + shift + N** : ouvrir une nouvelle fenêtre VSCode

**cmd + shift + W** : fermer une fenêtre VSCode 

## Recherches

**cmd + F** : recherche locale dans un fichier

**cmd + shift + F** : recherche globale dans un projet

**cmd + P** : ouvrir la barre de recherche des fichiers

- par défaut : chercher un fichier dans le projet
- **:14** : se rendre sur la ligne 14 du fichier courant
- **>** : exécuter une action de la palette de commande

## Sélection

**option + click** : dupliquer le curseur sur la position du click

**cmd + D** : sélectionner la prochaine occurence du terme recherché (utile pour faire du renommage au sein d’une fonction)

**cmd + shift + L** : sélectionner toutes les occurrences du terme recherché dans le fichier (pratique pour renommer des propriétés dans un json)

## Actions sur une ligne

**cmd + shift + /** : commenter une ligne

**cmd + shift + K** : supprimer une ligne

**option +** ⬆️ : déplacer la ligne vers le haut

**option + ⬇️** : déplacer la ligne vers le bas

**option + shift +** ⬆️ : dupliquer la ligne vers le haut

**option + shift +** **⬇️** : dupliquer la ligne vers le bas

## Navigation curseur

**cmd** **+**  ⬆️ : déplacer le curseur en début de fichier

**cmd** **+** **⬇️ :** déplacer le curseur en fin de fichier

**cmd** **+** ➡️ : déplacer le curseur en fin de ligne

**cmd** **+** ⬅️ : déplacer le curseur en fin de ligne

**option** **+** ➡️ : déplacer le curseur sur le prochain mot

**option** **+** ⬅️ : déplacer le curseur sur le mot précèdent

Combiner à la touche **shift**, ces raccourcis vous permettrons de faire des **sélections au clavier**. Par exemple : 

**shift + option** **+** ➡️ : sélectionner le prochain mot

Ces raccourcis clavier ne feront pas de vous un 10x engineer mais ils vous simplifierons grandement la vie ! Je vous conseil d’effectuer des sessions de live coding ou de paire programming, vous vous rendrez vite compte que ces raccourcis sont nécessaires pour être fluide.

N’hésitez pas à me partager les raccourcis qui vous permettent d’être plus efficace !
Invitation to join a paid research community for App and Game Developers
Tags: ios, android, reactnative, flutter
Published: 2024-06-12 14:01:44

Hello everyone! 

I am looking for **app** and **game developers** in the **UK**, **USA**, **Canada** and **Australia** to join an online community where you can earn rewards in exchange for feedback on new product concepts through **short paid research activities**.

Just for joining the community, you will receive a **$50** welcome reward!

Activities in the community include discussion boards, surveys etc. and you will be rewarded up to **$150** each time, depending on the activity.

If interested, please register [here](https://app.iqurate.com/form/1Bn7h).

Let me know in the comments if you have any questions.

Thanks!
TalentBankAI: The Ultimate Platform for Recruiting and Supporting IT Developers
Tags: hiring, webdev, developers, development
Published: 2024-06-12 14:00:34



## Streamlined Recruitment Process with TalentBankAI

### Customer Interaction: Enhancing Recruitment Efficiency

For companies [hiring engineers](https://talentbankai.com/), TalentBankAI offers a seamless recruitment experience. Clients interact with the platform’s sophisticated AI system, providing project specifics and requirements through intuitive chat interfaces and forms. The AI swiftly processes this information, creating a detailed job profile in minutes. This efficiency saves time and ensures clarity in job specifications.

### AI-Driven Job Profiling for Precision

TalentBankAI's AI excels at job profiling by accurately crafting job descriptions based on client input. This automation optimizes the personnel search, matching job profiles precisely to each client’s needs. This precision increases the chances of finding the perfect candidate, allowing clients to focus on top talent while the platform handles the details.

### Access to a Vast Pool of Technical Specialists

With a meticulously maintained database of over 30,000 developers, TalentBankAI provides clients with access to a diverse range of skills and experiences. The AI continually updates this database, ensuring clients always have access to the most current pool of developers, enhancing project success and satisfaction for both clients and developers.

### Precision Hiring with AI-Powered Candidate Analysis

TalentBankAI uses advanced AI algorithms to evaluate each developer's profile, considering interview scores, software skills, and work history. Clients receive detailed profiles, offering a comprehensive view of each candidate’s capabilities. This data-driven approach empowers clients to make informed hiring decisions, with machine learning models refining the selection process to identify candidates with the highest technical prowess and relevant experience.

### Seamless Support and Integration for New Hires

After the interview process, TalentBankAI continues to support new hires by providing the necessary infrastructure and assistance for a smooth transition into the project. This includes HR support, technical, and legal assistance, fostering a productive work environment from day one. This support accelerates the onboarding process and boosts employee motivation by offering all the necessary tools and resources.

## Summary

TalentBankAI offers an innovative solution for companies seeking the best IT professionals. Its AI-powered recruitment process optimizes the connection with qualified developers, saving time and resources. With a comprehensive range of services and support, TalentBankAI ensures a smooth transition for new employees, helping companies remain competitive in the fast-paced tech industry by attracting and retaining top talent.
World Day Against Child Labour: Striving for a Sustainable Future
Tags: inrate, sustainab, childlabour
Published: 2024-06-12 13:53:40

Introduction:

June 12 marks the World Day Against Child Labour, a day dedicated to raising awareness and fostering global efforts to eliminate child labor. This year’s theme, “Exclusion and Sustainability – The Example of Child Labor,” highlights the importance of sustainable practices in eradicating child labor.

The Scourge of Child Labor:

Child labor affects millions of children worldwide, depriving them of education, health, and a safe childhood. These children work in hazardous conditions, often for little or no pay, undermining their potential and perpetuating cycles of poverty.


Inrate's Perspective:

Inrate, a leader in ESG (Environmental, Social, and Governance) data solutions, emphasizes that sustainable business practices are key to combating child labor. Their recent article, [Exclusion and Sustainability – The Example of Child Labor](https://inrate.com/news/exclusion-and-sustainability-the-example-of-child-labor/), explores how responsible investing and corporate governance can lead to better outcomes for children globally.

Sustainability and Corporate Responsibility:

Sustainability involves not just environmental stewardship but also social equity. Companies must adopt policies that exclude child labor from their supply chains. By doing so, they not only comply with regulations but also build a reputation for ethical practices.

The Role of Investors:

Investors play a crucial role in this fight. By prioritizing ESG criteria, they can influence companies to adopt fair labor practices. Investments in businesses that ensure ethical supply chains contribute to the global effort against child labor.

Conclusion:

On this World Day Against Child Labour, let’s reaffirm our commitment to building a sustainable future where every child is free from exploitation and able to realize their full potential. Together, we can create a world where sustainability and child welfare go hand in hand.
Context API Syntax
Published: 2024-06-12 13:51:47

**_<u>Functional Components</u>_** 

Component where the context is defined and which provides the actual component with the context.

```JS
const functionalComponent = () => {

...
return(
<>
<contextName.Provider value = "contextValue">
<ComponentThatUsesTheContext />
</contextName.Provider>
</>
)
}
```

Component where the context is to be used (uses useContext hook)

```JS
const ComponentThatUsesTheContext = () => {
const {contextUser} =  useContext(contextName);
...
return(
<>
{contextUser}
</>
)
}
```


**_<u>Class Components</u>_**


Creating context
```JS

const contextName = React.createContext();
const contextProvider = contextName.Provider;
const contextConsumer = contextName.Consumer;
export {contextProvider , contextConsumer }
```

Component where the context is defined and which provides the actual component with the context.

```JS
import contextProvider;

class classComponent extends React.Component{
render(){
return(
<>
<contextProvider value = "contextValue">
<ComponentThatUsesTheContext />
</contextProvider>
</>
)
}
}
```

consumer ->

```JS
import contextProvider;

class ComponentThatUsesTheContext extends React.Component{
render(){
return(
<>
<contextConsumer>
{(contextTaken) => {
return(
<>
contextTaken
</>
)
}
}
</contextConsumer>
</>
)
}
}
```
Singapore Airlines' Digital Transformation Story
Tags: digitaltransformation, innovation, singapore, customer
Published: 2024-06-12 13:47:50

Singapore Airlines (SIA) has embarked on a comprehensive digital transformation journey to maintain its competitive edge and meet the evolving needs of its customers. This transformation focuses on enhancing operational efficiency, improving customer experiences, and fostering innovation. Below are some of the key initiatives and successes from SIA's digital transformation journey.

![](https://victorleungtw.com/static/55e05ad0cfdb503e9f6b67ef4b72cca1/8aab1/2024-06-12.webp)

### Vision for the Future
SIA's vision is to provide a seamless and personalized customer experience by improving customer service and engagement and adopting intelligent and intuitive digital solutions. The airline is committed to launching digital innovation blueprints, investing heavily in enhancing digital capabilities, doubling down on digital technology, and embracing digitalization across all operations. The establishment of KrisLab, SIA's internal innovation lab, further underscores its commitment to fostering a culture of continuous improvement and innovation.

### Key Initiatives and Successes

#### 1. iCargo Platform
As part of its ongoing digital transformation, SIA implemented iCargo, a digital platform for air cargo management. This platform enables the airline to scale its online distribution and integrate seamlessly with partners, such as distribution channels and marketplaces. By leveraging iCargo, SIA has significantly improved its cargo operations, making them more efficient and customer-centric.

#### 2. Digital Enhancements and Automation by Scoot
Scoot, SIA's low-cost subsidiary, also continued to invest in digital enhancements and automation to drive greater self-service capabilities and efficiencies. These efforts aimed to improve the customer experience by providing a rearchitected website that supports hyper-personalization, reinstating self-help check-in facilities, and offering home-printed boarding passes. These innovations have contributed to a smoother and more convenient travel experience for Scoot's customers.

#### 3. Comprehensive Upskilling Programme
Upgrading the skills of its workforce has been a key priority for SIA, especially since the onset of the pandemic. The airline launched a comprehensive upskilling programme to equip employees with future-ready skills, focusing on areas such as Change Management, Digital Innovation, and Design Thinking. This initiative ensures that SIA's workforce remains resilient and capable of driving the airline's digital transformation forward.

### Conclusion
Singapore Airlines' digital transformation journey exemplifies how a leading airline can leverage digital technologies to enhance its operations, improve customer experiences, and stay ahead in a competitive industry. By investing in platforms like iCargo, enhancing digital capabilities at Scoot, and upskilling its workforce, SIA has positioned itself as a forward-thinking airline ready to meet the challenges of the future.
Why I chose Svelte over React?
Tags: svelte, react, javascript
Published: 2024-06-12 13:36:20

Svelte and React are both used for Web development. React is a fantastic tool which has dominated the industry for a while now whereas Svelte is newer in the field and is gaining significant popularity.

## Overview
When I first heard about Svelte I wanted to try it out and was surprised to see how less code you have to write to do the same amount of work in React.

Lets take a look at code below,

### React

```react
import { useState } from 'react';

const FormExample = () => {
  const [name, setName] = useState();
  const [age, setAge] = useState();

  function handleNameChange(event) {
    setName(event.target.value);
  };

  function handleAgeChange(event) {
    setAge(event.target.value);
  };

  return (
    <div>
      <input type="text" value={name} onChange={handleNameChange} />
      <input type="text" value={age} onChange={handleAgeChange} />
      <p>Name: {name}</p>
      <p>Age: {age}</p>
    </div>
  );
}

export default FormExample;
```

### Svelte

```svelte
<script>
  let name = "";
  let age = "";
</script>

<input type="text" bind:value={name}>
<input type="text" bind:value={age}>
<p>Name: {name}</p>
<p>Age: {age}</p>
```

You can clearly see how simple Svelte is.

Just from this example we can tell that React has a steep learning curve than Svelte.

Some of the learning curve of React includes:
- Concept of JSX and Virtual DOM.
- Different Hooks used for different purpose.
- Next.js for Server-side rendering (SSR).
- Handling bundle size as the app grows larger. 
- Rapid upgrades to the ecosystem, difficult to keep up.
- Utilizing React Developer Tools for debugging.
- React Router for navigation.

On the other hand Svelte just uses plain Javascript, HTML and CSS. In addtion, it only introduces few new syntax making is easier to learn.

```svelte
<script>
  let count = 0;
  $: timesTwo = count * 2;

  function onClick() {
    count += 1;
  }
</script>

<button on:click={onClick}>Click me!</button>
<p>{count} x 2 = {timesTwo}</p>

<style>
  p {
    color: blue;
  }
</style>
```

## Bundle Size & Performance
Svelte app has lesser bundle size than for React app which also contributes to the faster app load and improved performance in the production.

The production built of the Svelte app is lighter and surgically updates the DOM without relying on any complex reconciliation techniques and use of Virtual DOM which adds more code to the bundle as in React.


## Conclusion
React is still the most famous tool for web development. Svelte is comparatively new and gaining popularity due to its ease of use.

When taking about cross-platform flexibility, Svelte also has [Svelte Native](https://svelte-native.technology) like the way React has [React Native](https://reactnative.dev) for mobile app development.
Australian Staffing Agency: One Of The Most Trusted Placement Agencies
Published: 2024-06-12 13:35:53

Today, employers are finding it more difficult than ever to find the right talent for the positions in their business. Once the positions are vacant, you may not find it easy to connect with the right candidates. How will you find suitable ones for the vacant positions at your business? For this, you can work with the leading [recruiting companies Melbourne](https://www.austaff.com.au/) that can offer a diverse talent pool and can help both employees and employers succeed. One company that you should consider is the Australian Staffing Agency. This agency provides both temporary and permanent recruitment and staffing solutions.  

**The most trusted name**  

Australian Staffing Agency was first started in 1998. With so many years of experience in the recruitment industry, today Australian Staffing Agency has become the most preferred name that supports businesses. So, when you are looking for temporary or permanent staffing solutions, you must contact this [job recruitment agency Melbourne](https://www.austaff.com.au/). It can provide you with the most professional experience and will always surpass your expectations.
  
**Client testimonials**  

Are you confused about whether the team members at Australian Staffing Agency can find the perfect candidate for your business or not? You should check out the client testimonials listed on their website. The client testimonials will help you understand how the team is truly professional and stays committed until you find the most suitable candidate for the position. They are always supportive and stay motivated until they provide you with the best solutions. Along with this, they can also take care of all security requirements while finding candidates for your business.  

**Success rate**  

Do you know that the Australian Staffing Agency has a success rate of 99%? It is a licensed recruitment agency that always keeps up with the latest developments in the industry. This helps them always offer the most suitable solutions. This company makes sure to provide the clients with the best information that can be helpful for their business. This company has also received the Australian Achiever Highly Recommended Award for Excellence in Customer Service in the year 2004. It is also coincidentally the only time that they took part in this.  

Choose an Australian Staffing Agency for all your staffing requirements. You can rest assured that they will work with complete efficiency. Their team is always responsive and will add a personal touch to everything they do. If you wish to work with [recruitment agencies Melbourne](https://www.austaff.com.au/), check out the website of the Australian Staffing Agency now.  

To get more details, visit [https://www.austaff.com.au/](https://www.austaff.com.au/)  

Original Source: [https://bit.ly/3Vbhpaw](https://bit.ly/3Vbhpaw)
"Unlocking Creativity: Toca Life World Adventures on iOS"
Published: 2024-06-12 13:24:43

"Exploring Boundless Worlds: [Toca Life World Adventures on iOS](https://tocaapkboca.com/toca-life-world-apk-for-ios/)" immerses users in a vibrant digital playground where creativity knows no bounds. With diverse locations, customizable characters, and endless storytelling possibilities, this app sparks imagination and encourages exploration. From bustling cityscapes to whimsical fantasy realms, Toca Life World offers a rich tapestry of experiences for users of all ages. Whether creating their own narratives, customizing characters, or discovering hidden surprises, players can embark on captivating adventures right from their iOS devices. Toca Life World on iOS promises hours of imaginative play and endless entertainment for users worldwide.
Choosing the Best GUI Client for SQL Databases
Tags: database, sql
Published: 2024-06-12 13:20:52

Even the most skilled software and database developers, DBAs, architects, managers, and analysts benefit from using GUI clients for SQL databases. Compared to manual input of text-based commands in one’s console, such tools give you way more efficiency. They offer a visual interface to build queries and robust functionality to establish connections, help you edit the database structure using graphical clues and elements, let you analyze and increase database performance, ensure security, and debug your code.

SQL GUI clients come in all flavors, differing in price, capabilities, and supported DBMSs. In this article, overview the top ten options that you might consider using and compare the features list to ensure you don’t miss out on anything important before getting the option that works best for you.

https://blog.devart.com/choosing-the-best-gui-client-for-sql-databases.html
Kaashiv Infotech's Internship in Chennai for CSE Students
Tags: dotnet, java, python, fullstack
Published: 2024-06-12 13:09:21

Embark on a transformative journey with Kaashiv Infotech's [internship in Chennai for CSE students](https://www.kaashivinfotech.com/internship-in-chennai-for-cse-students/). Dive deep into cybersecurity, data science, networking, and other cutting-edge technologies. Gain practical skills, real-world experience, and unlock endless opportunities for your future career in the dynamic field of computer science and engineering. Apply now and take your first step towards success!
https://www.kaashivinfotech.com/internship-in-chennai-for-cse-students/