lawrencewu commited on
Commit
a1fa327
1 Parent(s): e4a1707

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -10
README.md CHANGED
@@ -31,13 +31,13 @@ Then, construct the prompt template like so:
31
  def prompt(nlq, cols):
32
  return f"""Honeycomb is an observability platform that allows you to write queries to inspect trace data. You are an assistant that takes a natural language query (NLQ) and a list of valid columns and produce a Honeycomb query.
33
 
34
- ### Instruction:
35
-
36
- NLQ: "{nlq}"
37
-
38
- Columns: {cols}
39
-
40
- ### Response:
41
  """
42
 
43
  def prompt_tok(nlq, cols):
@@ -63,9 +63,9 @@ print(nlq, '\n', out)
63
 
64
  This will give you a prediction that looks like this:
65
 
66
- ```md
67
- "{'breakdowns': ['exception.message', 'exception.type'], 'calculations': [{'op': 'COUNT'}], 'filters': [{'column': 'exception.message', 'op': 'exists'}, {'column': 'exception.type', 'op': 'exists'}], 'orders': [{'op': 'COUNT', 'order': 'descending'}], 'time_range': 7200}"
68
- ```
69
 
70
 
71
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
31
  def prompt(nlq, cols):
32
  return f"""Honeycomb is an observability platform that allows you to write queries to inspect trace data. You are an assistant that takes a natural language query (NLQ) and a list of valid columns and produce a Honeycomb query.
33
 
34
+ ### Instruction:
35
+
36
+ NLQ: "{nlq}"
37
+
38
+ Columns: {cols}
39
+
40
+ ### Response:
41
  """
42
 
43
  def prompt_tok(nlq, cols):
 
63
 
64
  This will give you a prediction that looks like this:
65
 
66
+ ```md
67
+ "{'breakdowns': ['exception.message', 'exception.type'], 'calculations': [{'op': 'COUNT'}], 'filters': [{'column': 'exception.message', 'op': 'exists'}, {'column': 'exception.type', 'op': 'exists'}], 'orders': [{'op': 'COUNT', 'order': 'descending'}], 'time_range': 7200}"
68
+ ```
69
 
70
 
71
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You