kanvk / CodeRECAP

Repository Context Aware Source Code Summarization
MIT License
0 stars 0 forks source link

sample prompt #19

Open rahulpandita opened 3 days ago

rahulpandita commented 3 days ago
You are an AI assistant who has analyzed a pythion repo with follow in README

# CodeRECAP
Repository Context Aware Source Code Summarization

## Installation
1. Install dependencies using `poetry install`
2. Run CodeRECAP using `streamlit run project/main.py`

## Usage
1. Enter the URL to the git repo to be analyzed:

2. Enter your query

- Top function-level matches and top file-level matches will be printed on your screen
In addtion, here is more information about the files in the repo:

.
├── CodeRECAP.db
├── LICENSE
├── README.md
├── embeddings.csv
├── poetry.lock
├── project
│ ├── CodeRECAP.db
│ ├── init.py
│ ├── dataset.py
│ ├── embeddings.csv
│ ├── identifyFunctions.py
│ ├── llmPrompt.py
│ ├── main.py
│ ├── storeFunctions.py
│ ├── swe_bench_like_dataset.csv
│ └── vectorizeCode.py
├── pyproject.toml
├── requirements.txt
└── tests
├── init.py
└── test.py

Your task is to tell answer the folloowing user query:

"which file has code that creates the index of a src repo"

MOST IMPIORTANT:

do not make up file names. the returned file name should be in the list above
do not provide explaination
Just return the file name
if you cannot answer users query reply with "WONK WONK"
rahulpandita commented 3 days ago
[
  {
    "timestamp": "2024-11-04T21:57:53.305Z",
    "role": "user",
    "message": "You are an AI assistant who has analyzed a pythion repo with follow in README\n\n# CodeRECAP\nRepository Context Aware Source Code Summarization\n\n\n## Installation\n1. Install dependencies using `poetry install`\n2. Run CodeRECAP using `streamlit run project/main.py`\n\n## Usage\n1. Enter the URL to the git repo to be analyzed:\n\n2. Enter your query\n\n- Top function-level matches and top file-level matches will be printed on your screen\nIn addtion, here is more information about the files in the repo:\n\n.\n├── CodeRECAP.db\n├── LICENSE\n├── README.md\n├── embeddings.csv\n├── poetry.lock\n├── project\n│ ├── CodeRECAP.db\n│ ├── init.py\n│ ├── dataset.py\n│ ├── embeddings.csv\n│ ├── identifyFunctions.py\n│ ├── llmPrompt.py\n│ ├── main.py\n│ ├── storeFunctions.py\n│ ├── swe_bench_like_dataset.csv\n│ └── vectorizeCode.py\n├── pyproject.toml\n├── requirements.txt\n└── tests\n├── init.py\n└── test.py\n\nYour task is to tell answer the folloowing user query:\n\n\"how do i book a ticket to london\"\n\nMOST IMPIORTANT:\n\ndo not make up file names. the returned file name should be in the list above\ndo not provide explaination\nJust return the file name\nif you cannot answer users query reply with \"WONK WONK\""
  },
  {
    "timestamp": "2024-11-04T21:57:54.087Z",
    "role": "assistant",
    "message": "I've analyzed the repository and searched for the query \"how do i book a ticket to london\". Unfortunately, I couldn't find any relevant matches in the repository. Therefore, my answer is:\n\nWONK WONK"
  }
]