<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Machine Learning - Elitech Systems Pvt Ltd</title>
	<atom:link href="https://www.elitechsystems.com/category/machine-learning/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.elitechsystems.com</link>
	<description></description>
	<lastBuildDate>Thu, 24 Aug 2023 06:29:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.elitechsystems.com/wp-content/uploads/2022/04/cropped-favicon-96x96-1-32x32.png</url>
	<title>Machine Learning - Elitech Systems Pvt Ltd</title>
	<link>https://www.elitechsystems.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>🤖 ChatGPT Bot API Uses Own Custom Data from Txt, CSV, PDF</title>
		<link>https://www.elitechsystems.com/chatgpt-bot-api-uses-own-custom-data-from-txt-csv-pdf/</link>
		
		<dc:creator><![CDATA[elitech_idaratan]]></dc:creator>
		<pubDate>Thu, 24 Aug 2023 05:53:39 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<guid isPermaLink="false">https://www.elitechsystems.com/?p=18256</guid>

					<description><![CDATA[<p>Introducing our cutting-edge code that revolutionizes the way you interact with your custom data – the Ready-to-Use API that answers your questions. With this meticulously crafted API, effortlessly obtain precise answers directly from your documents, text files, and websites. Our innovative code empowers you to seamlessly integrate ChatGPT&#8217;s capabilities into your workflow, opening the door [&#8230;]</p>
<p>The post <a href="https://www.elitechsystems.com/chatgpt-bot-api-uses-own-custom-data-from-txt-csv-pdf/">🤖 ChatGPT Bot API Uses Own Custom Data from Txt, CSV, PDF</a> first appeared on <a href="https://www.elitechsystems.com">Elitech Systems Pvt Ltd</a>.</p>]]></description>
										<content:encoded><![CDATA[<div data-elementor-type="wp-post" data-elementor-id="18256" class="elementor elementor-18256">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-1277c78d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1277c78d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-641546e0" data-id="641546e0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-66ae7e2b elementor-widget elementor-widget-text-editor" data-id="66ae7e2b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Introducing our cutting-edge code that revolutionizes the way you interact with your custom data – the Ready-to-Use API that answers your questions. With this meticulously crafted API, effortlessly obtain precise <b>answers directly from your documents, text files, and websites.</b></p>
<p>Our innovative code empowers you to seamlessly integrate ChatGPT&#8217;s capabilities into your workflow, <b>opening the door to a world of efficient information retrieval.</b></p>
<p>Experience the future of data interaction as you extract insights and solutions using our advanced API, simplifying the process and enhancing your access to knowledge like never before.</p>
<h3>Get Answers from your documents, textfiles, and websites. Ready to use API for your <u>Custom Data</u> Using LlamaIndex and OpenAI.</h3>
<div>&nbsp;</div>
<div>This tutorial is step by step guide to setup python packages and setup API in python that can be integrated to any of your existing system.</div>
<p>💡 Basic knowledge of Python and Docker is required. We&#8217;ve used LlamaIndex and OpenAI. No need to expert on any of them.</p>
<p>⭐ LlamaIndex is a simple, flexible data framework for connecting custom data sources to large language models (LLMs).</p>
<p>⭐ OpenAI offers a spectrum of models with different levels of power suitable for different tasks</p>
<p></p>
<h2>Steps</h2>
<div><b>Download source code </b>attached to bottom of the page and follow steps.</div>
<ol>
<li><b>Setup Docker Or Install Python</b></li>
<li><b>Get the OpenAI API key and replace it in the source code.</b></li>
<li><b>Build Model</b></li>
<li><b>Run Server</b></li>
<li><b>Call API and Ask any questions</b></li>
</ol>
<div><b>&nbsp;</b></div>
<h2>Code Setup using Docker</h2>
<ol>
<li>Setup Docker &#8211; Refer to FAQ <strong class="ql-hashtag" data-test-ql-hashtag="true">#1</strong> 👇</li>
<li>Prepare Context Data in simple TXT, CSV, or PDF format. Ability to parse multiple files, just paste files into the context_data folder.</li>
<li><a href="https://platform.openai.com/account/api-keys" target="_blank" rel="noopener nofollow">Get your OpenAI API key</a> and replace it in server.py and build_model.py</li>
<li>Build Docker</li>
</ol>
<div>&nbsp;</div>
<pre class="ql-syntax" spellcheck="false"># Build a Docker image with the tag "my-bot" using the current directory (.) as the build context.
docker build --no-cache -t my-bot .
</pre>
<p>5. Run Docker</p>
<pre class="ql-syntax" spellcheck="false"># Run a Docker container using the "my-bot" image and map port 5001 on the host to port 5001 in the container.
docker run -p 5001:5001 my-bot
</pre>
<h2>&nbsp;</h2>
<h2>Code Setup Manually</h2>
<ol>
<li>Install Python</li>
</ol>
<pre class="ql-syntax" spellcheck="false"># Linux:
# Ubuntu/Debian:

sudo apt update
sudo apt install python3

# Fedora:
sudo dnf install python3

# Windows:
# Download the Python installer executable from the official website (https://www.python.org/downloads/windows/).
# Run the installer executable and follow the installation wizard.

# macOS:
# Homebrew:
brew install python
sudo port install python
</pre>
<p>2. Install Dependencies</p>
<pre class="ql-syntax" spellcheck="false">pip install Flask==2.0.1
pip install requests==2.26.0
pip install llama-index==0.5.6
pip install langchain==0.0.148
pip install flask-basicauth
pip install PyPDF2
</pre>
<p>3. Prepare Context Data in simple TXT, CSV, or PDF format. Ability to parse multiple files, just paste files into the context_data folder.</p>
<p>4. <a href="https://platform.openai.com/account/api-keys" target="_blank" rel="noopener nofollow">Get your OpenAI API key</a> and replace it in server.py and build_<a href="http://model.py/" target="_blank" rel="noopener nofollow">model.py</a></p>
<p>5. Build Model</p>
<pre class="ql-syntax" spellcheck="false">python build_model.py 
</pre>
<p>6. Run Server</p>
<pre class="ql-syntax" spellcheck="false">python server.py
</pre>
<h3>Run API &#8211; Node JS</h3>
<div>Get ready to get GPT based answers from your document using node js api.</div>
<p>I&#8217;ve included Postman collection in this bundle so you can export code in your programming language.</p>
<pre class="ql-syntax" spellcheck="false">const axios = require('axios');
let data = JSON.stringify({
  "query": "Can you summarize this judgement?"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'http://127.0.0.1:5001/ask_ai',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'Basic ZWxpdGVjaDplbGl0ZWNoMTIzKg=='
  },
  data : data
};

axios.request(config)
.then((response) =&gt; {
  console.log(JSON.stringify(response.data));
})
.catch((error) =&gt; {
  console.log(error);
});
</pre>
<h2><span style="font-size: 1.8rem;">&nbsp;</span></h2>
<h2><span style="font-size: 1.8rem;">FAQ</span></h2>
<ol>
<li>How to set up Docker?</li>
</ol>
<p>To install Docker on various operating systems, follow the instructions below:</p>
<p><strong>Install Docker on Linux</strong>: For Linux distributions, Docker provides installation scripts that you can use to install Docker Engine. Here&#8217;s a general method to install Docker on most Linux distributions: Open a terminal and run the following commands:</p>
<pre class="ql-syntax" spellcheck="false">sudo apt update
sudo apt install -y curl
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
</pre>
<p>After installation, start and enable the Docker service:</p>
<pre class="ql-syntax" spellcheck="false">sudo systemctl start docker
sudo systemctl enable docker
</pre>
<p><strong>Install Docker on macOS:</strong> Docker Desktop is the recommended way to install Docker on macOS. You can download it from the official Docker website and follow the installation instructions provided: <a href="https://www.docker.com/products/docker-desktop" target="_blank" rel="noopener nofollow"><u>Download Docker Desktop for macOS</u></a></p>
<p><strong>Install Docker on Windows:</strong> Similarly, Docker Desktop is the preferred method for installing Docker on Windows. Download it from the official Docker website and follow the installation instructions: <a href="https://www.docker.com/products/docker-desktop" target="_blank" rel="noopener nofollow"><u>Download Docker Desktop for Windows</u></a> Note that Docker Desktop requires Windows 10 Pro or Enterprise (64-bit) for installation.</p>
<ul>
<li>After installing Docker, you can verify the installation by running the following command in your terminal:</li>
</ul>
<pre class="ql-syntax" spellcheck="false">docker --version
</pre>
<ul>
<li>This should display the version of the Docker that was installed.</li>
</ul>
<div>&nbsp;</div>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-34b40a08 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="34b40a08" data-element_type="section" data-e-type="section" data-settings="{&quot;stretch_section&quot;:&quot;section-stretched&quot;}">
						<div class="elementor-container elementor-column-gap-no">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59f57ba0" data-id="59f57ba0" data-element_type="column" data-e-type="column" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
			<div class="elementor-widget-wrap elementor-element-populated">
						<section class="elementor-section elementor-inner-section elementor-element elementor-element-2b3e391 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2b3e391" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;gradient&quot;}">
							<div class="elementor-background-overlay"></div>
							<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-53e16e87" data-id="53e16e87" data-element_type="column" data-e-type="column" data-settings="{&quot;background_background&quot;:&quot;gradient&quot;}">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c37fdb elementor-widget elementor-widget-text-editor" data-id="c37fdb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Hey! We specialize in assisting you with the seamless integration of GPT into your product.</p><p>Let&#8217;s discuss.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-26bd5525 elementor-align-center elementor-widget elementor-widget-button" data-id="26bd5525" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://www.elitechsystems.com/contact-us/">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-icon">
				<i aria-hidden="true" class="fas fa-chevron-right"></i>			</span>
									<span class="elementor-button-text">Contact Us</span>
					</span>
					</a>
				</div>
								</div>
				</div>
				<div class="elementor-element elementor-element-6c6b537 elementor-align-center elementor-widget elementor-widget-button" data-id="6c6b537" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm" href="https://bit.ly/gpt-chat-bot-api">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-icon">
				<i aria-hidden="true" class="fas fa-chevron-right"></i>			</span>
									<span class="elementor-button-text">Download Source Code</span>
					</span>
					</a>
				</div>
								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
					</div>
		</div>
					</div>
		</section>
				</div><p>The post <a href="https://www.elitechsystems.com/chatgpt-bot-api-uses-own-custom-data-from-txt-csv-pdf/">🤖 ChatGPT Bot API Uses Own Custom Data from Txt, CSV, PDF</a> first appeared on <a href="https://www.elitechsystems.com">Elitech Systems Pvt Ltd</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Python Vs Go, Which one to choose?</title>
		<link>https://www.elitechsystems.com/go-vs-python-which-one-to-choose/</link>
		
		<dc:creator><![CDATA[Ankit Patel]]></dc:creator>
		<pubDate>Tue, 12 May 2020 10:53:22 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Machine Learning]]></category>
		<guid isPermaLink="false">https://www.elitechsystems.com/?p=3576</guid>

					<description><![CDATA[<p>Before starting a project, most development teams meet several times to decide the best language for their software. Often this discussion comes down to Python and Golang. Today Elitech Systems offers you a comparison between Golang and Python, on different parameters that will help you decide as a developer which language is best for you. [&#8230;]</p>
<p>The post <a href="https://www.elitechsystems.com/go-vs-python-which-one-to-choose/">Python Vs Go, Which one to choose?</a> first appeared on <a href="https://www.elitechsystems.com">Elitech Systems Pvt Ltd</a>.</p>]]></description>
										<content:encoded><![CDATA[<div id="pl-3576"  class="panel-layout" >
<div id="pg-3576-0"  class="panel-grid panel-has-style"  data-style="{&quot;class&quot;:&quot;container&quot;,&quot;background_image_attachment&quot;:false,&quot;background_display&quot;:&quot;tile&quot;,&quot;cell_alignment&quot;:&quot;flex-start&quot;}"  data-ratio="1"  data-ratio-direction="right" >
<div class="container panel-row-style panel-row-style-for-3576-0" >
<div id="pgc-3576-0-0"  class="panel-grid-cell"  data-weight="1" >
<div id="panel-3576-0-0-0" class="so-panel widget_text panel-first-child panel-last-child" data-index="0" data-style="{&quot;background_image_attachment&quot;:false,&quot;background_display&quot;:&quot;tile&quot;}" >
<div class="textwidget">
<p>Before starting a project, most development teams meet several times to decide the best language for their software.</p>
<p>Often this discussion comes down to Python and Golang.</p>
<p>Today <a href="https://www.elitechsystems.com/">Elitech Systems</a> offers you a comparison between Golang and Python, on different parameters that will help you decide as a developer which language is best for you.</p>
<h2>What is Python?</h2>
<p>Python is one of the fastest growing programming languages. Python favors simplicity, easy-to-read code, and uses these features to attract people who are hesitant to learn complicated programming languages.</p>
<p>An important feature of Python is that it is an interpreted language.</p>
<p>Therefore, Python does not need to be compiled into machine code before it is run.</p>
<p>However, code interpretation generally takes longer, which means that Python is slower than compiled languages.</p>
<p>Many of today&#8217;s most successful tech companies choose Python for the back-end of their website.</p>
<p>In this list, there are notably Instagram, Spotify or even Netflix to name a few.</p>
<h2>What is Golang?</h2>
<p>Golang, also known as Go, is a computer programming language developed by Google.</p>
<p>Its development started in 2007 at Google, and it was presented to the public in 2009.</p>
<p>The objective was to create a language, freely based on the syntax of the C programming language, which would eliminate &#8220;foreign waste&#8221; from languages ​​such as C ++.</p>
<p>As a result, Go instills many characteristics of other modern languages, such as overloading of methods as well as that of operators, pointer arithmetic and type inheritance.</p>
<p>Go, is a static typing language with a library that has nothing to envy to other languages, as well as performance and increased speed.</p>
<p>Docker, the most active open-source project in the world, is coded in Go as well as Uber and in particular Twitch, which shows that Golang is gaining more and more weight on the market.</p>
<h3>Key Differences Between Python and Go</h3>
<p><strong>Below are the key differences between Python and Go:</strong></p>
<ul>
<li>Python being a scripting language has to be interpreted whereas Go is faster most of the time since it does not have to consider anything at runtime.</li>
<li>Python is a great language with an easy to understand syntax and hence more readable, flexible whereas Go is also in the prime league when it comes to clear syntax which holds zero unnecessary components.</li>
<li>Python does not provide built-in concurrency mechanism whereas Go has built-in concurrency mechanism.</li>
<li>When it comes to safety, Python is a strongly typed language which is compiled, hence adding a layer of security whereas Go is very decent since every variable must have a type associated with it. It means a developer cannot let away the details which will further lead to bugs.</li>
<li>Python is less verbose than Go to achieve the same functionality.</li>
<li>Python has tons of libraries as compared to Go but gradually this situation with Go is improving.</li>
<li>Python still gains an upper hand when it comes syntax and thus user-friendly.</li>
<li>Python is still a favorite language when it comes to solving data science problems whereas Go is more ideal for system programming.</li>
<li>Python is dynamically typed language whereas Go is a statically typed language, which actually helps catch bugs at compile time which can further reduce serious bugs later in the production.</li>
<li>Python is great for basic programming, using it can become complicated if one wishes to build complex systems whereas, with Go, the same task can be accomplished rapidly without going into subtleties of programming language.</li>
<li>Python is more concise than Go. Dynamic typing helps but overall, one can also write very compact code with Go.</li>
</ul>
<h2>Python and Go Comparison Table</h2>
<p>Below is the list of points, Describe the comparison Between Python and Go.</p>
<table class="wp-block-table">
<tbody>
<tr>
<td><strong>COMPARISON</strong></td>
<td><strong>Python</strong></td>
<td><strong>GO</strong></td>
</tr>
<tr>
<td>Python</td>
<td>Object-oriented, imperative, functional, procedural, reflective</td>
<td>Procedural, functional and concurrent</td>
</tr>
<tr>
<td>Execution</td>
<td>Interpreted</td>
<td>Compiled</td>
</tr>
<tr>
<td>Typed</td>
<td>Dynamically typed language</td>
<td>Statically typed language</td>
</tr>
<tr>
<td>Usage</td>
<td>Python is more focused to write web applications</td>
<td>Go is more focused on being a system language, still, it’s eating away python share of web apps</td>
</tr>
<tr>
<td>Memory</td>
<td>Python offers no memory management</td>
<td>With Go you can go dirty with memory management</td>
</tr>
<tr>
<td>Syntax</td>
<td>Syntax uses indentation to indicate code blocks</td>
<td>Syntax is based on opening and closing braces</td>
</tr>
<tr>
<td>Concurrency</td>
<td>Lacks inbuilt concurrency</td>
<td>Concurrency is inbuilt</td>
</tr>
<tr>
<td>Object Orientation</td>
<td>First class Object Oriented programming, support for functional concepts</td>
<td>Mild support for Object Orientation and functional concepts, but is strongly typed</td>
</tr>
</tbody>
</table>
<h2>Speed</h2>
<p>Go is definitely faster than Python. This makes sense, as it was designed specifically for high performance competition in the construction and rapid deployment of server-side scripts.</p>
<p>If you are programming systems, then Go might be the best choice. In addition, Python is used for just about everything in the world of software development and data science.</p>
<p>Over the next 20 years, as more developers and businesses implement Go, it could become a stronger competitor to Python. For now, Python still reigns supreme even if Go is faster.</p>
<h2>Scalability</h2>
<p>Go was specially designed for scalability the size of Google. The language makes it possible to manage several tasks and quickly increase the size of the application according to demand. It is designed to be scaled. Go is therefore very scalable over time and is a great force for him.</p>
<p>Python was not originally designed to be very scalable.</p>
<p>In terms of comparison to Go, Go is going to be the winner. Python has multiprocessing capabilities and a rich library, but Go being a little more modern wins hands down</p>
<h2>Conclusion</h2>
<p>It is difficult to draw conclusions in the Go vs. discussion. Python because comparing a mature language with a relatively young language does not seem fair.</p>
<p>Python is the leading language not only in machine learning, data analysis, but also in web development.</p>
<p>Golang has only been in existence for a decade, and it has not yet built a solid ecosystem or community.</p>
<p>An obvious advantage of Go is its speed. While Python bows to Go in terms of code execution, Go admits defeat in production speed.</p>
</div></div>
</div>
</div>
</div>
</div><p>The post <a href="https://www.elitechsystems.com/go-vs-python-which-one-to-choose/">Python Vs Go, Which one to choose?</a> first appeared on <a href="https://www.elitechsystems.com">Elitech Systems Pvt Ltd</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
