Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Abhinav Academy Chatbot
|
| 2 |
+
|
| 3 |
+
A fine-tuned language model designed to answer questions about Abhinav Academy's courses, facilities, and services. This model is based on EleutherAI's GPT-Neo 1.3B and has been specifically trained to provide accurate information about the institution.
|
| 4 |
+
|
| 5 |
+
## Model Details
|
| 6 |
+
|
| 7 |
+
- **Base Model**: EleutherAI/gpt-neo-1.3B
|
| 8 |
+
- **Training Dataset**: Custom dataset of question-answer pairs about Abhinav Academy
|
| 9 |
+
- **Task**: Instruction-following for educational institution information
|
| 10 |
+
- **Primary Use Case**: Answering student and parent queries about Abhinav Academy
|
| 11 |
+
|
| 12 |
+
## Use Cases
|
| 13 |
+
|
| 14 |
+
This model is designed to:
|
| 15 |
+
|
| 16 |
+
- Answer questions about course offerings (JEE, NEET, MHT-CET preparation)
|
| 17 |
+
- Provide information about faculty and facilities
|
| 18 |
+
- Explain admission requirements and processes
|
| 19 |
+
- Share details about extracurricular activities
|
| 20 |
+
- Address queries about fees, scholarships, and logistical details
|
| 21 |
+
|
| 22 |
+
## Example Usage
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 26 |
+
|
| 27 |
+
# Load model and tokenizer
|
| 28 |
+
model_name = "accesscreate012/abhinav-chatbot"
|
| 29 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 30 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 31 |
+
|
| 32 |
+
# Function to generate responses
|
| 33 |
+
def generate_response(instruction, max_new_tokens=150):
|
| 34 |
+
prompt = f"Instruction: {instruction}\nResponse:"
|
| 35 |
+
|
| 36 |
+
# Tokenize the input
|
| 37 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 38 |
+
|
| 39 |
+
# Generate with improved parameters
|
| 40 |
+
outputs = model.generate(
|
| 41 |
+
**inputs,
|
| 42 |
+
max_new_tokens=max_new_tokens,
|
| 43 |
+
num_beams=5,
|
| 44 |
+
no_repeat_ngram_size=3,
|
| 45 |
+
early_stopping=True,
|
| 46 |
+
top_p=0.92,
|
| 47 |
+
temperature=0.7,
|
| 48 |
+
do_sample=True,
|
| 49 |
+
pad_token_id=tokenizer.eos_token_id
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
# Process and clean the output
|
| 53 |
+
generated_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 54 |
+
|
| 55 |
+
# Extract only the response part
|
| 56 |
+
if "Response:" in generated_text:
|
| 57 |
+
response = generated_text.split("Response:")[1].strip()
|
| 58 |
+
else:
|
| 59 |
+
response = generated_text.replace(prompt, "").strip()
|
| 60 |
+
|
| 61 |
+
return response
|
| 62 |
+
|
| 63 |
+
# Example queries
|
| 64 |
+
queries = [
|
| 65 |
+
"What courses do you offer for JEE preparation?",
|
| 66 |
+
"Tell me about your NEET coaching program",
|
| 67 |
+
"Where is Abhinav Academy located?",
|
| 68 |
+
"Do you have hostel facilities?"
|
| 69 |
+
]
|
| 70 |
+
|
| 71 |
+
# Generate and print responses
|
| 72 |
+
for query in queries:
|
| 73 |
+
print(f"Q: {query}")
|
| 74 |
+
print(f"A: {generate_response(query)}")
|
| 75 |
+
print()
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Sample Interactions
|
| 79 |
+
|
| 80 |
+
**Q: What courses does Abhinav Academy offer?**
|
| 81 |
+
A: We offer MHT-CET, JEE, NEET preparation, as well as supplementary courses like English Communication, Personality Development, and Foreign Languages (German/French).
|
| 82 |
+
|
| 83 |
+
**Q: Does Abhinav Academy offer NEET coaching?**
|
| 84 |
+
A: Yes, we offer NEET coaching with expert faculty and structured study materials. Our 24-month NEET Preparation program emphasizes NCERT-based learning and practical lab sessions for Biology, Physics, and Chemistry.
|
| 85 |
+
|
| 86 |
+
**Q: What are the admission requirements for Abhinav Academy?**
|
| 87 |
+
A: Admission requirements vary by program. Generally, students must pass an entrance test and interview. Competitive courses require strong academics.
|
| 88 |
+
|
| 89 |
+
## Limitations
|
| 90 |
+
|
| 91 |
+
- The model is specialized for information about Abhinav Academy only
|
| 92 |
+
- It may not provide accurate information about other educational institutions
|
| 93 |
+
- Responses are based on training data and may not reflect real-time changes to curriculum or policies
|
| 94 |
+
- The model should be regularly updated as the institution's offerings evolve
|
| 95 |
+
|
| 96 |
+
## Training Methodology
|
| 97 |
+
|
| 98 |
+
This model was fine-tuned using a supervised approach on a custom dataset containing question-answer pairs about Abhinav Academy. The training process focused on:
|
| 99 |
+
|
| 100 |
+
- Preserving factual accuracy about course offerings
|
| 101 |
+
- Maintaining consistent formatting and tone
|
| 102 |
+
- Optimizing for natural-sounding responses
|
| 103 |
+
- Handling variations in question phrasing
|
| 104 |
+
|
| 105 |
+
## Integration
|
| 106 |
+
|
| 107 |
+
This model can be integrated into:
|
| 108 |
+
|
| 109 |
+
- The academy's official website as a chat assistant
|
| 110 |
+
- Mobile applications for student support
|
| 111 |
+
- SMS or WhatsApp-based query systems
|
| 112 |
+
- Internal student support systems
|
| 113 |
+
|
| 114 |
+
## License
|
| 115 |
+
|
| 116 |
+
This model is provided for educational purposes. Please contact Abhinav Academy for commercial use.
|
| 117 |
+
|
| 118 |
+
## Contact
|
| 119 |
+
|
| 120 |
+
For questions or feedback about this model, please reach out to [CONTACT_EMAIL].
|