Files changed (1) hide show
  1. README.md +11 -11
README.md CHANGED
@@ -40,14 +40,14 @@ Then, construct the prompt template like so:
40
  def prompt(nlq, cols):
41
  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.
42
 
43
- ### Instruction:
44
-
45
- NLQ: "{nlq}"
46
-
47
- Columns: {cols}
48
-
49
- ### Response:
50
- """
51
 
52
  def prompt_tok(nlq, cols):
53
  _p = prompt(nlq, cols)
@@ -72,9 +72,9 @@ print(nlq, '\n', out)
72
 
73
  This will give you a prediction that looks like this:
74
 
75
- ```md
76
- "{'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}"
77
- ```
78
 
79
  Alternatively, you can play with this model on Replicate: [hamelsmu/honeycomb-2](https://replicate.com/hamelsmu/honeycomb-2)
80
 
 
40
  def prompt(nlq, cols):
41
  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.
42
 
43
+ ### Instruction:
44
+
45
+ NLQ: "{nlq}"
46
+
47
+ Columns: {cols}
48
+
49
+ ### Response:
50
+ """
51
 
52
  def prompt_tok(nlq, cols):
53
  _p = prompt(nlq, cols)
 
72
 
73
  This will give you a prediction that looks like this:
74
 
75
+ ```md
76
+ "{'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}"
77
+ ```
78
 
79
  Alternatively, you can play with this model on Replicate: [hamelsmu/honeycomb-2](https://replicate.com/hamelsmu/honeycomb-2)
80