tannu-faq / app.py
ayush-thakur02's picture
Create app.py
1c8b4e5 verified
raw
history blame contribute delete
No virus
10.5 kB
from flask import Flask, render_template, request, jsonify
from huggingface_hub import InferenceClient
import os
import random
keys = [
os.getenv("KEY1"),
os.getenv("KEY2"),
os.getenv("KEY3"),
os.getenv("KEY4"),
os.getenv("KEY5")]
app = Flask(__name__)
client = InferenceClient(
"meta-llama/Meta-Llama-3-8B-Instruct",
token=random.choice(keys)
)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/chat', methods=['POST'])
def chat():
user_message = request.json['message']
# Initial prompt structure
prompt = f"""<file>Frequently Asked Questions (FAQs)
What are the primary responsibilities of RAC?
The Recruitment and Assessment Centre (RAC) is primarily responsible for the recruitment and assessment of scientists at various levels under the DRDS cadre. RAC executes several mission mode programmes under the recruitment category and boasts high-quality infrastructure for conducting multiple Selection Board Meetings. This includes a CCTV-based monitoring system, video conferencing facilities, and various audio-visual aids. The centre is supported by a dedicated team of scientific, technical, and administrative staff, all of whom are well-qualified and specially trained in recruitment procedures. The primary responsibilities of RAC include:
- Recruitment of Scientists (Gazetted Group 'A') in DRDO
- Assessment of Scientists for promotion to higher grades
- Selection of candidates for higher study courses (M.E/M.Tech/M.Sc Engg) under the Research & Training Scheme of DRDO and Post Graduate Training schemes of the Army, Navy, and Air Force.
How can I contact RAC?
For queries, you may contact:
The Director
Recruitment & Assessment Centre
Defence Research and Development Organisation
Ministry of Defence, Government of India
Lucknow Road, Timarpur, Delhi 110 054
TeleFax: +91-011-23812690, +91-011-23817833
Email: director.rac@gov.in
Whom to contact for information?
- Central Public Information Officer (CPIO): Phone No. +91-011-23971049
- Public Relation Officer (PRO): Phone No. +91-011-2383-0599
Email: director.rac@gov.in
From where can I get more information on DRDO and RAC?
For more information on DRDO, visit: [https://drdo.gov.in](https://drdo.gov.in)
For more information on RAC, visit: [https://rac.gov.in](https://rac.gov.in)
What are the pay scales of scientists at various levels?
Information on pay scales can be obtained from DRDO’s official website or RAC.
What are the salient features and promotion policy of DRDS?
DRDO employs highly qualified scientists and technologists in Group 'A' (Class I Gazetted) services known as Defence Research & Development Service (DRDS). DRDO follows a Flexible Complementing Scheme (FCS), where with each promotion based purely on merit, posts in grades from Scientist 'B' to 'H' are upgraded automatically. The minimum residency period varies: 3 years for Scientist 'B', 4 years for Scientists 'C', 'D', and 'E', 5 years for Scientist 'F', and 3 years for Scientist 'G'. Relaxations in residency periods apply based on performance. Scientists in grades 'B', 'C', 'D', and 'E' are assessed by a selection committee, while those in grades 'F', 'G', and 'H' are evaluated by a Peer committee based on their contributions. DRDO emphasizes Human Resource Development through training at its institutions and offers opportunities for foreign deputations for specialized assignments.
Where are the labs of DRDO situated?
DRDO labs and establishments are spread across various locations in India. For specific details, visit DRDO’s official website.
What are the various modes of induction of scientists into the DRDO system?
Induction into DRDO can occur through:
- Lateral Recruitment for Scientist 'C' and above
- Deputation & Absorption
What is the upper age limit to join the Organisation?
The upper age limits are as follows:
- Scientist 'B': 35 years (Unreserved), 35 years (EWS), 38 years (OBC), 40 years (SC/ST)
- Scientist 'C': 40 years (Unreserved), Not Applicable (EWS, OBC, SC/ST)
- Scientist 'D': 50 years (Unreserved), Not Applicable (EWS, OBC, SC/ST)
- Scientist 'E': 50 years (Unreserved), Not Applicable (EWS, OBC, SC/ST)
- Scientist 'F': 50 years (Unreserved), Not Applicable (EWS, OBC, SC/ST)
- Scientist 'G': 50 years (Unreserved), Not Applicable (EWS, OBC, SC/ST)
Note: Relaxations are given to physically handicapped (PH) candidates as per government rules.
What is the minimum qualification required for different posts?
For Science and Engineering Disciplines:
- Scientist 'B': First Class Master's degree in Science or First Class Degree in Engineering or Technology.
- Scientist 'C': First Class Master's degree with three years' experience, or a Postgraduate or Doctorate degree with relevant experience.
- Scientist 'D': First Class Master's degree with seven years' experience, or higher qualifications with equivalent experience.
- Scientist 'E': First Class Master's degree with ten years' experience, or higher qualifications with equivalent experience.
- Scientist 'F': First Class Master's degree with thirteen years' experience, or higher qualifications with equivalent experience.
- Scientist 'G': First Class Master's degree with fifteen years' experience, or higher qualifications with equivalent experience.
- Scientist 'H': Not applicable
- Distinguished Scientist: Not applicable
- Scientific Advisor to Raksha Mantri: Qualifications not less than those prescribed for Scientist 'G'.
- Chairman DRDO: Qualifications not less than those prescribed for Scientist 'G'.
For Medical Posts, specific qualifications and experience requirements apply, including relevant medical, dental, or veterinary degrees with requisite experience.
What is the minimum relevant experience required for different posts?
- Scientist 'B': Nil
- Scientist 'C': 3 years
- Scientist 'D': 7 years
- Scientist 'E': 10 years
- Scientist 'F': 13 years
- Scientist 'G': 15 years
What are the main subjects of relevance to DRDO scientific positions?
Relevant subjects include Aeronautical Engineering, Agricultural Sciences, Chemical Engineering, Chemistry, Civil Engineering, Computer Science, Electronics and Communication Engineering, Electrical Engineering, Environmental Science, Food Science, Fire Engineering, Life Sciences, Mathematics/Statistics/OR, Mechanical Engineering, Metallurgy, Oceanography, Physics, Psychology, Textile Engineering, Medicine/Nuclear Medicine, and other related subjects.
I have some experience in Research & Development in the areas of interest to DRDO. Can I join DRDO at a higher post?
DRDO recruits Scientists 'C' and above through lateral recruitment based on experience and the requirements of the labs. This process is facilitated through advertisements.
Is it possible to acquire higher education after joining the Organisation?
Yes, DRDO allows personnel to pursue higher education such as M.E/M.Tech/Ph.D through external registration with academic institutions or by sponsoring personnel for higher studies at reputed institutions like IITs and IISc after completing three years of residency in DRDO.
Is there any scope in DRDO for Graduates/Postgraduates in Arts?
DRDO primarily requires a First Class Master's degree in Science or First Class Graduate degree in Engineering. However, candidates with M.A. degrees in Mathematics, Statistics, Operational Research, and Psychology may also apply for Scientist 'B' positions.
I am an MBA; in what position can I join DRDO?
DRDO primarily recruits Scientists and Technologists with a First Class Postgraduate degree in Science or First Class Graduate degree in Engineering. An MBA may be desirable in certain cases but is not the primary qualification for DRDO positions.
Can I send the application online?
Yes, applications can be submitted online along with the necessary fee (if applicable) until the closing date specified in the advertisement.
Can I apply for more than one post in one advertisement?
Yes, you can apply for more than one post in a single advertisement. Applications for each post should be submitted separately.
What is LDCE?
Limited Department Competitive Examination (LDCE) is conducted by RAC for qualified Technical Cadre personnel of DRDO to induct them as Scientist 'B' in the Defence Research and Development Services (DRDS) cadre.
What documents are required at the time of interview?
Candidates are required to bring:
- Proof of relevant experience as stated in the advertisement
- A passport-sized photo, all original certificates, mark sheets, and testimonials from 10th standard onward, along with self-attested copies
- Project reports, thesis, or publications
- 'No Objection Certificate' if employed in a Government/Semi-Government/Autonomous Office
- NOC from DRDO HQs if already employed in DRDO
- NOC from respective armed forces if currently serving
What is the procedure for payment of TA?
Traveling allowance (TA) will be paid to candidates called for interviews equivalent to a single second class railway fare by the shortest route to the interview location and back. Indian Railways offers full concession in second class to unemployed youth attending interviews for Central Government jobs, which will be considered while paying TA.
Whom to contact for any suggestions regarding the current FAQ?
Suggestions for adding questions or feedback for the revision of the FAQ can be mailed to the Director RAC at director.rac@gov.in.
I have done a Diploma in Electronics; can I apply for a Scientist post in DRDO?
No, diploma holders are not eligible for the post of Scientist in DRDS.
My Essential Qualification and Higher Qualification (HQ) subjects are different; can I apply according to my HQ subject?
No, you cannot apply according to your HQ subject if it differs from the Essential Qualification.
What is the procedure for doing summer training in DRDO?
You can apply for summer training to the Director of a suitable
DRDO laboratory or institution. The procedure typically involves submitting an application detailing your academic background, research interests, and proposed project.
</file>
<system> Act as a DRDO FAQ chatbot name Tannu. Reply the user's queries based on the FAQ document.</system>
<user>{user_message}</user>
<Tannu>"""
response = client.text_generation(prompt, max_new_tokens=1024, stop_sequences=["<user>"])
return jsonify({'message': response})
if __name__ == '__main__':
app.run(debug=True)