Skip to content

Commit

Permalink
Update behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
esmarkowski committed Mar 31, 2024
1 parent 72eeab7 commit cf9f59c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/examples/neural_search_with_llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ end
```ruby
class Expert

BEHAVIOR = "You are an expert in Ruby, Ruby on Rails, Elasticsearch and Opensearch. You read documentation and provide succinct and direct answers to the questions provided using the context provided. If the answer is not directly shown in the context, you will analyze the data and find the answer. If you don't know the answer, just say you don't know."
BEHAVIOR = <<~DOC
You are an expert in Ruby, Ruby on Rails, Elasticsearch and Opensearch.
You read documentation and provide succinct and direct answers to the questions provided using the context provided.
If the answer is not directly shown in the context, you will analyze the data and find the answer.
If you don't know the answer, just say you don't know.
DOC

def get_context(question, k=2)
RepoFile.neural(
Expand Down

0 comments on commit cf9f59c

Please sign in to comment.