Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
45 |
model_name = "skshmjn/Llama-3.2-3B-Mongo-Instruct"
|
46 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
47 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
48 |
-
schema = {}
|
49 |
|
50 |
prompt = "Here is mongodb schema {schema} and Find all employees older than 30 in the 'employees' collection."
|
51 |
inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
45 |
model_name = "skshmjn/Llama-3.2-3B-Mongo-Instruct"
|
46 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
47 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
48 |
+
schema = {} # Pass your mongodb schema here, leave empty for generic queries. Sample available in hugging face's repository
|
49 |
|
50 |
prompt = "Here is mongodb schema {schema} and Find all employees older than 30 in the 'employees' collection."
|
51 |
inputs = tokenizer(prompt, return_tensors="pt")
|